I am looking to leverage this Traffic Service in my javascript app.
World traffic | ArcGIS API for JavaScript 3.22
I have an ArcGIS online organization account
But my question is can I embed the credentials so I dont have to enter them everytime?
Do I need to write my own proxy?
Very confused.
Solved! Go to Solution.
Jay,
No you use the esri Proxy
GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.
then follow this blog about setting it up:
https://blogs.esri.com/esri/supportcenter/2015/04/07/setting-up-a-proxy/
Jay,
No you use the esri Proxy
GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.
then follow this blog about setting it up:
https://blogs.esri.com/esri/supportcenter/2015/04/07/setting-up-a-proxy/
Once I create the proxy how do I reference and draw this in a javascript app?
Jay,
That is well covered in step 12 of the blog.
was just curious how to turn the layer on and off
Jay,
The proxy does nothing but handle the login for you. You will have to add the layer in your code the same way you do any other layer.