Permalink
Browse files

Fix GeoJSON parsing in MockFeatureCollection

Change-Id: Ifd5cd24c006bac1acc996fcb7d3763c58c54dd84
  • Loading branch information...
ewpatton authored and SusanRatiLane committed Dec 4, 2018
1 parent b99cfc4 commit 517360b2b19f2e5b1c797f88619f0e49f2af0f9f
@@ -180,7 +180,7 @@ private native void setNativeGeoJSON(JavaScriptObject map, String geojson)/*-{
if (collection) {
var self = this;
map.removeLayer(collection);
if (geojson.charCodeAt = 0xFEFF) geojson = geojson.substr(1); // strip byte order marker, if present
if (geojson.charCodeAt(0) == 0xFEFF) geojson = geojson.substr(1); // strip byte order marker, if present
collection = top.L.geoJson(JSON.parse(geojson), {
pointToLayer: function(feature, latlng) {
for (var key in feature.properties) {

0 comments on commit 517360b

Please sign in to comment.