Hi Andreas, <br><br>Thank you for your answer. I understand much better the way of the tree layer must be configuring.<br><br>See you soon for another question.<br><br>Regards<br><br><br>Arnaud<br><br><div class="gmail_quote">
On Mon, Aug 3, 2009 at 6:01 PM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Arnaud,<br>
<br>
no need to change the MapPanel class. The allOverlays:true property is<br>
set using applyIf, which means only if this property is not provided by<br>
the user.<br>
<br>
So you just need a slightly modified mappanel config:<br>
<div class="im">var mapPanel = new GeoExt.MapPanel({<br>
map: {<br>
</div> allOverlays: false,<br>
<div class="im"> controls: [<br>
new OpenLayers.Control.Navigation()<br>
,new OpenLayers.Control.PanPanel()<br>
,new OpenLayers.Control.ZoomPanel()<br>
]<br>
}<br>
,region : 'center'<br>
,title : 'map'<br>
,layers: [bluemarble]<br>
,extent: [-5, 35, 15, 55]<br>
});<br>
<br>
</div><div class="im">Arnaud Vandecasteele wrote:<br>
> So my question is why the GeoExt developpers have decided to force the<br>
> allOverlays properties to false instead of true?<br>
<br>
</div>Because most users will be working with OGC services, which don't make a<br>
distinction between base layers and overlays.<br>
<br>
Also note that you can still have exclusive layers, by leaving<br>
allOverlays:true and configuring the tree differently. The advantage is<br>
that you can drag/drop overlays to base layers and vice versa. The<br>
config option to look at (for the layer nodes) is checkedGroup.<br>
<br>
Regards,<br>
Andreas.<br>
<font color="#888888"><br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>--------------------------------------------------------------------<br>Van De Casteele Arnaud<br>72 Rue de la colline des camélias 97400 Saint-Denis<br>0262 30 67 79 - 0692 76 24 48<br>
SIG - WebMapping - GPS embarqué<br>Site internet : <a href="http://geotribu.net/">http://geotribu.net/</a><br>