Update leaflet.
@ -226,12 +226,12 @@
|
||||
let h = d.querySelector('head');
|
||||
var csslink = d.createElement('link');
|
||||
csslink.rel = 'stylesheet';
|
||||
csslink.href = '/static/l131/leaflet.css';
|
||||
csslink.href = '/static/l140/leaflet.css';
|
||||
h.append(csslink);
|
||||
f.insertAdjacentHTML('beforeend', '<div id="amap"></div>');
|
||||
var slink = d.createElement('script');
|
||||
slink.type = 'text/javascript';
|
||||
slink.src = '/static/l131/leaflet.js';
|
||||
slink.src = '/static/l140/leaflet.js';
|
||||
slink.async = 'async';
|
||||
var marker;
|
||||
slink.onload = () => {
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
@ -45,7 +45,8 @@
|
||||
.leaflet-container .leaflet-marker-pane img,
|
||||
.leaflet-container .leaflet-shadow-pane img,
|
||||
.leaflet-container .leaflet-tile-pane img,
|
||||
.leaflet-container img.leaflet-image-layer {
|
||||
.leaflet-container img.leaflet-image-layer,
|
||||
.leaflet-container .leaflet-tile {
|
||||
max-width: none !important;
|
||||
max-height: none !important;
|
||||
}
|
||||
@ -168,7 +169,6 @@
|
||||
opacity: 0;
|
||||
-webkit-transition: opacity 0.2s linear;
|
||||
-moz-transition: opacity 0.2s linear;
|
||||
-o-transition: opacity 0.2s linear;
|
||||
transition: opacity 0.2s linear;
|
||||
}
|
||||
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
||||
@ -185,14 +185,12 @@
|
||||
.leaflet-zoom-anim .leaflet-zoom-animated {
|
||||
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
-o-transition: -o-transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
||||
}
|
||||
.leaflet-zoom-anim .leaflet-tile,
|
||||
.leaflet-pan-anim .leaflet-tile {
|
||||
-webkit-transition: none;
|
||||
-moz-transition: none;
|
||||
-o-transition: none;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
@ -209,6 +207,7 @@
|
||||
.leaflet-grab {
|
||||
cursor: -webkit-grab;
|
||||
cursor: -moz-grab;
|
||||
cursor: grab;
|
||||
}
|
||||
.leaflet-crosshair,
|
||||
.leaflet-crosshair .leaflet-interactive {
|
||||
@ -224,6 +223,7 @@
|
||||
cursor: move;
|
||||
cursor: -webkit-grabbing;
|
||||
cursor: -moz-grabbing;
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
/* marker & overlays interactivity */
|
||||
@ -494,7 +494,6 @@
|
||||
-webkit-transform: rotate(45deg);
|
||||
-moz-transform: rotate(45deg);
|
||||
-ms-transform: rotate(45deg);
|
||||
-o-transform: rotate(45deg);
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
.leaflet-popup-content-wrapper,
|
5
res/leaflet-1.4.0/leaflet.js
Normal file
3
res/leaflet-cluster-1.4.1/lmc.js
Normal file
10
res/ux.js
@ -37,13 +37,13 @@
|
||||
let h = d.querySelector('head');
|
||||
var csslink = d.createElement('link');
|
||||
csslink.rel = 'stylesheet';
|
||||
csslink.href = '/static/l131/leaflet.css';
|
||||
csslink.href = '/static/l140/leaflet.css';
|
||||
h.append(csslink);
|
||||
let m = d.querySelector('.meta') || d.querySelector('main');
|
||||
m.insertAdjacentHTML('beforeend', '<div id="map"></div>');
|
||||
var slink = d.createElement('script');
|
||||
slink.type = 'text/javascript';
|
||||
slink.src = '/static/l131/leaflet.js';
|
||||
slink.src = '/static/l140/leaflet.js';
|
||||
slink.async = 'async';
|
||||
slink.onload = () => {
|
||||
map = L.map('map', {'scrollWheelZoom': false, 'trackResize': false});
|
||||
@ -71,12 +71,12 @@
|
||||
let h = d.querySelector('head');
|
||||
h.insertAdjacentHTML(
|
||||
'beforeend',
|
||||
'<link rel="stylesheet" href="/static/lm130/lmc.css">' +
|
||||
'<link rel="stylesheet" href="/static/lm130/lmc-default.css">'
|
||||
'<link rel="stylesheet" href="/static/lm141/lmc.css">' +
|
||||
'<link rel="stylesheet" href="/static/lm141/lmc-default.css">'
|
||||
)
|
||||
var slink2 = d.createElement('script');
|
||||
slink2.type = 'text/javascript';
|
||||
slink2.src = '/static/lm130/lmc.js';
|
||||
slink2.src = '/static/lm141/lmc.js';
|
||||
h.append(slink2);
|
||||
slink2.onload = () => {
|
||||
let pos = JSON.parse(poss);
|
||||
|
@ -6,8 +6,8 @@ fn main() -> Result<(), RucteError> {
|
||||
statics.add_sass_file("res/photos.scss")?;
|
||||
statics.add_file("res/admin.js")?;
|
||||
statics.add_file("res/ux.js")?;
|
||||
statics.add_files_as("res/leaflet-1.3.1", "l131")?;
|
||||
statics.add_files_as("res/leaflet-cluster-1.3.0", "lm130")?;
|
||||
statics.add_files_as("res/leaflet-1.4.0", "l140")?;
|
||||
statics.add_files_as("res/leaflet-cluster-1.4.1", "lm141")?;
|
||||
ructe.compile_templates("templates")?;
|
||||
Ok(())
|
||||
}
|
||||
|