The only thing that seems to work is the zoom level, but the map is always centered on the DEFAULT longitude and latitude set at administer-gmap.
Looking at the code of the page where the node is, tlook at this:
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; this is the map lat/long that is showing in the node.
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 is the correct one of course.
Please help. Thanks in advance.
Comments
Comment #1
JohnnyMoney commentedComment #2
gosomewhere.eu commentedI am one of the many guys with the same problem. All the other parameters are fine, except the center point, which always displays the default. Help please!
Thanks
Comment #3
gosomewhere.eu commentedJohnny, if you have't yet fixed this, go to the gmap module page. Check somewhere there for latest updates and on the 1st or 2nd of October, the developer made some changes to the code solving this. Just follow the instrutions there and it will work.
Comment #4
JohnnyMoney commentedOk will try that and report, thanks.
Comment #5
JohnnyMoney commentedFine, after installing gmap-5.x-1.0-rc1.tar.gz today now things work as they should !
Thanks.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.