vorrei aggiungere il livello meteo e nuvole in google map:
ho aggiunto le righe dopo il commento //meteo ma non mi funziona. non sono esperto di javascript così chiedo a voi... qualcuno può aiutarmi?codice:function initialize(){ //init map var map = new google.maps.Map2(document.getElementById("map1")); var geocoder = new GClientGeocoder(); //geocoder //customize map view map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setMapType(G_HYBRID_MAP); //meteo var weatherLayer = new google.maps.weather.WeatherLayer({ temperatureUnits: google.maps.weather.TemperatureUnit.FAHRENHEIT }); weatherLayer.setMap(map); var cloudLayer = new google.maps.weather.CloudLayer(); cloudLayer.setMap(map); map.disableScrollWheelZoom(); //disabilita lo scrolling wheel del mouse //open a desired address showAddress(addressToShow,markerHTML); /*** * Creates a Marker on the Map ***/ function createMarker(latlng, message) { var marker = new GMarker(latlng); if(message){ GEvent.addListener(marker,"click", function() { map.openInfoWindowHtml(latlng, message); }); } return marker; }

Rispondi quotando
