Thanks, Rossko.
That's actually what I did. Sorry I didn't provide a better link this
time. This is the web page in action: http://www.tigerweather.com/radar.php
Actually I believe one of the radar stations from which I was trying
to display images was just having a hiccup last night, because it's
working fine now!
Thank you all very much for your help!
And for helpful purposes if anyone needs this thread for fixing an
issue themselves later on, here is the code that made this work for
me:
var map;
function initialize() {
var br = new google.maps.LatLng(30.411944, -91.185556);
var myOptions = {
zoom: 7,
center: br,
mapTypeId: google.maps.MapTypeId.TERRAIN,
}
map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var lchLayer = new google.maps.KmlLayer('http://www.srh.noaa.gov/
ridge/kml/animation/N0R/LCH_N0R_loop.kml', {preserveViewport:true});
lchLayer.setMap(map);
var lixLayer = new google.maps.KmlLayer('http://www.srh.noaa.gov/
ridge/kml/animation/N0R/LIX_N0R_loop.kml', {preserveViewport:true,
suppressInfoWindows:true});
lixLayer.setMap(map);
}
On Jul 27, 3:14 am, Rossko <[email protected]> wrote:
> > Is it working for you?http://www.tigerweather.com/map.html
>
> I get a script error in
> lchLayer.setMap(preserveViewport);
> you don't have a map called preserveViewport
>
> Set the option in the initial call
> ... new google.maps.KmlLayer('http://www.blah/stuff.kml',
> { preserveViewport : true } ) ;
> and setMap to your map object
--
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.