var map;
function initialize() {
var mapOptions = {
zoom: 5,
center: new google.maps.LatLng(41.530,12.280),
mapTypeId: google.maps.MapTypeId.HYBRID
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
var image = 'https://www.ultimiterremoti.it/img/greendot2.png'
var marker = new google.maps.Marker({
position: new google.maps.LatLng(45.8942,10.6037),
map: map,
icon: image,
zIndex: 1, title:"Data/Ora UTC: 2025-12-31 00:58:20, Magnitudo: ML 1.0",
draggable: false,
content: "Data/Ora UTC: 2025-12-31 00:58:20
Magnitudo: ML 1.0
"
});
infos = [];
function closeInfos(){
if(infos.length > 0){
infos[0].set("marker",null);
infos[0].close();
infos.length = 0;
}
}
google.maps.event.addListener(marker, 'click', function() {
closeInfos();
var info = new google.maps.InfoWindow({content: this.content});
info.open(map,this);
infos[0]=info;
});
var image = 'https://www.ultimiterremoti.it/img/greendot2.png'
var marker = new google.maps.Marker({
position: new google.maps.LatLng(42.8375,12.9383),
map: map,
icon: image,
zIndex: 1, title:"Data/Ora UTC: 2025-12-30 23:09:35, Magnitudo: ML 1.0",
draggable: false,
content: "Data/Ora UTC: 2025-12-30 23:09:35
Magnitudo: ML 1.0
"
});
infos = [];
function closeInfos(){
if(infos.length > 0){
infos[0].set("marker",null);
infos[0].close();
infos.length = 0;
}
}
google.maps.event.addListener(marker, 'click', function() {
closeInfos();
var info = new google.maps.InfoWindow({content: this.content});
info.open(map,this);
infos[0]=info;
});
var image = 'https://www.ultimiterremoti.it/img/yellowdot2.png'
var marker = new google.maps.Marker({
position: new google.maps.LatLng(43.5207,12.9328),
map: map,
icon: image,
zIndex: 99, title:"Data/Ora UTC: 2025-12-30 23:01:31, Magnitudo: ML 2.0",
draggable: false,
content: "Data/Ora UTC: 2025-12-30 23:01:31
Magnitudo: ML 2.0
"
});
infos = [];
function closeInfos(){
if(infos.length > 0){
infos[0].set("marker",null);
infos[0].close();
infos.length = 0;
}
}
google.maps.event.addListener(marker, 'click', function() {
closeInfos();
var info = new google.maps.InfoWindow({content: this.content});
info.open(map,this);
infos[0]=info;
});
}
google.maps.event.addDomListener(window, 'load', initialize);