[Users] BaseMap Definition in GeoExplorer

Christian Mayer chris at meggsimum.de
Fri May 15 20:49:06 CEST 2015


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 <imanekhtb at 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 at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20150515/ef9cec9c/attachment.htm 


More information about the Users mailing list