Update leaflet to 1.3.0

This commit is contained in:
Tom Hughes 2018-01-15 10:23:22 +00:00
parent 6a41df6730
commit 15b2a88a2d
4 changed files with 354 additions and 157 deletions

View file

@ -11,13 +11,13 @@ folder 'vendor/assets' do
end
folder 'leaflet' do
file 'leaflet.js', 'https://unpkg.com/leaflet@1.2.0/dist/leaflet-src.js'
file 'leaflet.css', 'https://unpkg.com/leaflet@1.2.0/dist/leaflet.css'
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'
[ '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.2.0/dist/images/#{image}"
file "images/#{image}", "https://unpkg.com/leaflet@1.3.0/dist/images/#{image}"
end
from 'git://github.com/aratcliffe/Leaflet.contextmenu.git', :tag => 'v1.2.1' do

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After

View file

@ -47,6 +47,7 @@
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer {
max-width: none !important;
max-height: none !important;
}
.leaflet-container.leaflet-touch-zoom {
@ -55,7 +56,10 @@
}
.leaflet-container.leaflet-touch-drag {
-ms-touch-action: pinch-zoom;
}
/* Fallback for FF which doesn't support pinch-zoom */
touch-action: none;
touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
-ms-touch-action: none;
touch-action: none;

File diff suppressed because it is too large Load diff