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:
@@ -22,8 +22,13 @@
|
|||||||
|
|
||||||
function init(){
|
function init(){
|
||||||
map = new OpenLayers.Map( $('map') );
|
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");
|
markers = new OpenLayers.Layer.Markers("markers");
|
||||||
map.addLayer(markers);
|
map.addLayer(markers);
|
||||||
|
|||||||
Reference in New Issue
Block a user