Working with Esri Leaflet trying to sort out which data can be used in our application, can the Traffic Service be used in a map based in Esri Leaflet code? Any info would be helpful to us. How to form the request to the service would also be of help. Thanks!
Solved! Go to Solution.
Yeah, we use this. It's quite simple actually:
trafficLayer = L.esri.dynamicMapLayer({
url: 'https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer',
token: ESRI_API_KEY
}).addTo(this.map)
Yeah, we use this. It's quite simple actually:
trafficLayer = L.esri.dynamicMapLayer({
url: 'https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer',
token: ESRI_API_KEY
}).addTo(this.map)