Add support for Google Layer to MVS.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1222 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
-->
|
||||
<head>
|
||||
|
||||
<!-- this gmaps key generated for http://openlayers.org/dev/ -->
|
||||
<script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA9XNhd8q0UdwNC7YSO4YZghSPUCi5aRYVveCcVYxzezM4iaj_gxQ9t-UajFL70jfcpquH5l1IJ-Zyyw'></script>
|
||||
<!-- Localhost key -->
|
||||
<!--<script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTS6gjckBmeABOGXIUiOiZObZESPg'></script>-->
|
||||
<script src="http://openlayers.org/dev/lib/OpenLayers.js"></script>
|
||||
|
||||
<script>
|
||||
@@ -95,6 +99,11 @@ function runMVS() {
|
||||
layers:"modis,global_mosaic"}
|
||||
));
|
||||
break;
|
||||
case 'gmaps':
|
||||
theMVS.addLayer(
|
||||
new OpenLayers.Layer.Google( "Google" , {type: G_HYBRID_MAP })
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
theMVS.setCenter(new OpenLayers.LonLat(safeArgs.centerLon, safeArgs.centerLat), safeArgs.zoom);
|
||||
|
||||
Reference in New Issue
Block a user