Skip to content

Commit

Permalink
Modified initial map zoom parameter to use localsettings.zoom or 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Thomas committed Apr 25, 2012
1 parent d8e19b2 commit c574b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/sh.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down Expand Up @@ -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};

Expand Down

0 comments on commit c574b7a

Please sign in to comment.