manubb / Leaflet.PixiOverlay

Bring Pixi.js power to Leaflet maps
MIT License
463 stars 85 forks source link

Change the order and style of multiple pixi overlays after adding to the map #82

Open sruthiarun opened 1 year ago

sruthiarun commented 1 year ago

Hi , I have a requirement to use multiple pixioverlays , the user can add /remove any layer to the map (from a selection of check box) so when adding the layer is there any way to automatically sort the layer based on layer number and enable interactivity only for the inner layer(click through upper layers)

for example ... if user added layer 1, then layer 2.. layer 3.. i want the layer order in map as layer3->layer2->layer 1 and enable interactivity only for layer3