Open maeneak opened 5 years ago
Ok so i had to add an onRemove handler in the particle class and disconnect the Particle class 'move' event from the map.
map.off("move", this.move);
Actually just adding the line in the 'Layer' onRemove handler did the trick
@maeneak Sorry for taking your time. Can you provide the detailed trick method for changing tiles (json) at runtime?
What is the recommended way to change tiles (json) at runtime? I have tried removing the layer and re-creating it but i end up with gl context is null errors. Im using this in react so its possible its purely a react issue.