I am using 'Esri brochure' to load URL ArcGIS tourism services with the API 'L.esri.DynamicMapLayer'. I'm looking for a way to know how many layers there are in that service, preferably the layer id.


this service: sampleserver5.arcgisonline.com/arcgis/rest/services/Hurricanes/MapServer

has two layers

sampleserver5.arcgisonline.com/arcgis/rest/services/Hurricanes/MapServer/0 sampleserver5.arcgisonline.com/arcgis/rest/services/Hurricanes/MapServer/1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.