World Traffic Service using Esri Leaflet?

679
1
Jump to solution
10-14-2022 08:13 AM
Labels (1)
EllenNodwell_IntegraShare
Occasional Contributor

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!

1 Solution

Accepted Solutions
DanielDormont
New Contributor III

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)

View solution in original post

1 Reply
DanielDormont
New Contributor III

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)