I just loaded the new GMAP update and all of my maps just went belly up. They all are using the lat and lon set as the system default and not the ones for the node.

I am using the following code for displaying maps on my pages:

echo theme('gmap', array('#settings' => gmap_parse_macro('[ |zoom=14 |center='.$lat.', '.$lon.' |width=100% |height=250px |control=Small |type=Satellite |tcontrol=off |scontrol=on |ocontrol=off]')));

Where I set the $lat and $lon variables myself. The map is being presented but the center is completely wrong.

Please help!

Comments

keithmorr’s picture

I just noticed that the newest release notes mention:

"Fix up a bunch of strict notices in gmap_parse_macro()."

Is this my problem? Do I need to change the syntax of the string I am using to call the map?

askttt’s picture

my macro generated maps are dead as well

Cactii1’s picture

Version: 5.x-1.0-beta5 » 6.x-1.0-beta5

The CENTER tag is also ignored in the new 6.x-1.0-beta5 version as well when the code from the Build GMap Macro Utility is used in the BODY of a node.

bdragon’s picture

Status: Active » Fixed

OK, I found where I screwed up, fixed!
http://drupal.org/cvs?commit=143547
http://drupal.org/cvs?commit=143548

I'll push another beta out shortly.

bdragon’s picture

Title: All My Maps just went Belly Up! » Center not honored in beta5
Category: support » bug
Priority: Normal » Critical

Fixing statuses.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.