Excuse for the delay..I forgot to answer back to you..I solved the problem putting at the end of my refresh method the following line:<br><br>mapCtrl.drawMap(false);<br><br>with such a method call everithing were refreshed properly...However it&#39;s very unintuitive..I think that mapCtrl.redraw() should do the same thing..isn&#39;t it?<br>

<br><div class="gmail_quote">2011/2/12 Nacho Uve <span dir="ltr">&lt;<a href="mailto:nachouve@gmail.com">nachouve@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Flavio, are you solved this problem?<br><br><br><div class="gmail_quote"><div><div></div><div class="h5">2010/12/16 Flavio Pompermaier <span dir="ltr">&lt;<a href="mailto:fla83tn@gmail.com" target="_blank">fla83tn@gmail.com</a>&gt;</span><br>

</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">
Hi to all,<br>
can comeone help me with this problem? I would like to refresh WFS and<br>
WMS layers after a modification to underlying data in SDE. However,<br>
the SAME code that reloads geometries in map after a pan doesn&#39;t work<br>
when I force it after the closure of a dialog.<br>
I also tried to call View invalidate, MapControl invalidate() and all<br>
possible methods to make gvSIG redraw the view content.<br>
Am I missing something?<br>
<br>
Here&#39;s the code that I use for WMS layers for example:<br>
  FLayers layers = mapCtrl.getMapContext().getLayers();<br>
  mapCtrl.getMapContext().beginAtomicEvent();<br>
  for (FLayer fLayer : visibles) {<br>
     else if (fLayer instanceof FLyrWMS) {<br>
           FLyrWMS wmsLayer = (FLyrWMS) fLayer;<br>
           try {<br>
                wmsLayer.load();<br>
           }<br>
           catch (LoadLayerException e) {<br>
                log.error(&quot;Error while refreshing layer &quot; + wmsLayer.getName(), e);<br>
            }<br>
            String infoText = traduci(&quot;refreshing_layer&quot;) + &quot; &quot; +<br>
wmsLayer.getName();<br>
            PluginServices.getMainFrame().getStatusBar().setInfoText(infoText);<br>
        }<br>
  }<br>
  mapCtrl.getMapContext().endAtomicEvent();<br>
<br>
For WFS layers I even have to replace the FLayer to force their<br>
reloading...o can there be a simpler way? Using only load() o reload()<br>
does nothing...<br>
<br>
Best regards,<br>
Flavio<br></div></div>
_______________________________________________<br>
Gvsig_internacional mailing list<br>
<a href="mailto:Gvsig_internacional@listserv.gva.es" target="_blank">Gvsig_internacional@listserv.gva.es</a><br>
<a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
</blockquote></div><br><br>
<br>_______________________________________________<br>
Gvsig_internacional mailing list<br>
<a href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
<a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
<br></blockquote></div><br>