Hello everyone, I'm trying to follow the example many-markers using Vue2-Leaflet and Leaflet-Pixi-Overlay. However, when I add the Container Particle it is displaying the error as shown in the image below, on line 153 of the link below. Could anyone help? I thank.
var innerContainer = new PIXI.particles.ParticleContainer(markersLength, { vertices: true, });
for (var i = 0; i < markersLength; i++) {
var coords = project([getRandom(48.7, 49), getRandom(2.2, 2.8)]);
innerContainer.addChild({
x: coords.x - origin.x,
y: coords.y - origin.y,
});
}
https://gist.github.com/lordjack/74571373f6c59288f5af8f6736e0a77c
Hello everyone, I'm trying to follow the example many-markers using Vue2-Leaflet and Leaflet-Pixi-Overlay. However, when I add the Container Particle it is displaying the error as shown in the image below, on line 153 of the link below. Could anyone help? I thank.
var innerContainer = new PIXI.particles.ParticleContainer(markersLength, { vertices: true, });
for (var i = 0; i < markersLength; i++) { var coords = project([getRandom(48.7, 49), getRandom(2.2, 2.8)]); innerContainer.addChild({ x: coords.x - origin.x, y: coords.y - origin.y, }); } https://gist.github.com/lordjack/74571373f6c59288f5af8f6736e0a77c