Skip to content

Commit

Permalink
added scale bar
Browse files Browse the repository at this point in the history
  • Loading branch information
kidwellj committed Jul 10, 2017
1 parent ce1cab5 commit c3d7746
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Clustering/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ <h1 class="sidebar-header">
L.control.zoom({
position:'topleft'
}).addTo(map);

L.control.scale({
imperial: 'true'
}).addTo(map);

setInterval(function(){
map.setView([0, 0]);
setTimeout(function(){
map.setView([60, 0]);
}, 2000);
}, 4000);


//Adds the layer of the map which can be changed by altering the png file
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
Expand Down

0 comments on commit c3d7746

Please sign in to comment.