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(37.9397,14.98),
map: map,
icon: image,
zIndex: 1, title:"Data/Ora UTC: 2025-12-27 00:47:46, Magnitudo: ML 0.9",
draggable: false,
content: "Data/Ora UTC: 2025-12-27 00:47:46
Magnitudo: ML 0.9
"
});
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/reddot2.png'
var marker = new google.maps.Marker({
position: new google.maps.LatLng(-5.40703,102.396),
map: map,
icon: image,
zIndex: 999, title:"Data/Ora UTC: 2025-12-27 00:22:33, Magnitudo: Mwp 5.9",
draggable: false,
content: "Data/Ora UTC: 2025-12-27 00:22:33
Magnitudo: Mwp 5.9
"
});
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(37.5647,15.5817),
map: map,
icon: image,
zIndex: 99, title:"Data/Ora UTC: 2025-12-26 23:45:09, Magnitudo: ML 2.4",
draggable: false,
content: "Data/Ora UTC: 2025-12-26 23:45:09
Magnitudo: ML 2.4
"
});
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);