<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:8pt"><div><p><br></p><p>Thie code is explained here...but it´s not working for me!</p><p><br></p><p>We have prepared everything now to finally add the layer to the map:</p>
<div class="highlight-javascript"><div class="highlight"><pre><span class="nx">mapPanel</span><span class="p">.</span><span class="nx">layers</span><span class="p">.</span><span class="nx">add</span><span class="p">(</span><span class="nx">clone</span><span class="p">);</span><br><span class="nx">mapPanel</span><span class="p">.</span><span class="nx">map</span><span class="p">.</span><span class="nx">zoomToExtent</span><span class="p">(</span><br> <span class="nx">OpenLayers</span><span class="p">.</span><span class="nx">Bounds</span><span class="p">.</span><span class="nx">fromArray</span><span class="p">(</span><span class="nx">clone</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">"llbbox"</span><span class="p">))</span><br><span class="p">);</span><br></pre></div>
</div>
<p>To make the layer appear on the map, all we need to do is add the cloned record
to the map panel’s layer store. Zooming to the extent of the layer is
important for the first layer added, because it is part of the required
inatialization sequence of an <tt class="docutils literal"><span class="pre">OpenLayers.Map</span></tt>. For subsequent layers, it is
convenient to see the whole layer. The capabilities document provides the
extent of the layer, and this information is stored in the record’s “llbox”
field.</p><p><br></p><p><br></p><p>llbbox?</p><p><br></p><p>Rob<br></p></div>
</div><br></body></html>