:earth_asia: FreeDraw allows the free-hand drawing of shapes on your Leaflet.js map layer – providing an intuitive and familiar UX for creating geospatial boundaries similar to Zoopla and others. Included out-of-the-box is the concaving of polygons, polygon merging and simplifying, as well as the ability to add edges and modify existing shapes.
Hi all, this plugin is all i need for my app and its working well so far, but... i was wondering if i can do 2 important things (independent).
Add a map.addLayer(freeDraw) to a LayerGroup.
Create multiples draws with diferent selected colors.
For the first point, i just want to enable/disable the layers with the Leaflet control - i couldnt make it, for some reason, i cant save the draws in a layergroup, how can i get this right?
For the second one, i just want to create multiples draws with a choosen color. I read in some few issues posted and realize that have classes and i think that the next step would be override the CSS of each class. How can i use this? I tried to use the functions but it doesnt work :/
Can someone help me to achieve this 2 particular needs? Thanks!
Hi all, this plugin is all i need for my app and its working well so far, but... i was wondering if i can do 2 important things (independent).
map.addLayer(freeDraw)
to a LayerGroup.For the first point, i just want to enable/disable the layers with the Leaflet control - i couldnt make it, for some reason, i cant save the draws in a layergroup, how can i get this right?
For the second one, i just want to create multiples draws with a choosen color. I read in some few issues posted and realize that have
classes
and i think that the next step would be override the CSS of each class. How can i use this? I tried to use the functions but it doesnt work :/Can someone help me to achieve this 2 particular needs? Thanks!
Waiting for a reply =)