leaflet-rails 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@
|
|
7
7
|
var oldL = window.L,
|
8
8
|
L = {};
|
9
9
|
|
10
|
-
L.version = '0.6.
|
10
|
+
L.version = '0.6.4';
|
11
11
|
|
12
12
|
// define Leaflet for Node module pattern loaders, including Browserify
|
13
13
|
if (typeof module === 'object' && typeof module.exports === 'object') {
|
@@ -1844,8 +1844,8 @@ L.Map = L.Class.extend({
|
|
1844
1844
|
},
|
1845
1845
|
|
1846
1846
|
getMinZoom: function () {
|
1847
|
-
var z1 = this._layersMinZoom === undefined ?
|
1848
|
-
z2 = this._boundsMinZoom === undefined ?
|
1847
|
+
var z1 = this._layersMinZoom === undefined ? 0 : this._layersMinZoom,
|
1848
|
+
z2 = this._boundsMinZoom === undefined ? 0 : this._boundsMinZoom;
|
1849
1849
|
return this.options.minZoom === undefined ? Math.max(z1, z2) : this.options.minZoom;
|
1850
1850
|
},
|
1851
1851
|
|
@@ -7497,7 +7497,7 @@ L.Map.Keyboard = L.Handler.extend({
|
|
7497
7497
|
var body = document.body,
|
7498
7498
|
docEl = document.documentElement,
|
7499
7499
|
top = body.scrollTop || docEl.scrollTop,
|
7500
|
-
left = body.
|
7500
|
+
left = body.scrollLeft || docEl.scrollLeft;
|
7501
7501
|
|
7502
7502
|
this._map._container.focus();
|
7503
7503
|
|