external modules for SVG

This commit is contained in:
Kushan Joshi
2016-07-06 13:31:50 +05:30
committed by Bryan Housel
parent 9c82bba6fb
commit b3492b17a0
17 changed files with 117 additions and 85 deletions
+3 -1
View File
@@ -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);
});
}));