From 30eff5568645bf2bdab86b9e2d8fa6b459a33966 Mon Sep 17 00:00:00 2001 From: johndoe Date: Sun, 17 Feb 2019 17:28:12 +0200 Subject: [PATCH] * fixes to comply with leaflet 1.0+: `clickable`->`interactive` --- src/Control.MiniMap.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Control.MiniMap.js b/src/Control.MiniMap.js index 3dd0187..810eec4 100644 --- a/src/Control.MiniMap.js +++ b/src/Control.MiniMap.js @@ -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. }, @@ -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; },