Google Maps API: open url by clicking on marker
问题 I want to open a new window by clicking on a marker using Google Maps API 3. Unfortunately there are not many examples for the Google Maps API and I found out this code: google.maps.event.addListener(marker, 'click', function() { window.location.href = marker.url; }); How to use it, when I create markers with a loop? I tried it in many ways with no afford. This is my code – I made it simple and short: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user