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.
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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.