windgl icon indicating copy to clipboard operation
windgl copied to clipboard

Changing tiles

Open maeneak opened this issue 6 years ago • 3 comments

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.

maeneak avatar May 26 '19 04:05 maeneak

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);

maeneak avatar May 26 '19 13:05 maeneak

Actually just adding the line in the 'Layer' onRemove handler did the trick

maeneak avatar May 26 '19 13:05 maeneak

@maeneak Sorry for taking your time. Can you provide the detailed trick method for changing tiles (json) at runtime?

learnurban avatar Jan 14 '24 09:01 learnurban