You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just found out that when my locale (MODX system setting) is set to 'nl_NL', there are no stores showed on the map. This locale setting will automatically change the dot (.) to a comma in a coordinate, like: 51.913953 to 51,913953. And than Google Maps don't know what to do with it because it expects a dotted coordinate. I saw this happened in the page source code, (see below) but it will also occur somewhere else in your codes.
With locale 'nl_NL':
< a onclick="storeLocatorMap.setCenter(new google.maps.LatLng(51,91412, 4,580343)); storeLocatorMap.setZoom(13);" style="cursor: pointer;">• Location A< /a >
With locale 'en':
< a onclick="storeLocatorMap.setCenter(new google.maps.LatLng(51.91412, 4.580343)); storeLocatorMap.setZoom(13);" style="cursor: pointer;">• Location A< /a >
So, after changing the locale to 'en', the stores are shown on the map again. My server (CentOS 5.5) requires 'nl_NL' as locale, not just 'nl'. So using 'nl' is not an option.
Please fix StoreLocator so it's usable when locale is set to 'nl_NL', or something similar :)
Just found out that when my locale (MODX system setting) is set to 'nl_NL', there are no stores showed on the map. This locale setting will automatically change the dot (.) to a comma in a coordinate, like: 51.913953 to 51,913953. And than Google Maps don't know what to do with it because it expects a dotted coordinate. I saw this happened in the page source code, (see below) but it will also occur somewhere else in your codes.
With locale 'nl_NL':
< a onclick="storeLocatorMap.setCenter(new google.maps.LatLng(51,91412, 4,580343)); storeLocatorMap.setZoom(13);" style="cursor: pointer;">• Location A< /a >
With locale 'en':
< a onclick="storeLocatorMap.setCenter(new google.maps.LatLng(51.91412, 4.580343)); storeLocatorMap.setZoom(13);" style="cursor: pointer;">• Location A< /a >
So, after changing the locale to 'en', the stores are shown on the map again. My server (CentOS 5.5) requires 'nl_NL' as locale, not just 'nl'. So using 'nl' is not an option.
Please fix StoreLocator so it's usable when locale is set to 'nl_NL', or something similar :)
I've also discussed this here, with a temporary fix: http://forums.modx.com/thread/74885/support-topic-for-storelocator-1-0-pl-1?page=4#dis-post-465567
MODX 2.2.6
StoreLocator 1.1.0
The text was updated successfully, but these errors were encountered: