add scale control to leaflet
This commit is contained in:
parent
b79f84f0b6
commit
4ba139c380
1 changed files with 1 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue