Update leaflet.

This commit is contained in:
Rasmus Kaj 2019-04-26 00:33:59 +02:00
parent 94e55a8a57
commit 336b439d7a
15 changed files with 652 additions and 653 deletions

View File

@ -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 = () => {

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 696 B

After

Width:  |  Height:  |  Size: 696 B

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 618 B

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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);

View File

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