toodego: adapt air quality map to new tiles handling

This commit is contained in:
Frédéric Péters 2020-02-26 20:00:09 +01:00
parent a8869ec0ff
commit 8ac1d03e3e
1 changed files with 12 additions and 0 deletions

View File

@ -26,8 +26,20 @@
data-max-bounds-lat2="{{ max_bounds.corner2.lat }}"
data-max-bounds-lng2="{{ max_bounds.corner2.lng }}"
{% endif %}
data-cell-id="0"
>
</div>
<script>
var tiles_0 = [];
{% for layer in tiles_layers %}
tiles_0.push({
tile_urltemplate: {{ layer.tile_urltemplate|as_json|safe }},
map_attribution: {{ layer.map_attribution|as_json|safe }},
opacity: {{ layer.opacity|as_json|safe }}
});
{% endfor %}
</script>
<div class="minitiles">
</div>
</div>