When we use the default markers and sometimes we need to resize the markers in google maps

and here is the code to resize icon image


var pinIcon = new google.maps.MarkerImage(
    "http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|FFFF00",
    null, /* size is determined at runtime */
    null, /* origin is 0,0 */
    null, /* anchor is bottom center of the scaled image */
    new google.maps.Size(42, 68)
);  

the icon for example

Resize the markers in google maps

So this will help you to know how to Resize the markers in google maps

Leave a Reply

Your email address will not be published. Required fields are marked *