You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had the same issue...
The problem came from my own component ngOnDestroy calling remove() on the map instance. The directive does it already so it's no use and breaks the following test in the leaflet source, since after the 1st remove, this._containerId is undefined :
if (this._containerId !== this._container._leaflet_id) {
throw new Error('Map container is being reused by another instance');
}
Just get rid of your own this.map.remove() in your ngOnDestroy.
results me into an error:
The text was updated successfully, but these errors were encountered: