<optiontype>float</optiontype>
<defaultvalue>13.4</defaultvalue>
</option>
- <option name="google_maps_user_location_as_default">
+ <option name="google_maps_access_user_location">
<categoryname>general.system.googleMaps</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
zoom: {@GOOGLE_MAPS_ZOOM},
defaultLatitude: {@GOOGLE_MAPS_DEFAULT_LATITUDE},
defaultLongitude: {@GOOGLE_MAPS_DEFAULT_LONGITUDE},
- userLocationAsDefault: {@GOOGLE_MAPS_USER_LOCATION_AS_DEFAULT}
+ accessUserLocation: {@GOOGLE_MAPS_ACCESS_USER_LOCATION}
});
{event name='javascriptInit'}
* @param integer timeout
*/
getLocation: function(callback, timeout) {
- var $userLocationAsDefault = WCF.Location.GoogleMaps.Settings.get('userLocationAsDefault');
- if (navigator.geolocation && $userLocationAsDefault !== null && $userLocationAsDefault) {
+ var $accessUserLocation = WCF.Location.GoogleMaps.Settings.get('accessUserLocation');
+ if (navigator.geolocation && $accessUserLocation !== null && $accessUserLocation) {
navigator.geolocation.getCurrentPosition(function(position) {
callback(position.coords.latitude, position.coords.longitude);
}, function() {
<item name="wcf.acp.option.google_maps_enable_double_click_zoom"><![CDATA[Zoom durch Doppelklick zulassen]]></item>
<item name="wcf.acp.option.google_maps_default_latitude"><![CDATA[Standard-Kartenposition (Breitengrad)]]></item>
<item name="wcf.acp.option.google_maps_default_longitude"><![CDATA[Standard-Kartenposition (Längengrad)]]></item>
- <item name="wcf.acp.option.google_maps_user_location_as_default"><![CDATA[Aktuelle Benutzerposition verwenden]]></item>
- <item name="wcf.acp.option.google_maps_user_location_as_default.description"><![CDATA[Bei der Angabe von Positionen wird die aktuelle Position des Benutzers als Ausgangspunkt auf der Karte verwendet.]]></item>
+ <item name="wcf.acp.option.google_maps_access_user_location"><![CDATA[Aktuelle Benutzerposition verwenden]]></item>
+ <item name="wcf.acp.option.google_maps_access_user_location.description"><![CDATA[Bei der Angabe von Positionen wird die aktuelle Position des Benutzers als Ausgangspunkt auf der Karte verwendet.]]></item>
<item name="wcf.acp.option.message_sidebar_enable_user_online_marking"><![CDATA[„Benutzer online“-Darstellung für Benutzernamen verwenden]]></item>
<item name="wcf.acp.option.module_privacy_policy_page"><![CDATA[Datenschutzerklärung aktivieren]]></item>
<item name="wcf.acp.option.module_privacy_policy_page.description"><![CDATA[Die Datenschutzerklärung informiert Nutzer über die Erfassung personenbezogener Daten.]]></item>
<item name="wcf.acp.option.google_maps_enable_double_click_zoom"><![CDATA[Enable Zoom by Double-Clicking]]></item>
<item name="wcf.acp.option.google_maps_default_latitude"><![CDATA[Default Map Position (Latitude)]]></item>
<item name="wcf.acp.option.google_maps_default_longitude"><![CDATA[Default Map Position (Longitude)]]></item>
- <item name="wcf.acp.option.google_maps_user_location_as_default"><![CDATA[Use Current User Location]]></item>
- <item name="wcf.acp.option.google_maps_user_location_as_default.description"><![CDATA[When entering a location, the current location of the user is used as start point on the map.]]></item>
+ <item name="wcf.acp.option.google_maps_access_user_location"><![CDATA[Use Current User Location]]></item>
+ <item name="wcf.acp.option.google_maps_access_user_location.description"><![CDATA[When entering a location, the current location of the user is used as start point on the map.]]></item>
<item name="wcf.acp.option.message_sidebar_enable_user_online_marking"><![CDATA[Apply “Users Online” markings for usernames]]></item>
<item name="wcf.acp.option.module_privacy_policy_page"><![CDATA[Enable Privacy Policy Page]]></item>
<item name="wcf.acp.option.module_privacy_policy_page.description"><![CDATA[Inform users regarding the use of their personal data.]]></item>