-
-
Save patrickarlt/f8c825ee00f896c5c034 to your computer and use it in GitHub Desktop.
This file contains 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
// when you create everyting for the first time | |
var shapes = {}; | |
for (var i = shapes.length - 1; i >= 0; i--) { | |
var shape = shapes[i]; | |
shapes[shape.id] = L.geoJson(shape); | |
} | |
//when you update things | |
for (var i = shapes.length - 1; i >= 0; i--) { | |
var shape = shapes[shape.id]; | |
shape.setStyle(/*something to update the style either options or a function*/); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment