Created
January 22, 2014 19:25
-
-
Save milafrerichs/8565611 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
drawControl.setDrawingOptions({ | |
polygon: { | |
shapeOptions: { | |
color: color | |
} | |
}, | |
marker: { | |
options: { | |
icon: L.mapbox.marker.icon({'marker-color': color}), | |
draggable: true | |
} | |
} | |
}) |
It works. Thanks.
But you should update the docs :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah I see the issue. The object you pass into
setDrawingOptions
should be: