diff --git a/App/static/js/extract.js b/App/static/js/extract.js index 4311c39..0c623c4 100644 --- a/App/static/js/extract.js +++ b/App/static/js/extract.js @@ -28,7 +28,7 @@ var Extract = function (){ }, showOutline : function(geojson_url) { d3.json(geojson_url, function(data){ - if (data) { + if (data && data.geometry.type == "Feature") { outline = L.geoJson(data.geometry, { className : "outline" }).addTo(displayMap); displayMap.addLayer(outline); } else {