[Google Maps Library] Reusing Existing Map instance
Question
Forge component by Labs


Hi,

Is component create a new map instance every time it is loaded?

It seems that recommended way is to reuse already created instance and just remove and add elements to it as there is no destroy method (https://www.youtube.com/watch?v=rUYs765QX-8&t=12m50s) . This leads to a memory leak issue when using polygons and polylines for example as map in this case is covered with canvas elements that are never removed from memory until page reload.


 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.