I meet a problem about how to retrieve map data from sublayer using ARCGIS JavaScript tileLayer. The example mapserver is like following:
https://arcgis.tpgos.gov.taipei/arcgis/rest/services/TAIPEI_MAP/LAYER_NWPIPE_TILE/MapServer
It has layers, so if I hope to get id:1 via the using of tileLayer in ARCGIS JavaScript,
How to make that, thanks a lot.
Solved! Go to Solution.
Hi @AbramhumHsu, the TileLayer is intended to use with a MapServer, and Sublayers are not intended to be handled individually, with the exception of their: title, popup, and legend.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sublayers
Hi @AbramhumHsu, the TileLayer is intended to use with a MapServer, and Sublayers are not intended to be handled individually, with the exception of their: title, popup, and legend.
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sublayers