diff --git a/debug/geojson/geojson.html b/debug/geojson/geojson.html index 319e7c13..c29a65e7 100644 --- a/debug/geojson/geojson.html +++ b/debug/geojson/geojson.html @@ -41,7 +41,7 @@ geojson.on('featureparse', function(e) { // you can style features depending on their properties, etc. var popupText = 'geometry type: ' + e.geometryType + '
'; - if (e.layer instanceof L.Path) { + if (e.layer.setStyle) { e.layer.setStyle({color: e.properties.color}); popupText += 'color: ' + e.properties.color; }