I can only find code that uses loops (as in the google tutorials) to create multiple original markers on a map. Can somebody please post the code I would use to add two different coloured small google pins to a map in slightly different locations. I know you need:
var icon = new GIcon(); icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; icon.iconSize = new GSize(12, 20); icon.shadowSize = new GSize(22, 20); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1);
and you need to create and center the map using the usual code but what is the code to create and place the two different coloured small pegs with info windows on click.
for some reason I can't seem to find really simple examples of slightly more complicated options for google maps api.