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

Multiple select of polygon function together with StyleEditor

Open soli004 opened this issue 4 years ago • 1 comments

Hello,

Trying to implement StyleEditor with following function below on this link: https://olanaso.github.io/Leaflet-Select-Polygons/#

The problem is that it "it override each other" for the color and color fill of the polygons. I need the summery function from multiple select polygons, but I also want to be able to have a group of polygons in one color and another group of polygons in another color to differentiate them from each other. Groups of polygons can be several and not being only two.

Any help is fantastic and remember not an expert in javascript... thanks

soli004 avatar Apr 18 '20 09:04 soli004

Hi sorry, I'm not quite sure what you want to achieve. Nevertheless the StyleEditor per default styles all elements of a LayerGroup. So my guess is you want to add and remove layers from one group to the other and retrigger the styling.

fupduck avatar May 30 '20 12:05 fupduck