Skip to content

Commit

Permalink
Merge pull request #3 from jfirebaugh/onRemove
Browse files Browse the repository at this point in the history
Define onRemove method
  • Loading branch information
kajic committed Oct 20, 2012
2 parents a2a8ce4 + b52a1d1 commit 4d65171
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/locationfilter.js
Expand Up @@ -110,6 +110,11 @@ L.LocationFilter = L.Class.extend({
}
},

onRemove: function(map) {
this._disable();
this._buttonContainer.removeFrom(map);
},

/* Get the current filter bounds */
getBounds: function() {
return new L.LatLngBounds(this._sw, this._ne);
Expand Down

0 comments on commit 4d65171

Please sign in to comment.