Decenter marker of Google maps in an iFrame


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?

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.
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).
peps03Author Commented:
Is there no iframe method to achieve this?

all this extra code for 1 setting..
peps03Author Commented:
see answer
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.