I first posted this problem about a month ago, but it looks like it's been deleted?
I can't seem to get the map to center on the UK using gmap settings - for example, if I try:
Default map settings
Default width: 600
The default width of a Google map.
Default height: 450
The default height of a Google map.
Default center: 55,-4
The default longitude, latitude of a Google map.
Default zoom: 5
The default zoom level of a Google map.
Default control type: Small
Default map type: Map
Then it centers over the west coast of Africa.
But if I reduce the size of the map to something like 500x375, it works
Default map settings
Default width: 500
The default width of a Google map.
Default height: 375
The default height of a Google map.
Default center: 55,-4
The default longitude, latitude of a Google map.
Default zoom: 5
The default zoom level of a Google map.
Default control type: Small
Default map type: Map
If the default center is set to webgeer's example for Richmond, Canada then I can get it to centre properly at any map size or zoom level???
Any ideas?
Thanks
Stuart
Comments
Comment #1
webgeer commentedAs I noted in the previous bug submission (http://drupal.org/node/73636) I have been unable to recreate this problem.
I set the exact same defaults as you and as you can see on: http://webgeer.com/map/macro it works as expected.
The one possible pitfall I see is that you did not put the "px" after the width and height. As noted in http://drupal.org/node/79208 this does seem to cause problems.
Comment #2
OnkelTem commentedI experience exactly this problem with gmap-5.x-1.0-alpha1, gmap-5.x-0.9-beta1 and gmap-5.x-1.x-dev. Location version is 5.x-1.x-dev.
My settings are:
Default width: 500px
Default height: 400px
Default center: 55.55349545845371,37.08984375
Default zoom: 5
Default control type: small
Default map type: map
Whenever I create a node with locative information coords are reseted to Nulls and map centers somewhere in Africa.
Comment #3
cglusky commentedI am noticing a difference in functionality depending on which Marker Manager I have selected in GMAP admin settings. I seem to get the best results with "None" selected - or at least more predictable.
So which Marker Manager are you using?
And can you please try modifying that setting and see if you get a different result.
Thanks,
Coby
Comment #4
OnkelTem commentedMy "Marker manager" setting is set to "No manager (use addOverlay directly)" if this is what you mean.
Also, when I open for edit a node for which coordinates were set, GMAP 'scrolls' to proper location on map but ZOOM is set to some very big value - more then 10.
Comment #5
cglusky commentedYes. Marker Manager settings in GMAP admin. Sorry about that, was not very specific in my post. Not sure what you have going on. Is this a map you are viewing as a block in a node?
If so, I have a patch waiting for review that MIGHT help, but no sure. There were a few issues with the macro setting being hard coded.
see this http://drupal.org/node/223588
Comment #6
cglusky commenteddoes this help?
http://drupal.org/node/224857
Comment #7
rbl commentedI think the problem lies in static vs dynamic maps. Statics can't be bigger than 500px if memory serves.
Ricardo
Comment #8
bdragon commentedClosing, assuming it has been fixed since. Please create a new issue if something is still broken.