Permalink
Browse files

Modified initial map zoom parameter to use localsettings.zoom or 8

  • Loading branch information...
Casey Thomas
Casey Thomas committed Apr 25, 2012
1 parent d8e19b2 commit c574b7a7c95ab78eb7090ee8ec70a787bc6c3a4f
Showing with 2 additions and 2 deletions.
  1. +2 −2 static/js/sh.map.js
View
@@ -19,7 +19,7 @@ sheltr.map = (function ($) {
create: function (options) {
var settings = {
mapId: 'map',
- zoom: 14,
+ zoom: sheltr.state.localSettings.zoom || 10,
center: sheltr.state.localSettings.mapCenter,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
@@ -66,7 +66,7 @@ sheltr.map = (function ($) {
beds = '<p>Available Beds: ' + location.openBeds + '</p>';
}
- description = '<a href="/' + (location.slug || location.id) + '">' + location.name + '</a><br>' + location.address1 + '<br>' + beds + '<a href="http://www.google.com/maps?q=to:' + location.address1 +'">Get Directions</a>'
+ description = '<a href="/' + (location.slug || location.id) + '">' + location.name + '</a><br>' + location.address1 + '<br>' + beds + '<a href="http://www.google.com/maps?q=to:' + location.address1 +'">Get Directions</a>'
icon = sheltr.locations.selectMarkerIcon(location);
options = {icon: icon, shadow: markerShadow};

0 comments on commit c574b7a

Please sign in to comment.