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 |
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(())
|
||||
}
|
||||
|