AnsweredAssumed Answered

API Javascript 4.13 - TileLayer - PopupTemplate

Question asked by leo33000 on Dec 23, 2019
Latest reply on Dec 30, 2019 by KEkenes-esristaff
I try to acces to attribute data thru a tilelayer using a sublayer as written here
So my code is :
       var SA_Innondation = new TileLayer({
          title:"Sensibilité Aléas Inondation",
         sublayers: [{
    id: 0,
    popupTemplate: {
      title: "{ppr_label}",
      content: "{risq_2015}"
My console return this error :
Uncaught TypeError: [accessor] cannot assign to read-only property 'sublayers' of esri.layers.TileLayer
I declare :
So is it impossible to retrieve attribute data using a cached layer with Tilelayer ?
It's works with a mapimagelayer but the display is too slow.
Some ideas ?