<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
</option>
+ <option name="google_maps_default_latitude">
+ <categoryname>general.system.googleMaps</categoryname>
+ <optiontype>float</optiontype>
+ <defaultvalue>52.517</defaultvalue>
+ </option>
+ <option name="google_maps_default_longitude">
+ <categoryname>general.system.googleMaps</categoryname>
+ <optiontype>float</optiontype>
+ <defaultvalue>13.4</defaultvalue>
+ </option>
<!-- /general.system.googleMaps -->
<!-- general.mail.general -->
scaleControl: {@GOOGLE_MAPS_ENABLE_SCALE_CONTROL},
scrollwheel: {@GOOGLE_MAPS_ENABLE_SCROLL_WHEEL_ZOOM},
type: '{@GOOGLE_MAPS_TYPE}',
- zoom: {@GOOGLE_MAPS_ZOOM}
+ zoom: {@GOOGLE_MAPS_ZOOM},
+ defaultLatitude: {@GOOGLE_MAPS_DEFAULT_LATITUDE},
+ defaultLongitude: {@GOOGLE_MAPS_DEFAULT_LONGITUDE}
});
{event name='javascriptInit'}
var $defaultMapOptions = { };
// dummy center value
- $defaultMapOptions.center = new google.maps.LatLng(52.517, 13.4); // Berlin
+ $defaultMapOptions.center = new google.maps.LatLng(WCF.Location.GoogleMaps.Settings.get('defaultLatitude'), WCF.Location.GoogleMaps.Settings.get('defaultLongitude'));
// double click to zoom
$defaultMapOptions.disableDoubleClickZoom = WCF.Location.GoogleMaps.Settings.get('disableDoubleClickZoom');