title: Google Maps Marker URL?
body: <p>I'm having some trouble with giving a Google Maps Marker a URL with the following code. </p>
  
  <p>Let's say I'd just want to add a HREF (to Google.com or something) to the "wpl_map_marker_image" so by clicking the marker image it would go there, how would I add that in the code below? </p>
  
  <pre><code>                    &lt;script type="text/javascript"&gt;
                          function wplookInitMap() {
                              // Define the centre of the map and the position of the marker
                              var mapCenter = {
                                  lat: &lt;?php echo $wpl_map_latitude; ?&gt;,
                                  lng: &lt;?php echo $wpl_map_longitude; ?&gt;
                              };
  
                              // Define map options
                              var mapOptions = {
                                  zoom: &lt;?php echo $wpl_map_zoom; ?&gt;,
                                  center: mapCenter,
                                  draggable: false,
                                  disableDefaultUI: true,
                                  scrollwheel: false,
                                  &lt;?php echo ( !empty( $wpl_map_snazzy_style ) ? 'styles: ' . $wpl_map_snazzy_style : '' ); ?&gt;
                              };
  
                              // Generate the map
                              var map = new google.maps.Map( document.getElementById('contactMap'), mapOptions );
  
                              // Add a marker
                              var beachMarker = new google.maps.Marker( {
                                  position: mapCenter,
                                  map: map,
                                  &lt;?php echo ( !empty( $wpl_map_marker_image ) ? 'icon: \'' . $wpl_map_marker_image . '\'' : '' ); ?&gt;
                              } );
  
                              // Center the map when the user resizes the window
                              google.maps.event.addDomListener( window, 'resize', function() {
                                  map.setCenter( mapCenter );
                              } );
                          }
  
                          // Generate the map on page load
                          if (!window.addEventListener) { 
                              window.attachEvent('load', wplookInitMap);
                          } else {
                              window.addEventListener('load', wplookInitMap, false);
                          }
                      &lt;/script&gt;
  </code></pre>