Skip to content

Commit

Permalink
Removing constraint of having all pins showing when loading in non-lo…
Browse files Browse the repository at this point in the history
…cation-specific map (#41)
  • Loading branch information
SherriAlexander committed Sep 30, 2014
1 parent a09d1bc commit 8f2fe94
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions _site/ui/js/scripts-concat.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _source/ui/js/scripts-concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -25748,9 +25748,10 @@ Artbot.byLocation = {
console.log("Show map zoomed to show all locations");
Artbot.byLocation.vars.mapInstance.setView([42.3581, -71.0636], 12);

var bounds = L.latLngBounds(Artbot.byLocation.vars.boundsArray);
// If we wanted to limit the map so that it contained all pins:
//var bounds = L.latLngBounds(Artbot.byLocation.vars.boundsArray);
//console.log(bounds);
Artbot.byLocation.vars.mapInstance.fitBounds(bounds, { padding: [10, 10]});
//Artbot.byLocation.vars.mapInstance.fitBounds(bounds, { padding: [10, 10]});
}

Artbot.footerSlider.init();
Expand Down
4 changes: 2 additions & 2 deletions _source/ui/js/scripts-concat.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions _source/ui/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2760,9 +2760,10 @@ Artbot.byLocation = {
console.log("Show map zoomed to show all locations");
Artbot.byLocation.vars.mapInstance.setView([42.3581, -71.0636], 12);

var bounds = L.latLngBounds(Artbot.byLocation.vars.boundsArray);
// If we wanted to limit the map so that it contained all pins:
//var bounds = L.latLngBounds(Artbot.byLocation.vars.boundsArray);
//console.log(bounds);
Artbot.byLocation.vars.mapInstance.fitBounds(bounds, { padding: [10, 10]});
//Artbot.byLocation.vars.mapInstance.fitBounds(bounds, { padding: [10, 10]});
}

Artbot.footerSlider.init();
Expand Down

0 comments on commit 8f2fe94

Please sign in to comment.