I installed the GMAP module Ok.

I am using gmap macro to try to show a different map in a node. For example, I input this is a page node:

[gmap zoom=2 |center=62.915233039476135,-136.40625 |width=500px |height=400px |control=Small |type=Map]

But the center of the map that shows is always the same CENTER as established in the DEFAULT CENTER in the GMAP settings.
When using the BUILD A GMAP MACRO screen, the map that I want shows OK, but when inserting the macro in a page node like above, I get exactly the same center of the map. In other words, the map that I see in my page node is the same with the above macro or with a different one like:

[gmap zoom=2 |center=32.915233039476135,-86.40625 |width=500px |height=400px |control=Small |type=Map]

The ZOOM and other parameters do seem to work correctly.

Any ideas please ?

Comments

JohnnyMoney’s picture

More details:

This is the code inside the node:

Drupal.extend({ settings: { "gmap": { "map1": { "width": "500px", "height": "400px", "zoom": 9, "maxzoom": "14", "controltype": "Large", "align": "Center", "maptype": "Map", "mtc": "standard", "baselayers": { "Map": 1, "Satellite": 1, "Hybrid": 1, "Physical": 1 }, "styles": { "line_default": [ "0000ff", "5", "45", null, null ], "poly_default": [ "000000", "3", "25", "ff0000", "45" ] }, "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": 0, "nokeyboard": 1, "nomousezoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 1, "collapsehack": 0, "scale": 1, "fatmarkers": false }, "markermode": "1", "center": "33.97297577172598,-6.844482421875", "id": "map1", "longitude": "-3.636474609375", "latitude": "40.44694705960048" } } } });
/* ]]> */

The longitude and latitude right after "center": is the correct one, that is, the one I created in the gmacro and copied to the node.
But at the end it is adding "longitude" and "latitude" that is the default chosen in administer gmap.

I looked in a site done with 6.x that is working fine with GMAP and notice that there is only one set of long/lat data, and it iis the correct one of course.

Anyideas please?

Anonymous’s picture

I seem to have the same problem in the D7 version. Did you ever resolve this?