<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}
</style>
</head><body style="">
<div>
Hi,
</div>
<div>
 
</div>
<div>
please check the OpenLayers examples [1] and [2] which show the integration of Google Maps or  OSM to your map.
</div>
<div>
 
</div>
<div>
Cheers,
</div>
<div>
Chris
</div>
<div>
 
</div>
<div>
[1] http://dev.openlayers.org/examples/google.html
</div>
<div>
[2] http://dev.openlayers.org/examples/osm.html
</div>
<div>
 
</div>
<div>
 
</div>
<div>
ELKHATTABI Imane <imanekhtb@gmail.com> hat am 15. Mai 2015 um 11:37 geschrieben:
</div>
<div>
<br />
<div dir="ltr">
Hello everyone,
<div>
 
</div>
<div>
I'd like to know how to define 'Open Street Map' as basemap in the function GeoExplorer.js
</div>
<div>
 
</div>
<div>
<div style="font-size: 12.8000001907349px;">
<div>
<span style="color: #0b5394;">createLayout:function(){</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>this.map=new OpenLayers.Map({</span>
</div>
<div>
<span><span style="color: #0b5394;"> ....</span></span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>});</span>
</div>
<div>
 
</div>
<div>
<span style="color: #0b5394;"><span> </span>layers: [</span>
</div>
<div>
 
</div>
<div>
<span style="color: #0b5394;"><span> </span>//=========base layer</span>
</div>
<div>
 
</div>
<div>
<span style="color: #0b5394;"><span> </span>new OpenLayers.Layer.WMS(</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>"Global Imagery (vmap) [Online]",</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>"<a target="_blank" href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>",</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>{</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>layers: "basic",</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>transparent: "true",</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>format: "image/png"</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>},</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>{isBaseLayer: true, visibility: false}</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>),</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>new OpenLayers.Layer.WMS("Global Imagery (OpenGeo) [Online]",</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>"<a target="_blank" href="http://maps.opengeo.org/geowebcache/service/wms">http://maps.opengeo.org/geowebcache/service/wms</a>", {</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>layers: "bluemarble"</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>},{</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>//buffer: 0,</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>isBaseLayer: true,</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>visibility: false</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>}</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>)</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>]</span>
</div>
<div>
<span style="color: #0b5394;"><span> </span>});</span>
</div>
<div>
<span style="color: #0b5394;"> </span>
</div>
<div>
<span style="color: #0b5394;"> </span>
</div>
<div>
<span style="font-size: 12.8000001907349px;">Instead of 'Global Imagery' base map, I'd like to use 'OpenStreetMap' or 'Google Maps'.</span>
<span style="color: #0b5394;"><br /></span>
</div>
<div>
<span style="font-size: 12.8000001907349px;"> </span>
</div>
<div>
<span style="font-size: 12.8000001907349px;">Any hint or help would be highly apreciated.</span>
</div>
<div>
<span style="font-size: 12.8000001907349px;">Thanks in advance</span>
</div>
</div>
</div>
<div style="max-height: 1px;">
<img src="https://mailfoogae.appspot.com/t?sender=aaW1hbmVraHRiQGdtYWlsLmNvbQ%3D%3D&type=zerocontent&guid=768ef2c0-3c9c-4441-bfa0-f731e6a89a27" border="0" />
<span style="color: #ffffff; font-size: xx-small;">ᐧ</span>
</div>
</div> _______________________________________________
<br />Users mailing list
<br />Users@geoext.org
<br />http://www.geoext.org/cgi-bin/mailman/listinfo/users
</div>
<div>
<br /> 
</div>
</body></html>