Hello to all!<br>Im my extension i&#39;m trying to add a layer to a view.<br>I have a method to create a wcs layer[1], this create the layer with the parameters passed by me. After the layer creation, i try to add the layer to a view, i do something like this:<br>

<br>IWindow iwin = PluginServices.getMDIManager().getActiveWindow();<br>MapContext mapcontext = mapControl.getMapContext();<br>Map mapControl = ((View) iwin).getMapControl();<br><br>FLyrWCS l = createWCSLayer(param);<br>
if (l != null) {<br>
                l.setVisible(true);<br>                mapcontext.beginAtomicEvent();<br>                AddLayer.checkProjection(l, mapControl.getViewPort());<br>                try {<br>                    mapcontext.getLayers().addLayer(l);<br>

                } catch (CancelationException e) {<br>                    e.printStackTrace();<br>                }<br>                mapcontext.endAtomicEvent();<br>            }<br><br>[1]<br>public FLyrWCS createWCSLayer(Map&lt;String,Object&gt; parametros){<br>

        <br>        FLyrWCS layer = new FLyrWCS();<br>        <br>        layer.setHost((String) parametros.get(&quot;Host&quot;));<br>        layer.setCoverageName((String) parametros.get(&quot;CurrentCoverageName&quot;));<br>

        layer.setSRS((String) parametros.get(&quot;SRS&quot;));<br>        layer.setFormat((String) parametros.get(&quot;Format&quot;));<br>        layer.setDriver((FMapWCSDriver) parametros.get(&quot;Driver&quot;));<br>
        layer.setTime((String) parametros.get(&quot;Time&quot;));<br>
        layer.setParameter((String) parametros.get(&quot;Parameter&quot;));<br>        layer.setName((String) parametros.get(&quot;Name&quot;));<br>        layer.setMaxResolution((Point2D) parametros.get(&quot;MaxResolution&quot;));<br>

        <br>        return layer;<br>    }<br><br>The problem is that my layer appears in the view table of contents (TOC), but the map not appear. What im doing wrong? Help please!! <br clear="all"><br>-- <br>Bruno Gomes<br>