add all three variations of google layer to example

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1213 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-15 12:46:20 +00:00
parent 512465037b
commit dccfe5c4aa

View File

@@ -22,8 +22,13 @@
function init(){
map = new OpenLayers.Map( $('map') );
gmap = new OpenLayers.Layer.Google( "Google" , {type: G_HYBRID_MAP });
map.addLayer(gmap);
var normal = new OpenLayers.Layer.Google( "Google" );
var satellite = new OpenLayers.Layer.Google( "Google Satellite" , {type: G_SATELLITE_MAP });
var hybrid = new OpenLayers.Layer.Google( "Google Hybrid" , {type: G_HYBRID_MAP });
map.addLayers([normal, satellite, hybrid]);
markers = new OpenLayers.Layer.Markers("markers");
map.addLayer(markers);