1 {if !$__googleMapsInit|isset}
2 {assign var=__googleMapsInit value=1}
4 <script data-relocate="true" src="{@$__wcf->getPath()}js/3rdParty/markerClusterer{if !ENABLE_DEBUG_MODE}.min{/if}.js?v={@LAST_UPDATE_TIME}"></script>
5 <script data-relocate="true" src="https://maps.google.com/maps/api/js?{if GOOGLE_MAPS_API_KEY}key={@GOOGLE_MAPS_API_KEY}&{/if}language={@$__wcf->language->getFixedLanguageCode()}"></script>
6 <script data-relocate="true" src="{@$__wcf->getPath()}js/3rdParty/oms.min.js?v={@LAST_UPDATE_TIME}"></script>
7 <script data-relocate="true">
9 WCF.Language.addObject({
10 'wcf.map.noLocationSuggestions': '{jslang}wcf.map.noLocationSuggestions{/jslang}',
11 'wcf.map.route.error.not_found': '{jslang}wcf.map.route.error.not_found{/jslang}',
12 'wcf.map.route.error.over_query_limit': '{jslang}wcf.map.route.error.over_query_limit{/jslang}',
13 'wcf.map.route.error.request_denied': '{jslang}wcf.map.route.error.request_denied{/jslang}',
14 'wcf.map.route.origin': '{jslang}wcf.map.route.origin{/jslang}',
15 'wcf.map.route.planner': '{jslang}wcf.map.route.planner{/jslang}',
16 'wcf.map.route.travelMode': '{jslang}wcf.map.route.travelMode{/jslang}',
17 'wcf.map.route.travelMode.bicycling': '{jslang}wcf.map.route.travelMode.bicycling{/jslang}',
18 'wcf.map.route.travelMode.driving': '{jslang}wcf.map.route.travelMode.driving{/jslang}',
19 'wcf.map.route.travelMode.transit': '{jslang}wcf.map.route.travelMode.transit{/jslang}',
20 'wcf.map.route.travelMode.walking': '{jslang}wcf.map.route.travelMode.walking{/jslang}',
21 'wcf.map.route.viewOnGoogleMaps': '{jslang}wcf.map.route.viewOnGoogleMaps{/jslang}',
22 'wcf.map.showLocationSuggestions': '{jslang}wcf.map.showLocationSuggestions{/jslang}',
23 'wcf.map.useLocationSuggestion': '{jslang}wcf.map.useLocationSuggestion{/jslang}'
26 WCF.Location.GoogleMaps.Settings.set({
27 disableDoubleClickZoom: {if GOOGLE_MAPS_ENABLE_DOUBLE_CLICK_ZOOM}0{else}1{/if},
28 draggable: {@GOOGLE_MAPS_ENABLE_DRAGGING},
29 mapType: '{@GOOGLE_MAPS_TYPE}',
30 markerClustererImagePath: '{@$__wcf->getPath()}images/markerClusterer/',
31 scaleControl: {@GOOGLE_MAPS_ENABLE_SCALE_CONTROL},
32 scrollwheel: {@GOOGLE_MAPS_ENABLE_SCROLL_WHEEL_ZOOM},
33 type: '{@GOOGLE_MAPS_TYPE}',
34 zoom: {@GOOGLE_MAPS_ZOOM},
35 defaultLatitude: {@GOOGLE_MAPS_DEFAULT_LATITUDE},
36 defaultLongitude: {@GOOGLE_MAPS_DEFAULT_LONGITUDE},
37 accessUserLocation: {@GOOGLE_MAPS_ACCESS_USER_LOCATION}
40 {event name='javascriptInit'}