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(42.83,12.9487),
map: map,
icon: image,
zIndex: 1, title:"Data/Ora UTC: 2025-10-19 00:10:39, Magnitudo: ML 1.4",
draggable: false,
content: "Data/Ora UTC: 2025-10-19 00:10:39
Magnitudo: ML 1.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;
});
var image = 'https://www.ultimiterremoti.it/img/greendot2.png'
var marker = new google.maps.Marker({
position: new google.maps.LatLng(42.8888,12.9823),
map: map,
icon: image,
zIndex: 1, title:"Data/Ora UTC: 2025-10-18 23:07:37, Magnitudo: ML 0.7",
draggable: false,
content: "Data/Ora UTC: 2025-10-18 23:07:37
Magnitudo: ML 0.7
"
});
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(40.836833,14.133667),
map: map,
icon: image,
zIndex: 1, title:"Data/Ora UTC: 2025-10-18 23:05:06, Magnitudo: Md 1.3",
draggable: false,
content: "Data/Ora UTC: 2025-10-18 23:05:06
Magnitudo: Md 1.3
"
});
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);