Is anyone else having problems with Gmap Maps not showing? I noticed several other Drupal-based sites using the Gmap module weren't displaying their maps today - including the site of Webgeer who I think did a lot of the development of this module - http://www.webgeer.com/map/user.

See also
http://www.greenmap.org/greenhouse (my site)
http://www.cmtickets.com/ another drupal 4.7 site
http://photo-tips.ca/map/node

I guess that something must have changed at Google's end for it to stop all Drupal-based maps working, but couldn't see anything in the Google API discussion board http://groups.google.com/group/Google-Maps-API

Anyone have any ideas?

Comments

tom_o_t’s picture

Bdragon on IRC suggested that Google may be throttling users of the old version of the API. So users with V2 of the Google API get first priority when maps are loaded. I don't know much about which version of the API is used in 4.7, and it's difficult to find out with Drupal.org being slow at the moment. But I'll post again if I find out more.

pbarnett’s picture

Hi!

The maps on my 4.7.6 sites are not working either (and they were fine yesterday...)

Pete.

tom_o_t’s picture

Fix found by liorkesos

Ok,
I found a temporary workaround inspired by the help of bdragon...
It appears google is doing something funky reading the api ver and acting accordingly.
I don't understnad it totally but if you change line 31 in gmap/gmap.module from
define('GMAP_API_V', '2.55a');

to
define('GMAP_API_V', '2');

Things get normal again - I guess they have some conditionals on the version of the api - maybe a >= 2.x something and maybe supplying a generic 2 version we live within the condition.
Hope this helps..
Bdragon if this persists would you consider committing this formally to enable 4.7 gmap usage?
thanks for your help today
Lior

http://drupal.org/node/146532

pbarnett’s picture

Hi!

Thanks for the workaround; one of my clients is presenting the new site to his board tomorrow; I was anticipating a long night... now I can open a nice cold beer and chill instead!

Pete.

tom_o_t’s picture

My maps have stopped working again - same javascript error about GLatLongBounds is undefined.

tom_o_t’s picture

To get my maps working again I had to do a messy hack - commenting out the line:

// var bounds = new GLatLngBounds();

Somewhere around line 153

The bounds variable is used for autozoom, so this will probably stop working if you use it. It also seems to be used with clusterer, but I've never managed to get clusterer working anyway, so I don't mind about that! I used this in combination with fix #6 above, to prevent the javascript errors about GIcon and _mFlags being undefined.

I hope someone with better bugfixing abilities can figure out what exactly's going on here...

ptilu8’s picture

changing to define('GMAP_API_V', '2'); seems to fix mine !

Hope it will stay there, I hacked the module a bit so...

I use it for nodes location.

Check it at http://www.worldwale.com !!

tom_o_t’s picture

Ignore my last comment about having to comment out a line of code - changing the version to 2.69 straightened everything out.

mndonx’s picture

I have several broken maps on 4.7 with the _mFlags and GLatLngBounds javascript errors. Changing the gmap module to "define('GMAP_API_V', '2.69');" or "define('GMAP_API_V', '2');" does not fix the errors and the map is still not showing.

Help! Should I try a different number?

mndonx’s picture

OK - I solved that problem -- it had to do with 2 copies of the gmap module in the module folder (I didn't have permission to delete one.) It's all working OK now. Seems like I can only solve my own problems AFTER I've posted them to this board!

pisco23’s picture

I am having the same problem, of just seeing a blank white rectangle where the map should be... I have changed the version to "2" and to "2.69" to no avail, I have verified my API key. Any other ideas out there?
Thanks