user1165815
user1165815

Reputation: 305

Google maps generate link

I have google maps embedded in my website. Its has markers and when clicked, it displays the property information at the position. (infobox). Now the user wants the following functionality:


I search for a place , the map displays the place with properties. After I drag the map and get some other property, I would like to share this one to some body. can I get a link to share the dragged position?


I know we can get the link in maps.google.com . It changes whenever we drag. But how to do it in our website? Is there a way in google maps api to get that link?

Upvotes: 0

Views: 285

Answers (1)

barryhunter
barryhunter

Reputation: 21091

Listen to events on the Map

The idle event is particully useful, but can use say bounds_changed to get events while dragging (or even the drag event itself!).

In that event update whatever link you are talking about.

Upvotes: 2

Related Questions