// Initialisation de la carte	  
var map = new GMap(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
// map.centerAndZoom(new GPoint(15.41666249248301,34.24272352732361), 15);
map.centerAndZoom(new GPoint(2.785,48.871),3);
map.setMapType(G_HYBRID_TYPE);

// Initialisation des icones	
var base = new GIcon();
base.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
base.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
base.iconSize = new GSize(12, 20);
base.shadowSize = new GSize(22, 20);
base.iconAnchor = new GPoint(6, 20);
base.infoWindowAnchor = new GPoint(5, 1);

// Initialisation des couleurs des icones	
var blue = new GIcon(base);
blue.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
var red = new GIcon(base);
red.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
var green = new GIcon(base);
green.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
var yellow = new GIcon(base);
yellow.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";
var purple = new GIcon(base);
purple.image = "http://labs.google.com/ridefinder/images/mm_20_purple.png";
var black = new GIcon(base);
black.image = "http://labs.google.com/ridefinder/images/mm_20_black.png";
var white= new GIcon(base);
white.image = "http://labs.google.com/ridefinder/images/mm_20_white.png";  
var orange = new GIcon(base);
orange.image = "http://labs.google.com/ridefinder/images/mm_20_orange.png";    
   
// Fonction pour inserer les lieux
function creer(lat,lon,nom,desc,couleur,type,zoom){
 var point = new GPoint(lon,lat)
 var marker = new GMarker(point,couleur);
 var html = "<font face=Arial size=2><b>" + nom + "</b><br>" + desc + "</font>";
 GEvent.addListener(marker, "click", function() { map.centerAndZoom(point, zoom); marker.openInfoWindowHtml(html); } );
 return marker;
}											 

// Initialisation des lieux	
var point0 = creer(48.8697,2.7821,"Disneyland Resort Paris","Disneyland Parc<br>Walt Disney Studios<br>Disney Village",yellow,"G_SATELLITE_TYPE",2);
map.addOverlay(point0);