Skip to content

Update L.Control.MousePosition.js#4

Open
alberto-acevedo wants to merge 1 commit intodanwild:masterfrom
alberto-acevedo:alberto-acevedo-patch-1
Open

Update L.Control.MousePosition.js#4
alberto-acevedo wants to merge 1 commit intodanwild:masterfrom
alberto-acevedo:alberto-acevedo-patch-1

Conversation

@alberto-acevedo
Copy link

The onRemove is failing to remove the _onMouseMove event because the context is missing. In Leaflet 1.8.0 it logs the following warning: listener not found. The fix is to include the context (this) in the onRemove function.

The onRemove is failing to remove the _onMouseMove event because the context is missing. In Leaflet 1.8.0 it logs the following warning: listener not found.
The fix is to include the context (this) in the onRemove function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant