[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Decenter marker of Google maps in an iFrame

Posted on 2012-08-13
Medium Priority
Last Modified: 2012-08-18

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?

Question by:peps03
  • 3
LVL 111

Expert Comment

by:Ray Paseur
ID: 38287463
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).

Author Comment

ID: 38287519
Is there no iframe method to achieve this?

all this extra code for 1 setting..

Accepted Solution

peps03 earned 0 total points
ID: 38287557
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.

Author Closing Comment

ID: 38307473
see answer

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses
Course of the Month20 days, 1 hour left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question