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

webgeer’s picture

When I looked the node with the negative lat (in the southern hemisphere) appeared on the map in both IE and FF.

psheridan’s picture

the 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!

bdragon’s picture

Status: Active » Closed (fixed)

I can't imagine this code still existing, assuming it was fixed sometime in the past.. year and a half..