Wildhoney / Leaflet.FreeDraw

: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.
https://freedraw.herokuapp.com/
MIT License
544 stars 103 forks source link

LayerGroup and Colors - Free Draw instance #165

Open ricard0-silva opened 4 years ago

ricard0-silva commented 4 years ago

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.

Can someone help me to achieve this 2 particular needs? Thanks!

Waiting for a reply =)