Select to view content in your preferred language

ArcGIS JS 4.5 document for hosting the API

478
2
10-02-2017 07:44 PM
MikeC
by
Deactivated User

For Windows, it tells people to use the following to test the install:

    <script src="https://www.example.com/arcgis_js_api/library/4.5/dojo/dojo.js" ></script>

In Linux, it tells people to use the following instead:

    <script src="https://www.example.com/arcgis_js_api/library/4.5/init.js" ></script>

We used include "init.js" in the previous release, which one should be correct in 4.5?

Thanks.

0 Kudos
2 Replies
AnthonyRyanEQL
Frequent Contributor

Mike,

I did as the same [HOSTNAME] blah is in that file too but I haven't tested it out yet.

0 Kudos
ThomasSolow
Frequent Contributor

As far as I know there shouldn't be any difference between windows or linux when it comes to this sort of thing.  I believe you can pull in the API using dojo.js or init.js, though init.js seems like the better choice.

0 Kudos