var gicon = new GIcon(); gicon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png"; gicon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; gicon.iconSize = new GSize(12, 20); gicon.shadowSize = new GSize(22, 20); gicon.iconAnchor = new GPoint(6, 20); gicon.infoWindowAnchor = new GPoint(5, 1); var hicon = new GIcon(); hicon.image = "http://monasterystays.com/images/historic_yellow.png"; hicon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; hicon.iconSize = new GSize(12, 20); hicon.shadowSize = new GSize(22, 20); hicon.iconAnchor = new GPoint(6, 20); hicon.infoWindowAnchor = new GPoint(5, 1); var picon = new GIcon(); picon.image = "http://labs.google.com/ridefinder/images/mm_20_purple.png"; picon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; picon.iconSize = new GSize(12, 20); picon.shadowSize = new GSize(22, 20); picon.iconAnchor = new GPoint(6, 20); picon.infoWindowAnchor = new GPoint(5, 1); var star = new GIcon(); star.image = "images/star.png"; star.shadow = ""; star.iconSize = new GSize(25, 25); star.shadowSize = new GSize(0, 0); star.iconAnchor = new GPoint(0, 0); star.infoWindowAnchor = new GPoint(12, 12); var house_blue = new GIcon(); house_blue.image = "images/house_blue.png"; house_blue.shadow = ""; house_blue.iconSize = new GSize(30, 30); house_blue.shadowSize = new GSize(0, 0); house_blue.iconAnchor = new GPoint(0, 0); house_blue.infoWindowAnchor = new GPoint(12, 12); function createMarker(point, icon, overview, rates, facilities) { var marker = new GMarker(point, icon); GEvent.addListener(marker, 'click', function() { marker.openInfoWindowTabs([new GInfoWindowTab('Overview',overview),new GInfoWindowTab('Rates',rates),new GInfoWindowTab('Facilities',facilities)],{maxWidth:300}); }); //,new GInfoWindowTab('Facilities',facilities) return marker; }