Select to view content in your preferred language

How to retrieve map data from sublayer using ARCGIS JavaScript tileLayer

420
1
Jump to solution
12-26-2023 05:15 PM
AbramhumHsu
Emerging Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

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

 

View solution in original post

1 Reply
Noah-Sager
Esri Regular Contributor

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