Skip to content

LayerGroup and Colors - Free Draw instance #165

@ricard0-silva

Description

@ricard0-silva

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions