Leaflet.FreeDraw icon indicating copy to clipboard operation
Leaflet.FreeDraw copied to clipboard

LayerGroup and Colors - Free Draw instance

Open ricard0-silva opened this issue 4 years ago • 0 comments

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).

  1. Add a map.addLayer(freeDraw) to a LayerGroup.
  2. 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!

Waiting for a reply =)

ricard0-silva avatar May 13 '20 00:05 ricard0-silva