Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/gh-pages'
Browse files Browse the repository at this point in the history
  • Loading branch information
ismyrnow committed Apr 30, 2018
2 parents 050049d + c3471f1 commit 173f160
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ leaflet-groupedlayercontrol
Leaflet layer control with support for grouping overlays together.
Also supports making groups exclusive (radio instead of checkbox).

> This project is looking for a maintainer. Interested? Open an issue.
![preview](preview.png)

Demos: [Basic](http://ismyrnow.github.io/leaflet-groupedlayercontrol/example/basic.html) |
Expand Down
4 changes: 2 additions & 2 deletions src/leaflet.groupedlayercontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ L.Control.GroupedLayers = L.Control.extend({

onRemove: function (map) {
map
.off('layeradd', this._onLayerChange)
.off('layerremove', this._onLayerChange);
.off('layeradd', this._onLayerChange, this)
.off('layerremove', this._onLayerChange, this);
},

addBaseLayer: function (layer, name) {
Expand Down

0 comments on commit 173f160

Please sign in to comment.