Web developer, Norwich - Clive Portman

Use custom marker image on Google Map

Published under Google Maps

Published on Tuesday 5th June 2012

Note the use of icon within the marker object.

<script>	
    var image = new google.maps.MarkerImage(
        'images/map-marker.png'
    );
    var marker = new google.maps.Marker({
        position: new google.maps.LatLng(52.696660, 1.089510),
        icon: image,
        map: map,
        title: "Beaujolais and Beyond"
    });
</script>