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

Uncaught TypeError: child.transform is undefined PIXI.particles.ParticleContainer #63

Open
lordjack opened this issue Jun 1, 2021 · 0 comments

Comments

@lordjack
Copy link

lordjack commented Jun 1, 2021

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

image

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

1 participant