help request:
I have created a gmap view using the views module to map content of a certain type. problem is if the long or lat has a negative value, the node doesnt show on the map.
http://dev.bigclover.com/?q=fieldnotes/main
thoughts?
thanks in advance,
Pat Sheridan
Comments
Comment #1
webgeer commentedWhen I looked the node with the negative lat (in the southern hemisphere) appeared on the map in both IE and FF.
Comment #2
psheridan commentedthe culprit is around line 1197 in the gmap.module
replace:
- if (strlen($location['lat'])>0 && strlen($location['lon']>0)) {
with:
+ if (strlen(sprintf($location['lat']))>0 && strlen(sprintf($location['lon']))>0) {
and then you're money!
Comment #3
bdragon commentedI can't imagine this code still existing, assuming it was fixed sometime in the past.. year and a half..