Created
September 12, 2014 09:45
-
-
Save yyandrew/03027bee4f6c7a4c4c10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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