Create ESRI Map in separate js file

3991
1
07-03-2015 02:13 AM
AleksandrShirokov
New Contributor

Hello everyone!

I just started looking at the ArcGIS APi and  I am confused from the very beginning .

In the tutorial of how to create a simple base map, the code is injected into html page with <script> tag. But when I try to put this code into separate JS file its not working. Am I doing something wrong?

Thank you!

Tags (3)
0 Kudos
1 Reply
ChrisSmith7
Frequent Contributor

This came-up before in another thread - have a loot at:

RequireJS and ArcGIS API for JS