]> git.openstreetmap.org Git - rails.git/commitdiff
Update leaflet to 1.3.1
authorTom Hughes <tom@compton.nu>
Thu, 18 Jan 2018 17:32:33 +0000 (17:32 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 18 Jan 2018 17:42:30 +0000 (17:42 +0000)
Vendorfile
vendor/assets/leaflet/leaflet.js

index e64e74e44c425af29aff9bc329644bec598348fd..e57ab21fee5b8a9e26bc595962a3d2ad8543196a 100644 (file)
@@ -11,13 +11,13 @@ folder 'vendor/assets' do
   end
 
   folder 'leaflet' do
   end
 
   folder 'leaflet' do
-    file 'leaflet.js', 'https://unpkg.com/leaflet@1.3.0/dist/leaflet-src.js'
-    file 'leaflet.css', 'https://unpkg.com/leaflet@1.3.0/dist/leaflet.css'
+    file 'leaflet.js', 'https://unpkg.com/leaflet@1.3.1/dist/leaflet-src.js'
+    file 'leaflet.css', 'https://unpkg.com/leaflet@1.3.1/dist/leaflet.css'
 
     [ 'layers.png', 'layers-2x.png',
       'marker-icon.png', 'marker-icon-2x.png',
       'marker-shadow.png' ].each do |image|
 
     [ 'layers.png', 'layers-2x.png',
       'marker-icon.png', 'marker-icon-2x.png',
       'marker-shadow.png' ].each do |image|
-      file "images/#{image}", "https://unpkg.com/leaflet@1.3.0/dist/images/#{image}"
+      file "images/#{image}", "https://unpkg.com/leaflet@1.3.1/dist/images/#{image}"
     end
 
     from 'git://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.5.0' do
     end
 
     from 'git://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.5.0' do
index fff1e831cc5c51edfed4859b5526e9155166bf8f..63f6fb790cac8c3a9674ea57f9b47edcf5611e5a 100644 (file)
@@ -1,5 +1,5 @@
 /* @preserve
 /* @preserve
- * Leaflet 1.3.0, a JS library for interactive maps. http://leafletjs.com
+ * Leaflet 1.3.1, a JS library for interactive maps. http://leafletjs.com
  * (c) 2010-2017 Vladimir Agafonkin, (c) 2010-2011 CloudMade
  */
 
  * (c) 2010-2017 Vladimir Agafonkin, (c) 2010-2011 CloudMade
  */
 
@@ -9,7 +9,7 @@
        (factory((global.L = {})));
 }(this, (function (exports) { 'use strict';
 
        (factory((global.L = {})));
 }(this, (function (exports) { 'use strict';
 
-var version = "1.3.0";
+var version = "1.3.1";
 
 /*
  * @namespace Util
 
 /*
  * @namespace Util
@@ -11498,7 +11498,7 @@ var TileLayer = GridLayer.extend({
                        s: this._getSubdomain(coords),
                        x: coords.x,
                        y: coords.y,
                        s: this._getSubdomain(coords),
                        x: coords.x,
                        y: coords.y,
-                       z: coords.z ? coords.z : this._getZoomForUrl()
+                       z: this._getZoomForUrl()
                };
                if (this._map && !this._map.options.crs.infinite) {
                        var invertedY = this._globalTileRange.max.y - coords.y;
                };
                if (this._map && !this._map.options.crs.infinite) {
                        var invertedY = this._globalTileRange.max.y - coords.y;