Skip to content

Commit

Permalink
Merge pull request #144 from johnd0e/clickable-interactive
Browse files Browse the repository at this point in the history
fixes to comply with leaflet 1.0+: `clickable`->`interactive`
  • Loading branch information
robpvn authored Mar 18, 2019
2 parents b0ff0e6 + 30eff55 commit f5bfff8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Control.MiniMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
height: 150,
collapsedWidth: 19,
collapsedHeight: 19,
aimingRectOptions: {color: '#ff7800', weight: 1, clickable: false},
shadowRectOptions: {color: '#000000', weight: 1, clickable: false, opacity: 0, fillOpacity: 0},
aimingRectOptions: {color: '#ff7800', weight: 1, interactive: false},
shadowRectOptions: {color: '#000000', weight: 1, interactive: false, opacity: 0, fillOpacity: 0},
strings: {hideText: 'Hide MiniMap', showText: 'Show MiniMap'},
mapOptions: {} // Allows definition / override of Leaflet map options.
},
Expand All @@ -46,8 +46,8 @@
initialize: function (layer, options) {
L.Util.setOptions(this, options);
// Make sure the aiming rects are non-clickable even if the user tries to set them clickable (most likely by forgetting to specify them false)
this.options.aimingRectOptions.clickable = false;
this.options.shadowRectOptions.clickable = false;
this.options.aimingRectOptions.interactive = false;
this.options.shadowRectOptions.interactive = false;
this._layer = layer;
},

Expand Down

0 comments on commit f5bfff8

Please sign in to comment.