var ricon = new GIcon(); ricon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; ricon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; ricon.iconSize = new GSize(12, 20); ricon.shadowSize = new GSize(22, 20); ricon.iconAnchor = new GPoint(6, 20); ricon.infoWindowAnchor = new GPoint(5, 1); 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 bicon = new GIcon(); bicon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png"; bicon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; bicon.iconSize = new GSize(12, 20); bicon.shadowSize = new GSize(22, 20); bicon.iconAnchor = new GPoint(6, 20); bicon.infoWindowAnchor = new GPoint(5, 1); function load() { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(0, 0), 1); plot_points(map); } } // Creates a marker at the given point with the given number label function createMarker(map, point, title, text, col) { var marker; if(col == 'b') { marker = new GMarker(point, bicon); } else if (col == 'g') { marker = new GMarker(point, gicon); } else { marker = new GMarker(point, ricon); } GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml("
" + title + "
" + text+"
"); }); map.addOverlay(marker); } function plot_points(map) { createMarker(map, new GLatLng(25.186302,55.247498), "1. Abbco Rotana Tower", "The tallest hotel in the world is the Abbco Rotana Tower in Dubai",'r'); createMarker(map, new GLatLng(39.031986,125.755005), "2. Ryugyong Hotel", "Coming in at 1,083 ft tall",'r'); createMarker(map, new GLatLng(25.133474,55.189133), "3. Burj Al Arab", "An iconic hotel that helped place Dubai at the forefront of modern architecture",'r'); createMarker(map, new GLatLng(25.230411,55.283203), "4. Jumeirah Emirates Towers Hotel", "Another score for Dubai in the top 10 tallest hotels in the world",'r'); createMarker(map, new GLatLng(13.754142,100.540953), "5. Baiyoke Sky Hotel", "The Baiyoke Sky Hotel stretches 997 ft into the Bangkok skyline.",'r'); createMarker(map, new GLatLng(22.28592,114.163055), "6. Cullinan North Tower", "Construction of the 886 ft tall Cullinan North Tower has not yet been completed, but the 68 storey building has been topped out making it eligible for inclusion in our list of tallest hotels.",'r'); createMarker(map, new GLatLng(31.215444,121.499519), "7. Oasis Skyway Garden Hotel", "You'd expect this upstart centre of world trade to feature somewhere in the top tallest hotels.",'r'); createMarker(map, new GLatLng(35.148543,136.910865), "8. Nagoya Marriott Associa Hotel", "With 53 floors, this hotel comes in at 7th on our list of tallest hotels with a height of 741 ft.",'r'); createMarker(map, new GLatLng(1.294045,103.852816), "9. Swissotel The Stamford", "Part of the well known Raffles City complex",'r'); createMarker(map, new GLatLng(42.328601,-83.041534), "10. Detroit Marriott at the Renaissance Center", "When the hotel opened in 1977 it was the tallest hotel in the world.",'r'); }