[Update: partly solved, read below]
There is something weird going on with my StoreLocator. I installed it through packet manager, copied the example code from the RTFM, and added some locations (generated by the address-function in StoreLocator; eg somewhere in the Netherlands: long 4.579994 lat 51.913953).
The strange thing is; the markers don't show up on the map! The map is shown, but it is empty. I checked and tried a lot of things, but could not find a solution. The markers (stores)
are shown in the storeList beneath the map, and when I click on a store from the storeList, it will point me to a location on the map which is way from the location I have set (thousands kilometres away). (If you are wondering; the location where I am pointed to is also not marked on the map, so it's not just me using wrong long/lat coordinates)
Can anyone "point me in the right direction"?
MODX 2.2.6
StoreLocator 1.1.0
Update:
After a long search I found out that the stores are not shown on the map because I had set my 'locale' (see system settings) to 'nl_NL'. This locale setting will automatically change the dot (.) in a coordinate to a comma, like: 51.913953 to 51,913953. And than Google Maps don't know what to do with it because it expect a dotted coordinate. So, after changing the locale to 'en' or 'nl', the stores are shown on the map again!
I'm still having the problem that my server (CentOS 5.5) requires 'nl_NL' as locale value, not just 'nl'. So, setting the locale of MODX to Dutch is not possible. A temporary fix is to use 'en' locale, and use a snippet to set the locale for the dates, like this:
[[+publishedon:setLocale:strtotime:date=`%e %B %Y`]]
Snippet setLocale:
setlocale(LC_ALL,'nl_NL');
So, to Scherp Ontwikkeling; please fix StoreLocator so it's usable when locale is set to nl_NL, or something similar
Filed as bug here:
https://github.com/b03tz/StoreLocator/issues/13
[ed. note: michelle84 last edited this post 10 years, 11 months ago.]