Im trying to overlay a GIF animation on Google maps. Heres my code,
the map loads fine, i just cant get the overlay to display.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-
microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/
>
<title>Google Maps </title>
<script src="http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAA2p5HnGU4jrIrvtUSLvUkHBQY4277RGIwbh4PKMo78VjFeCqdvBStLUz9hRH731C_lX0DRu7Lc_ulGA"
type="text/javascript"></script>
<script type="text/javascript">
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(46.890, 8.404), 7);
// ground overlay
var boundaries = new GLatLngBounds(new GLatLng(48.9, 3.7), new
GLatLng(44.0, 10.7));
var oldmap = new GGroundOverlay("http://www.meteo-radar.ch/
test_metradar/2009_exp/pc/mchn_loop.gif", (boundaries));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.addOverlay(oldmap);
}
}
</script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 640px; height: 534px"></div>
</body>
</html>
. . .any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---