function categoryMap(){
var latlng = new google.maps.LatLng(44.0687592,9.9662592);
var myOptions = {
zoom: 8,
center: latlng,
// scrollwheel: false,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
},
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.LARGE
},
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("categorymap"), myOptions);
var infowindow = new google.maps.InfoWindow();
var markers = [];
var content1 = '
'+
'
![](http://foto.spezia.com/lavilletta2.jpg?height=140&width=105&mode=crop)
'+
'
La Villetta
'+
'
Hotel
'+
'
'+
'Via Sobborgo Emiliano, 24, Sarzana (La Spezia)'+
'
Apri Scheda'+
'
';
var marker1 = new google.maps.Marker({
position: new google.maps.LatLng(44.111500475222,9.960823059082031),
map: map,
icon:'../images/marker.png',
title: 'La Villetta'
});
markers.push(marker1);
google.maps.event.addListener(marker1, 'click', function() {
infowindow.setContent(content1);
infowindow.open(map,marker1);
});
var mcOptions = {
maxZoom: 15,
styles: [{
url: '../images/cluster1.png',
height: 22,
width: 22,
textColor: '#ffffff',
textSize: 11
},{
url: '../images/cluster2.png',
height: 26,
width: 26,
textColor: '#ffffff',
textSize: 13
},{
url: '../images/cluster3.png',
height: 30,
width: 30,
textColor: '#ffffff',
textSize: 15
}]
};
var mc = new MarkerClusterer(map, markers,mcOptions);
};
window.onload = categoryMap;