File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -628,6 +628,7 @@ $(window).ready(function() {
628628 // list of overlays
629629 var overlayList = [
630630 [ 'Global' , [
631+ [ 'google-radar' , 'Google Earth Radar' ] ,
631632 [ 'nrl-global-cloudtop' , 'NRL Monterey Cloudtop' ] ,
632633 [ 'nrl-global-ir' , 'NRL Monterey IR' ] ,
633634 [ 'nrl-global-vapor' , 'NRL Monterey Vapor' ]
@@ -705,10 +706,14 @@ $(window).ready(function() {
705706 }
706707
707708 weatherImageOverlay . setMap ( null ) ;
709+ weatherGoogleRadar . setMap ( null ) ;
708710 map . overlayMapTypes . setAt ( "0" , null ) ;
709711
710712 if ( on ) {
711- if ( id in weatherImageOverlayList ) {
713+ if ( id == "google-radar" ) {
714+ weatherGoogleRadar . setMap ( map ) ;
715+ return ;
716+ } else if ( id in weatherImageOverlayList ) {
712717 var o = weatherImageOverlayList [ id ] ;
713718 var sw = new google . maps . LatLng ( o [ 1 ] [ 0 ] [ 0 ] , o [ 1 ] [ 0 ] [ 1 ] ) ;
714719 var ne = new google . maps . LatLng ( o [ 1 ] [ 1 ] [ 0 ] , o [ 1 ] [ 1 ] [ 1 ] ) ;
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ var weatherImageOverlayList = {
6666} ;
6767
6868var weatherImageOverlay = new google . maps . GroundOverlay ( ) ;
69+ var weatherGoogleRadar = new google . maps . KmlLayer ( 'http://mw1.google.com/mw-weather/radar/root.kmz' ) ;
6970
7071var offline = {
7172 get : function ( key ) {
You can’t perform that action at this time.
0 commit comments