Hi everyone,

Firstly, awesome module! really really cool stuff here. One quick query i have is with the gmap_simple_map() function. I am trying to call this within a customPHP field in my view. Which actually pulls through the map and everything, however the map isn't being centered on the marker, it's well off centered and is blotchy. As in the map doesn't display fully, it has blocks of the map missing, and instead displays grey colour.

What appears to be happening to me, is that within my Gmap settings (Site confguration->gmap) i have set a default map size of 700x450px with a default centre. (see screengrab1) When i am calling the simple_map function, i am stating a width and height of 300x300px. What looks like is happening, is that the smaller map is displaying the bottom right corner of the default map almost?! (see screengrab2) Is this common behaviour?

What i wanted to know a bit more about is whether i can centre the smaller map i have around the marker (there is only one for this map). I have checked out the functions API, which i have implemented most params, however there is no detail anywhere on what the last 'map' array param at the end is for. Is this where you can pass in more details for the map?

All i need is for my smaller map to be centered and i'm happy! I've posted on some other forums but i haven't had any response!

Any help greatly received
thanks
Craig

CommentFileSizeAuthor
gmap_setup2.jpg132.42 KBbarber75
gmap_setup.jpg405.52 KBbarber75

Comments

barber75’s picture

Hey everyone,

Anyone know then what the $map array paramater for this function is? I'm desperate to know so i can fix my map!

cheers
Craig

angelD’s picture

Hey guys I've used "gmap_simple_map" with all the parameters inside, to display gmap inside my theme, but now i have 1 big problem which i can't solve. I see the map on the page, but the marker isn't showing up. Eny ideas?

rooby’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I know this is old but if you still have this issue, can you post the code you are using to call gmap_simple_map() that shows what all the variables you are passing in are?

That would help diagnose the problem.

Also,
Support and feature requests are not critical. For more information see http://drupal.org/node/45111

jkingsnorth’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No additional information provided, closing. Please reopen against the latest dev with full instructions about how to recreate the problem if this is still an issue. Thanks.