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(38.91,1.44), "1. Ibiza, Balearic Islands, Spain", "The global party capital!",'r');
createMarker(map, new GLatLng(9.72,100.00), "2. Haad Rin, Ko Phangan, Thailand", "The full moon party is a party you will never forget.",'r');
createMarker(map, new GLatLng(-22.90,-43.21), "3. Copacabana, Rio de Janeiro Brazil", "The venue for some of the largest parties ever.",'r');
createMarker(map, new GLatLng(29.21,-81.02), "4. Daytona Beach, Florida USA", "Renowned for it's clubs, bars and beach parties.",'r');
createMarker(map, new GLatLng(37.46,25.34), "5. Mykonos, Aegean Islands Greece", "A buzzing party destination.",'r');
createMarker(map, new GLatLng(34.99,34.02), "6. Ayia Napa Cyprus", "An irresistible mix of superclubs and beach parties.",'r');
createMarker(map, new GLatLng(7.88,98.39), "7. Patong Beach, Phuket Thailand", "Phuket is renowned for it's incredible party scene.",'r');
createMarker(map, new GLatLng(9.53,99.94), "8. Chaweng Beach, Koh Samui Thailand", "Pool-side cocktail bars, traditional Thai food and all night dance parties.",'r');
createMarker(map, new GLatLng(25.81,-80.13), "9. South Beach, Miami USA", "One of the craziest party scenes on earth.",'r');
createMarker(map, new GLatLng(20.65,-105.22), "10. Puerto Vallarta Mexico", "Students from all over America who come here looking for a fun.",'r');
createMarker(map, new GLatLng(50.83,-.13), "10. Brighton, Sussex England", "The venue for some massive beach parties.",'r');
createMarker(map, new GLatLng(50.41,-5.07), "10. Newquay, Cornwall England", "Epicenter of the UK surf scene with an annual beach and surf party.",'r');
createMarker(map, new GLatLng(30.16,-85.66), "10. Panama City, Florida USA", "One of the hottest destinations for spring breakers.",'r');
createMarker(map, new GLatLng(26.12,-97.17), "10. South Padre Island, Texas USA", "Offers spring breakers and party goers a massive range of action",'r');
createMarker(map, new GLatLng(26.65,-78.31), "10. Grand Bahama Island, Bahamas Caribbean", "Plays host to tourists from around the globe looking for relaxation and fun.",'r');
createMarker(map, new GLatLng(21.17,-86.84), "10. Cancun Mexico", "Cancun is the Caribbean's party capital",'r');
createMarker(map, new GLatLng(-7.15,110.27), "10. Nusa Lembongan, Bali Indonesia", "A trippy, relaxed beach scene.",'r');
createMarker(map, new GLatLng(-28.65,153.61), "10. Byron Bay, NSW Australia", "Enjoy the beaches, the diving and the parties",'r');
createMarker(map, new GLatLng(-8.72,115.17), "10. Kuta Beach, Bali Indonesia", "Party the night away in the bars lining the beach.",'r');
createMarker(map, new GLatLng(25.08,-77.30), "10. Paradise Island Bahamas", "Featuring the world famous Atlantis resort.",'r');
}