1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| function initialisation() {
var cabinetPoint = new google.maps.LatLng(48.819962, 2.467074);
var optionsCarte = {
zoom: 15,
center: new google.maps.LatLng(0,0),
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var maCarte = new google.maps.Map(document.getElementById("googleMap"), optionsCarte);
var optionsMarqueur = {
position: cabinetPoint,
map: maCarte,
title: "Carte centree sur ce marqueur"
}
var marqueur = new google.maps.Marker(optionsMarqueur);
maCarte.setCenter(marqueur.getPosition());
}
google.maps.event.addDomListener(window, 'load', initialisation); |