AnsweredAssumed Answered

javascript configuration for Portal?

Question asked by BobWhite on Sep 1, 2015
Latest reply on Sep 3, 2015 by caminante

Esri/Viewer · GitHub

 

I have obtained the Viewer application from GitHub and added a module that supports map navigation by legislative district.  The application works perfectly for ArcGIS Online versions of our maps, but not Portal.  In index.html I have configured references to the JavaScript libraries to point to our server, as instructed in the liner notes, but the application fails for "404" reasons.

 

<script type="text/javascript" src="//......capitol.local/arcport/jsapi/jsapi"></script>

 

The JavaScript code is present in the app at run time, so now I have questions about whether I am actually missing something in the libraries.  What is wrong with this picture?  I do explicitly add a reference to color.js in the code I added, but haven't done anything with "oAuthInfo."

Capture.PNG

Outcomes