Google Maps: custom icon and; Label for each marker


I am New to Google Maps!

I have found a code to show Google maps with multiple markers using JQuery & xml.

see live Example

I have marker.js like this

$(document).ready(function() {
        height: 500,
        width: 800
    var myLatLng = new google.maps.LatLng(17.74033553, 83.25067267);
  MYMAP.init('#map', myLatLng, 11);


var MYMAP = {
  map: null,
    bounds: null

MYMAP.init = function(selector, latLng, zoom) {
  var myOptions = {
    center: latLng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  } = new google.maps.Map($(selector)[0], myOptions);
    this.bounds = new google.maps.LatLngBounds();

MYMAP.placeMarkers = function(filename) {
    $.get(filename, function(xml){
            var name = $(this).find('name').text();
            var address = $(this).find('address').text();                                 

                        var icon = $(this).find('icon').text();

            // create a new LatLng point for the marker

            var lat = $(this).find('lat').text();
            var lng = $(this).find('lng').text();
            var point = new google.maps.LatLng(parseFloat(lat),parseFloat(lng));

            // extend the bounds to include the new point

            var marker = new google.maps.Marker({
                position: point,

            var infoWindow = new google.maps.InfoWindow();
            var html='<strong>'+name+'</strong.><br />'+address;
            google.maps.event.addListener(marker, 'click', function() {
      , marker);

& xml code I am using.

<address>near Viswa Teja School, Thatichetlapalem, Visakhapatnam</address>

What I want is custom marker icon & Lable for Every marker.

Is it possible to work within above codes ?

OR how can I achieve this ?


You can do this with something like the following:

    new google.maps.Marker({
        position: new google.maps.LatLng(latitude, longitude),
        icon: new google.maps.MarkerImage("<REPLACE_WITH_MARKER_IMAGE_URL>")});

Also, here is the relevant documentation.