kopia lustrzana https://github.com/hholzgra/maposmatic/
show tile load spinner after slight delay only
rodzic
80f854f088
commit
4adb13a16a
|
@ -166,10 +166,17 @@
|
||||||
// TODO: attribution (shows on all zoom levels ...)
|
// TODO: attribution (shows on all zoom levels ...)
|
||||||
});
|
});
|
||||||
|
|
||||||
var map = L.map(elt.attr('id'), { loadingControl: true } );
|
var map = L.map(elt.attr('id'));
|
||||||
map.addLayer(osmLayer);
|
map.addLayer(osmLayer);
|
||||||
map.addLayer(treeLayer);
|
map.addLayer(treeLayer);
|
||||||
|
|
||||||
|
var loadingControl = L.Control.loading({
|
||||||
|
// separate: true,
|
||||||
|
// position: 'bottomleft',
|
||||||
|
delayIndicator: 100,
|
||||||
|
});
|
||||||
|
map.addControl(loadingControl);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
{% if OUTER_BOUNDS_JSON and OUTER_BOUNDS_JSON|length > 0%}
|
{% if OUTER_BOUNDS_JSON and OUTER_BOUNDS_JSON|length > 0%}
|
||||||
var boundsStyle = {
|
var boundsStyle = {
|
||||||
|
|
Ładowanie…
Reference in New Issue