Skip to content

Instantly share code, notes, and snippets.

@yyandrew
Created September 12, 2014 09:45
Show Gist options
  • Save yyandrew/03027bee4f6c7a4c4c10 to your computer and use it in GitHub Desktop.
Save yyandrew/03027bee4f6c7a4c4c10 to your computer and use it in GitHub Desktop.
function reset_colors(map) {
var layer = map.featureLayer,
geoJson = layer.getGeoJSON(),
features = geoJson.features;
for (var i = 0; i < features.length; i++) {
features[i].properties['marker-color'] = "#0F86BD";
}
layer.setGeoJSON(geoJson);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment