AnsweredAssumed Answered

Map Attribution is not working after handling map.onLayerAdd and map.onLayerRemove Events

Question asked by sumitza on Mar 19, 2015
Latest reply on Apr 10, 2015 by sumit.zarkar

We have set showAttribution to true while creating map object and the attribution changes properly until we handle map.onLayerAdd and map.onLayerRemove Events.   

As soon as we handel map.onLayerAdd and map.onLayerRemove Events Map Attribution is not working properly.

 

Steps to reproduce:

  • In attached sample click on "change basemap" button and observe map attribution is changing.
  • Now  click on "Handel Layer Add/Remove Events" button
  • Now click on "change basemap" button and observe the map attribution is not changing.

Outcomes