Skip to content

Commit

Permalink
* fixes to comply with leaflet 1.0+: clickable->interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe committed Feb 17, 2019
1 parent b0ff0e6 commit 30eff55
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 30eff55

Please sign in to comment.