add scale control to leaflet

This commit is contained in:
Laura Klünder 2016-08-19 19:50:19 +02:00
parent b79f84f0b6
commit 4ba139c380

View file

@ -20,6 +20,7 @@ layers = {
"{{ source.name }}": L.imageOverlay('{% url 'map.source' filename=filename %}', {{ source.jsbounds }}),{% endfor %}
}
L.control.layers([], layers).addTo(map);
L.control.scale({imperial: false}).addTo(map);
</script>
{% endblock %}