Per Scale 2 intendi ScaleControlStyle?
Ho provato a impostare manualmente i controlli che adesso posso spostare dove meglio credo... ma il parametro Scale 2 dove devo impostarlo?
Codice PHP:
<script type="text/javascript">
var script = '<script type="text/javascript" src="markerclusterer';
if (document.location.search.indexOf('compiled') !== -1) {
script += '_compiled';
}
script += '.js"><' + '/script>';
document.write(script);
</script>
<script type="text/javascript">
function initialize() {
var center = new google.maps.LatLng(42.26, 11.34);
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 6,
center: center,
mapTypeControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
position: google.maps.ControlPosition.TOP_RIGHT
},
panControl: true,
panControlOptions: {
position: google.maps.ControlPosition.LEFT_TOP
},
zoomControl: true,
zoomControlOptions: {
style: google.maps.ZoomControlStyle.LARGE,
position: google.maps.ControlPosition.LEFT_TOP
},
scaleControl: true,
scaleControlOptions: {
position: google.maps.ControlPosition.BOTTOM_LEFT
},
streetViewControl: true,
streetViewControlOptions: {
position: google.maps.ControlPosition.LEFT_TOP
},
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var markers = [];
for (var i = 0; i < data.Store.length ; i++) {
var dataStore = data.Store[i];
var latLng = new google.maps.LatLng(
dataStore.lat,
dataStore.lng);
var marker = new google.maps.Marker({
position: latLng
});
markers.push(marker);
}
var markerCluster = new MarkerClusterer(map, markers);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
Questo esempio viene invece visualizzato correttamente anche su cellulare
http://code.google.com/intl/it-IT/ap...ple-async.html e non mi sembra sia impostato niente di manuale