GPS Lat : 48.842963888889 GPS Lon : 2.4084527777778
function apaiu_InitializeGoogleMaps() {
var mapProp = {
center: new google.maps.LatLng(48.842963888889,2.4084527777778),
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(48.842963888889,2.4084527777778),
});
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 = « https://maps.googleapis.com/maps/api/js?key=AIzaSyCOQyfCc9LYnmSWWXhoqvIsot8avEsDqAU&callback=apaiu_InitializeGoogleMaps »;
document.body.appendChild(script);
}
}
window.onload = apaiu_LoadGoogleMapsScript;