I'm using gmap in a fairly simple way, just to embed a google map into a node. This works nicely.
The problem I am seeing is that the markers are drifting on zoom in and out. Only at the highest
zoom are they actually displaying in the correct place.
I'm using "No Manager" for marker manager, since I only need at most a few markers per map.
I've seen google references to marker drift, but not with respect drupal and gmap. Any ideas on what the problem might be ?
here's my macro:
[gmap |zoom=9 |center=50.7192,-2.039 |width=100% |height=300px |id=map | |type=Map |align=Center |markers=50.7192,-2.039]
Comments
Comment #1
bdragon commentedVery odd.
Hmm, assuming there isn't a bug on google's side, I think the 100% width and the Center alignment are most likely to be the source.
I changed width to 600px and removed the align, and it seems more accurate. Can you verify?
Comment #2
solutiondrop commentedI have just seen this problem as well, with almost the same as setup as rob_beetleweb. I am also using "No Manager" for marker manager. The difference being that I am displaying the gmap as a View. Also, the problem is still there after I changed the width from 100% to 425px, and there is no center align. I have a site using the 4.7 version of the Gmap module that seems to place the marker very close to perfect on all zoom level, but with a dev site the marker is off by quite a bit and as you zoom it gets closer to the actual location.
Also, maybe not related but I thought I'd mention that the marker is big blue and I can't seem to change it, and I didn't select it in the first place. It used to default to the regular red one.
Here's the default location map:
[gmap|id=locmap|center=50.7364,-110.5664|zoom=3|width=425px|height=400px]
Here is a link to the 5.1 development version:
http://dev.vcnv.org/occupation-project/campaign-descriptions
and here is one to the live 4.7.4 version with the same data for the locations as above:
http://vcnv.org/occupation-project/campaign-descriptions
I'll post here if I find anything related to this problem.
Thanks for such a great module.
DS
Comment #3
bdragon commentedHmm, the shadows are missing too. Maybe the marker definition is screwy and it's using 0,0 for the tip of the marker or something similar.. Is there a certain pixel on the marker that always stays over the desired location? Perhaps it's placing the marker accurately, but with the pin-point in the wrong place.
About big blue:
That's what the code currently falls back to if it couldn't find the marker it was looking for. Yeah, it should be falling back to the one provided by Google, I need to fix that...
Comment #4
solutiondrop commentedThanks bdragon.
I need to apologize to say that at: http://dev.vcnv.org/occupation-project/campaign-descriptions
I ended up swapping the big blue marker for the default one by renaming and copying the default one to the big directory. When I revert back to the big blue file the problem persists.
With the replacement of the default marker it is now pin-pointed correctly without any drift, although I don't know why the shadow isn't showing up now. I'll keep testing and take a look at the code some more.
DS
Comment #5
bdragon commentedYikes.
The coordinates for the big/* markers were significantly off.
Here's better ones...
Fix committed to DRUPAL-5.
If you're using your own markers, just make a folder in markers and make an ini file to describe them. (See the other ini files for reference.)
Comment #6
rob_beetleweb commentedHi. I've just installed the latest version and the problem is resolved for me.
I notice that my markers are now defaulting to small red, not the bigger blue (which I think is what bdragon was mentioning in his comment).
So to be more specific, with the small red markers ( which suit better for me anyhow ) the problem is fixed.
Thanks for your great work on this module bdragon ! ( and thanks dividedspace for confirming issue ).
Let me know if you want me to test anything on this issue or module.
Comment #7
bdragon commentedThe small red markers are the default ones provided by Google.
I changed the javascript code to use it instead of big blue when the type wasn't set on a marker.
Thanks for the report!
Comment #8
(not verified) commented