manubb / Leaflet.PixiOverlay

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

Vue with PixiOverlay event is not defined #65

Open lordjack opened 3 years ago

lordjack commented 3 years ago

Hey guys,

I'm trying to use Pixioverlay with Vue and Vue2-Leaflet, however, some functions do not work. for example the variable "event"

var pixiOverlay = L.pixiOverlay( (utils, event) => {}

if (event.type === "add") {}

In this 'if event.type' is saying indefinite, I do not understand why, below follows my source code. Who can help thank you.

Follow the link, if you prefer to see here https://github.com/lordjack/introducao_vue/blob/main/src/components/PixiOverlayTeste6.vue

' ' ` Githubissues.

  • Githubissues is a development platform for aggregating issues.