tangram-docs
tangram-docs copied to clipboard
document Leaflet layer removal
Removing the Leaflet layer (e.g. layer.remove()) will cause all the Tangram resources to be deallocated. It should work as long as you avoid having more than one map loaded at a time, and some users have done this with Leaflet layer controls.