Leaflet: _handleGeolocationResponse: exception when map is already removed

See #2001

Seeing this error at

./src/dom/DomUtil.js:247: return el._leaflet_pos || new Point(0, 0);

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (6 by maintainers)

Commits related to this issue

Most upvoted comments

map instance self has still the id.

map.getContainer()._leaflet_id

What exactly do you mean with this?

if (!this.listens('locationfound')) { return; }

But just checked, listeners do not get removed on map remove, so this will not work.