AnsweredAssumed Answered

How to use tileServers since v4.9?

Question asked by unagigd on Oct 3, 2018
Latest reply on Oct 3, 2018 by rscheitlin


Does anyone know how to use 'tileServers' property for TileLayer in v4.9?

I was using it (in v4.7) in a constructor similar to this


new TileLayer({
  url: layer.url,
  tileServers: layer.tileServers, // an array of URLs


while creating new TileLayer, but after the update to 4.9 I get:


Uncaught TypeError: [accessor] cannot assign to read-only property 'tileServers' of esri.layers.TileLayer


Is this a bug (in the docs there is no note about this property being read-only)? Can I do this some other way?