title: Change default marker for an image in GMaps API v3
body: <p>I'm trying to adapt code (google maps window with a sidebar) I found at <a href="http://koti.mbnet.fi/ojalesa/boundsbox/makemarker_sidebar.htm" rel="nofollow">http://koti.mbnet.fi/ojalesa/boundsbox/makemarker_sidebar.htm</a> for a personal blog .</p>
  
  <p>What I want is to change the default marker for an image (always the same).
  All my attempts to recode have failed. Image is in folder images (images/monument.gif); I don't have for the moment an absolute URL.</p>
  
  <p>I have tried to follow the API documentation and searching on Google, but no luck.</p>
  
  <pre><code>var infoWindow = new google.maps.InfoWindow();
  var markerBounds = new google.maps.LatLngBounds();
  var markerArray = [];
  
  function makeMarker(options){
  var pushPin = new google.maps.Marker({map:map});
  pushPin.setOptions(options);
  google.maps.event.addListener(pushPin, "click", function(){
  infoWindow.setOptions(options);
  infoWindow.open(map, pushPin);
  if(this.sidebarButton)this.sidebarButton.button.focus();
  });
  var idleIcon = pushPin.getIcon();
  if(options.sidebarItem){
  pushPin.sidebarButton = new SidebarItem(pushPin, options);
  pushPin.sidebarButton.addIn("sidebar");
  }
  markerBounds.extend(options.position);
  markerArray.push(pushPin);
  return pushPin;
  }
  
  google.maps.event.addListener(map, "click", function(){
  infoWindow.close();
  });
  </code></pre>