{% extends "base.html" %}
{% block legend %}{% endblock legend %}
{% block map %}
map.on('style.load', function() {
map.addSource("image", {
"type": "image",
"url": "{{ image }}", // url or base64 encoded image
"coordinates": {{ coordinates }}
});
map.addLayer({
"id": 'image',
"type": "raster",
"source": "image"
}, "{{belowLayer}}");
});
{% endblock map %}