manubb / Leaflet.PixiOverlay

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

Error after updating the Pixi version #94

Open nebsar opened 1 year ago

nebsar commented 1 year ago

After updating the version of pixi.js, L.pixiOverlay started to return null and I cannot add the pixiOverlay to the leaflet map.

manubb commented 1 year ago

Can you provide details please? (Are you using a wrapper for leaflet-pixi-overlay ? , what is the versions of pixiJS ?, can you give a code sample ?, ...)

Can you check if this is linked to #79 ?

nebsar commented 1 year ago

Hi, I just replaced the example.js with leaflet.js version 1.9.4 and L.PixiOverlay.js. and it started to give this error.

Leaflet.PixiOverlay basic example
nebsar commented 1 year ago

I have another question:

As I know, each shape created by leaflet-draw is a layer itself. So, when one of the shapes covers the sprites that means, the layer covers the sprites and sprites start nott to get mouse click event. PixiOverlay should be on top of all other layers the catch the mouse click event I think. But I could not find a way to pit the PixiOlverlay on top of all the layers. Is there any way to do that?