Update-start and update-end map events disappear

812
2
12-04-2017 06:19 AM
PauPérez_Puigcerver
New Contributor II

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);
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Pau,

   Yes this sounds like a bug that you need to report to your your local esri tech support.

0 Kudos
PauPérez_Puigcerver
New Contributor II

Thanks Robert, I will report the error to ESRI

0 Kudos