manubb / Leaflet.PixiOverlay

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

pixiJS v5 #31

Closed iofirag closed 5 years ago

iofirag commented 5 years ago

this library working also with pixi 5.0?

iofirag commented 5 years ago

can you please upload an example? i didnt success using is. :/

manubb commented 5 years ago

Hello. Yes, the lib supports both pixi 4 and pixi 5. The simple demos should work with pixi 5 with almost no changes and, if i remember correctly, the browser console shows what needs to be updated.

iofirag commented 5 years ago

as i can see, your code works great with pixi.js <= v4.8.8, (So fail with latest pixi.js v5.0.4)

Works OK- "pixi.js": "^4.8.8" "leaflet": "1.5.1" "leaflet-pixi-overlay": "^1.8.1" Demo with pixi.js-v4.8.8

Fail - "pixi.js": "^5.0.4" "leaflet": "1.5.1" "leaflet-pixi-overlay": "^1.8.1" Demo with pixi.js-v5.0.4

manubb commented 5 years ago

Ok. Your code is using my patched version of ParticuleContainer and this patch does not work with pixi@5. You can either use pixi@4 or try to use plain pixi@5 or write a new patch for pixi@5. I won't be able to look into this in near future.

bradley-varol commented 3 years ago

I had a PIXI.loaders is not defined error with Pixi 5 and downgrading to 4.8.9 resovled it! 👍🏻