Hi,
 
please check the OpenLayers examples [1] and [2] which show the integration of
Google Maps or  OSM to your map.
 
Cheers,
Chris
 
[1] http://dev.openlayers.org/examples/google.html
[2] http://dev.openlayers.org/examples/osm.html
 
 
ELKHATTABI Imane <imanek...@gmail.com> hat am 15. Mai 2015 um 11:37 geschrieben:

Hello everyone,
 
I'd like to know how to define 'Open Street Map' as basemap in the function
GeoExplorer.js
 
createLayout:function(){
this.map=new OpenLayers.Map({
....
});
 
layers: [
 
//=========base layer
 
new OpenLayers.Layer.WMS(
"Global Imagery (vmap) [Online]",
"http://labs.metacarta.com/wms/vmap0";,
{
layers: "basic",
transparent: "true",
format: "image/png"
},
{isBaseLayer: true, visibility: false}
),
new OpenLayers.Layer.WMS("Global Imagery (OpenGeo) [Online]",
"http://maps.opengeo.org/geowebcache/service/wms";, {
layers: "bluemarble"
},{
//buffer: 0,
isBaseLayer: true,
visibility: false
}
)
]
});
 
 
Instead of 'Global Imagery' base map, I'd like to use 'OpenStreetMap' or 'Google
Maps'.
 
Any hint or help would be highly apreciated.
Thanks in advance
ᐧ
_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to