mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 17:14:04 +02:00
external modules for SVG
This commit is contained in:
committed by
Bryan Housel
parent
9c82bba6fb
commit
b3492b17a0
@@ -1,3 +1,5 @@
|
||||
import { polygonIntersectsPolygon } from '../geo/index';
|
||||
|
||||
export function Debug(projection, context) {
|
||||
|
||||
function multipolygons(imagery) {
|
||||
@@ -75,7 +77,7 @@ export function Debug(projection, context) {
|
||||
availableImagery = showsImagery && multipolygons(iD.data.imagery.filter(function(source) {
|
||||
if (!source.polygon) return false;
|
||||
return source.polygon.some(function(polygon) {
|
||||
return iD.geo.polygonIntersectsPolygon(polygon, extent, true);
|
||||
return polygonIntersectsPolygon(polygon, extent, true);
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user