AnsweredAssumed Answered

dojoLoader multipleDefine Error when map initialize

Question asked by leo.deng.transfinder on Apr 14, 2016
Latest reply on Apr 15, 2016 by leo.deng.transfinder

I've used ArcGIS API for JavaScript to display a demo map on my webpage.Firstly, I used the single page without thirdpart libs and the result as expect.However, when embed the map init function to the framework of my project, the error of multipleDefine appears. Even if use the basemap 'streets-navigation-vector' instead of 'streets', the map disappear.

 

I've tried all the reference methods,regardless the api is local or online, the error still exists. I doubt there's relate between dojo and jquery/knockout or others unexpect, such as Asynchronous Module Definition(AMD) conflict.

 

 

--------------------------------------------------------

Error: multipleDefine(...)

src: dojoLoader

vector-tile.js

 

--------------------------------------------------------

Environment:

ArcGIS API for JavaScript 3.16

jquery-1.11.1.min.js

knockout-3.3.0.debug.js

koExternalTemplateEngine_all.js

 

--------------------------------------------------------

Reference:

multipleDefine error in dojoLoader.https://community.esri.com/thread/119518

http://dojotoolkit.org/reference-guide/1.9/loader/amd.html

Outcomes