AnsweredAssumed Answered

Update-start and update-end map events disappear

Question asked by paupepui on Dec 4, 2017
Latest reply on Dec 20, 2017 by paupepui

Hello,

When I add a WFS layer (WFSLayer), it works fine, as well as the update-start and update-end map events.

The problem comes when I delete the WFS layer. When I delete the WFS layer with map.removeLayer (WFSLayer), an update-start event is executed without much sense. Then the onUpdateStart and UpdateEnd events of map are not executed (instead extent-change is working fine).

With other types of layers it works perfectly, such as WMSLayer, ArcGIS Feature Layer, ArcGIS Dynamic Layer, ...

What can be happening? Is it an API bug?

Thank you

Pau

 

                map.on("update-end", function(response){
                    console.log("update-end");
                    domUtils.hide(dom.byId("cargandoCapas"));               
                });
                map.on("update-start", function(){
                    console.log("update-start");
                    domUtils.show(dom.byId("cargandoCapas"));
                });
....
var capa = map.getLayer(nombreCapa);
        map.removeLayer(capa);

Outcomes