Decenter marker of Google maps in an iFrame

Hi,

I'm trying to decenter the marker of google maps which is in an iframe. It always marks 1 and the same address, but the marker always shows in the center, i would like to move it to a defined position.

Is this possible?
If yes, how?

Thanks!
peps03Asked:
Who is Participating?
 
peps03Connect With a Mentor Author Commented:
I fixed it. Dragging the map to the correct center position before creating the embed link (iframe) does the trick.

Hopefully somebody will find this post useful.
0
 
Ray PaseurCommented:
In the static mapping class shown here you have a setCenter() method.  You can use that to set the center point, then put the marker wherever you want it (off center).
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3350-Using-the-Google-Maps-API-in-PHP.html
0
 
peps03Author Commented:
Is there no iframe method to achieve this?

all this extra code for 1 setting..
0
 
peps03Author Commented:
see answer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.