What is the Proper Way to Destroy a Map Instance?

前端 未结 7 1471
旧巷少年郎
旧巷少年郎 2020-11-27 13:18

I recently developed an html5 mobile application. The application was a single page where navigation hash change events replaced the entire DOM. One section of the applicati

相关标签:
7条回答
  • 2020-11-27 13:45

    I would have suggested removing the content of the map div and using delete on the variable holding the reference to the map, and probably explicitly deleteing any event listeners.

    There is an acknowledged bug, though, and this may not work.

    0 讨论(0)
提交回复
热议问题