Leaflet: _handleGeolocationResponse: exception when map is already removed
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (6 by maintainers)
Commits related to this issue
- Make getPosition more robust Fix #7508 Use optional chaining operator to make code more robust — committed to googol7/Leaflet by googol7 3 years ago
- Make getPosition more robust so that it can also handle undefined Fix #7508 — committed to googol7/Leaflet by googol7 3 years ago
map.getContainer()._leaflet_id
But just checked, listeners do not get removed on map remove, so this will not work.