Hey all.

I need to be able to change the graphic that is displayed for a
GroundOverlay.
I need this to happen about every 5 minutes.

i wrote this. I could not find a method to update the image file, but
i found where i could remove it from the map with setMap() and then
just re-create it, but i am getting an error.


// place weather table   coordinates are in (southwest, northeast
markers)
    var imageBounds     = new google.maps.LatLngBounds(new
google.maps.LatLng(35.883703754459624, -102.7963250732422), new
google.maps.LatLng(35.965441432889286, -102.58552490234376 ));
    var weather_image   = <%=  "'/images/rain_markers/
weather_table.jpg?rand=#{rand(300)}' " %>  ;
    var weather_table1  = new google.maps.GroundOverlay(weather_image,
imageBounds);
    weather_table1.setMap(map);

    new PeriodicalExecuter(function(weather_table1)
{ weather_table1.setMap();}, 10);
    // end place weather table

the error is "klass has no method setMap()

thanks for any tips here.

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to