Show whole world by default, before geolocation.
Resolves ticket #882347 (https://bugzilla.mozilla.org/show_bug.cgi?id=882347).
This commit is contained in:
Родитель
84f4a0ffbd
Коммит
758b6750de
|
@ -1,10 +1,9 @@
|
|||
define(['jquery', 'google', 'map/map_maker', 'map/forms'],
|
||||
function ($, google, MapMaker, EventForms) {
|
||||
|
||||
var defaultZoom = 13;
|
||||
var mapCenter = new google.maps.LatLng(37.774546, -122.433523);
|
||||
var mapOptions = {
|
||||
zoom: defaultZoom,
|
||||
zoom: 2, // starting zoom level, show whole world
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP,
|
||||
center: mapCenter,
|
||||
|
||||
|
|
|
@ -175,6 +175,7 @@ function ($, google, InfoBubble, OverlappingMarkerSpiderfier, MarkerClusterer) {
|
|||
|
||||
if (navigator.geolocation) {
|
||||
navigator.geolocation.getCurrentPosition(getCurrentPosition_success, getCurrentPosition_error, options);
|
||||
google_map.setZoom(13);
|
||||
} else {
|
||||
console.log("Sorry - your browser doesn't support geolocation!");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче