GPS Lat : 47.500022222222 GPS Lon : 1.1733583333333
function apaiu_InitializeGoogleMaps() {
var mapProp = {
center: new google.maps.LatLng(47.500022222222,1.1733583333333),
zoom: 12,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById(« apaiu_googleMapDiv »),mapProp);
var marker = new google.maps.Marker({
position: new google.maps.LatLng(47.500022222222,1.1733583333333),
});
marker.setMap(map);
}
function apaiu_LoadGoogleMapsScript() {
var alreadyRegistered = false;
if (typeof google === « object »){
if (typeof google.maps === « object »){
alreadyRegistered = true;
}
}
if (alreadyRegistered){
apaiu_InitializeGoogleMaps();
} else {
var script = document.createElement(« script »);
script.src = « http://maps.googleapis.com/maps/api/js?key=AIzaSyCOQyfCc9LYnmSWWXhoqvIsot8avEsDqAU&callback=apaiu_InitializeGoogleMaps »;
document.body.appendChild(script);
}
}
window.onload = apaiu_LoadGoogleMapsScript;