Select to view content in your preferred language

Failed to Load Traffic Service Map

255
0
07-21-2023 04:10 PM
DarrylDay
New Contributor

I am trying to render the traffic service map as a layer in my scene but keep running into issues.


When attempting to add the layer through the API I get the following error:

ArcGISLayerViewState Traffic API changed to: Error (Invalid request response.)
Additional info: The service is not tiled

            map.Layers.Add(new ArcGISImageLayer(
                "https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer",
                "Traffic API",
                1f,
                true,
                "API Key"));

 

When trying to add it through the map component inspector I get the following error despite having an OAuth authentication set for that layer:
ArcGISLayerViewState Traffic Inspector changed to : Error (Authentication configuration required.)
Additional info: Authentication configuration required for https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer  

 

Any help with this would be greatly appreciated.

Tags (1)
0 Replies