Hey all i am having the devil of a time replacing an image in a groundoverlay.
i can get the table to clear, but cannot create a new one. thanks for any tips, url is http://69.55.17.185/pivrain3 here is where it breaks down. // START WEATHER TABLE // coordinates are in (southwest, northeast markers) var imageBounds = new google.maps.LatLngBounds(new google.maps.LatLng(35.712727652239614, -102.01217590332033), new google.maps.LatLng(35.814132488701276, -101.72103820800783)); var weatherImage = '/images/rain_markers/weather_table.jpg? rand=' + Math.floor(Math.random() * 99999); var weather_table1 = new google.maps.GroundOverlay(weatherImage, imageBounds); weather_table1.setMap(map); // now set the executioner that will update the weather table ever x seconds // the way we do this is to actually remove it from the map, then delete it, then re-create it. var pe = new PeriodicalExecuter(refreshGroundOverlay.curry(weather_table1), 10); function refreshGroundOverlay(overlay){ overlay.setMap(); // removes from map delete(overlay); // deletes it var imageBounds = new google.maps.LatLngBounds(new google.maps.LatLng(35.712727652239614, -102.01217590332033), new google.maps.LatLng(35.814132488701276, -101.72103820800783)); var weatherImage = '/images/rain_markers/weather_table.jpg? rand=' + Math.floor(Math.random() * 99999); var weather_table1 = new google.maps.GroundOverlay(weatherImage, imageBounds); weather_table1.setMap(map); }; // END WEATHER TABLE thanks for any tips. sk -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
