• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

How to create a marker as a link to url in Google map,

Being the definition of newbie in Google maps, and javascript also, I'm trying to get a marker as a link to a url, a script was found at stackoverflow.com (http://stackoverflow.com/questions/5107410/google-maps-marker-as-a-link). It works ok except it doesn't create links.
Please, Gurus and Experts, could you take a look at the script and see what I have done wrong.
Lennart Ericson
Lennart Ericson
1 Solution
change your JavaScript from
window.location.href = this[i].url;

Open in new window

window.location.href = this.url;

Open in new window

Lennart EricsonAmateurAuthor Commented:
Marvellous! Thanks!
// lericson

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now