Select to view content in your preferred language

Loading Local Esri Modules via AMD

983
6
08-07-2012 06:17 AM
ScottDavis
Frequent Contributor
Just wondering if it's possible to load locally hosted Esri modules via AMD rather than loading the entire jsapi layer file. I'd like to use my own version of dojo.js and just load the individual Esri modules. Here's my attempt on GitHub: https://github.com/stdavis/EsriPackageDemo but it's not working yet. Hoping that someone might have some ideas.
0 Kudos
6 Replies
derekswingley1
Deactivated User
This not currently possible as our modules are not fully AMD compliant (yet).
0 Kudos
ScottDavis
Frequent Contributor
Shouldn't it be possible using async: false which supports legacy modules defined with dojo.provide?
0 Kudos
derekswingley1
Deactivated User
It might be possible, but I haven't explored it.

Have you seen the examples linked from here:  http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/inside_dojo_amd.html
0 Kudos
ScottDavis
Frequent Contributor
Yes, I've seen those but they are using Esri's layer file (which includes dojo base). Would love to see an example of how to use Esri modules without loading the layer file.
0 Kudos
derekswingley1
Deactivated User
Would love to see an example of how to use Esri modules without loading the layer file.


AFAIK, that's not possible without an un-built version of the API source.
0 Kudos
ScottDavis
Frequent Contributor
AFAIK, that's not possible without an un-built version of the API source.


That's what I was afraid of. 😞
0 Kudos