<!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>
   &#160;
  </div> 
  <div>
   please check the OpenLayers examples [1] and [2] which show the integration of Google Maps or &#160;OSM to your map.
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Cheers,
  </div> 
  <div>
   Chris
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   [1]&#160;http://dev.openlayers.org/examples/google.html
  </div> 
  <div>
   [2]&#160;http://dev.openlayers.org/examples/osm.html
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   ELKHATTABI Imane &#60;imanekhtb@gmail.com&#62; hat am 15. Mai 2015 um 11:37 geschrieben:
  </div> 
  <div>
   <br /> 
   <div dir="ltr">
    Hello everyone, 
    <div>
     &#160;
    </div> 
    <div>
     I&#39;d like to know how to define &#39;Open Street Map&#39; as basemap in the function GeoExplorer.js
    </div> 
    <div>
     &#160;
    </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>
       &#160;
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>layers: [</span>
      </div> 
      <div>
       &#160;
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>//=========base layer</span>
      </div> 
      <div>
       &#160;
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>new OpenLayers.Layer.WMS(</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>&#34;Global Imagery (vmap) [Online]&#34;,</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>&#34;<a target="_blank" href="http://labs.metacarta.com/wms/vmap0">http://labs.metacarta.com/wms/vmap0</a>&#34;,</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>{</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>layers: &#34;basic&#34;,</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>transparent: &#34;true&#34;,</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>format: &#34;image/png&#34;</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(&#34;Global Imagery (OpenGeo) [Online]&#34;,</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>&#34;<a target="_blank" href="http://maps.opengeo.org/geowebcache/service/wms">http://maps.opengeo.org/geowebcache/service/wms</a>&#34;, {</span>
      </div> 
      <div>
       <span style="color: #0b5394;"><span> </span>layers: &#34;bluemarble&#34;</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;">&#160;</span>
      </div> 
      <div>
       <span style="color: #0b5394;">&#160;</span>
      </div> 
      <div>
       <span style="font-size: 12.8000001907349px;">Instead of &#39;Global Imagery&#39; base map, I&#39;d like to use &#39;OpenStreetMap&#39; or &#39;Google Maps&#39;.</span>
       <span style="color: #0b5394;"><br /></span>
      </div> 
      <div>
       <span style="font-size: 12.8000001907349px;">&#160;</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 />&#160;
  </div>
 
</body></html>