aboutsummaryrefslogtreecommitdiff
path: root/web/public/javascripts
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-08 01:41:09 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-03-08 01:41:09 +0000
commit21b548793df8ce36e78303cddb07fd69ac7f8b76 (patch)
treee341aac7dc59c7539ec374f34a25e2f94dcf01db /web/public/javascripts
parentd54324f974ddc85ba76e1922faeb58b247baf651 (diff)
parent54e468b728dbdce20f98bae88caaaaa74b122d24 (diff)
resolve conflicts
Diffstat (limited to 'web/public/javascripts')
-rw-r--r--web/public/javascripts/map.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js
index 5b196d9..cb72756 100644
--- a/web/public/javascripts/map.js
+++ b/web/public/javascripts/map.js
@@ -15,8 +15,9 @@ function plotPointsOnMap(points) {
return "<p>" + JSON.stringify(layer.feature.geometry) + "</p>";
}).addTo(map)
- // rezoom the map so that all the markers fit in the view
- map.fitBounds(latlngbounds);
+ // rezoom the map so that all the markers fit in the view, add 20% padding so
+ // that marker dont cut off
+ map.fitBounds(latlngbounds.pad(0.20));
}
// different basemap