-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add minimize/restore event request #125
Labels
Comments
My current solution with extend: var EventedMiniMap = L.Control.MiniMap.extend({
includes: L.Mixin.Events,
_minimize: function () {
L.Control.MiniMap.prototype._minimize.call(this);
this.fire("minimized");
},
_restore: function () {
L.Control.MiniMap.prototype._restore.call(this);
this.fire("restore");
},
}); |
Seems doable, maybe even you would like to contribute it? 👍 |
rendrom
added a commit
to rendrom/Leaflet-MiniMap
that referenced
this issue
Apr 26, 2017
Events - `minimized`, `restore` and `toggle for both; add event example; update readme.
rendrom
added a commit
to rendrom/Leaflet-MiniMap
that referenced
this issue
Apr 27, 2017
rendrom
added a commit
to rendrom/Leaflet-MiniMap
that referenced
this issue
Apr 27, 2017
added toggle button that listens to minimap events
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please add "fire" events for minimize and restore actions.
The text was updated successfully, but these errors were encountered: