AnsweredAssumed Answered

Exception after remove and add a layer to web map / javascript

Question asked by piterpaulppp on Dec 20, 2016
Latest reply on Dec 22, 2016 by rscheitlin



Simple question: What is the correct way to remove a layer (ArcGISDynamicMapServiceLayer)?


We do constantly add and remove layers to/from a map object. We noticed that after remove and add there is an exception

Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at Object._onLoadHandler (
at HTMLImageElement.<anonymous> (


What is wrong? What is the meaning?