• 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.
test-4.html
0
Lennart Ericson
Asked:
Lennart Ericson
1 Solution
 
dnzone88Commented:
change your JavaScript from
window.location.href = this[i].url;

Open in new window

to
window.location.href = this.url;

Open in new window

test-4.html
0
 
Lennart EricsonAmateurAuthor Commented:
Marvellous! Thanks!
// lericson
0

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