Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after updating the Pixi version #94

Open
nebsar opened this issue Mar 16, 2023 · 3 comments
Open

Error after updating the Pixi version #94

nebsar opened this issue Mar 16, 2023 · 3 comments

Comments

@nebsar
Copy link

nebsar commented Mar 16, 2023

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

@manubb
Copy link
Owner

manubb commented Mar 24, 2023

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
Copy link
Author

nebsar commented Mar 28, 2023

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.

<title>Leaflet.PixiOverlay basic example</title> <script src="js/example.min.js"></script>

@nebsar
Copy link
Author

nebsar commented Mar 28, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants