ArcGIS JavaScript API wothout DOJO

1744
6
09-16-2013 01:03 AM
RohitGarg1
New Contributor
Hello All,

Can we develop arcgis javascipt web application without using DOJO.

Please let me know the possibility.

Regards,
RG
0 Kudos
6 Replies
ReneRubalcava
Frequent Contributor
The API is built on Dojo, so you do need to work within the confines of Dojo, like the AMD loader.
https://dojotoolkit.org/documentation/tutorials/1.8/modules/

That is't to say you can't incorporate it with libraries like jQuery, Backbone or Angular if you like.
jQuery
https://developers.arcgis.com/en/javascript/jssamples/mobile_citizenrequest.html

Backbone
http://blog.davebouwman.com/2013/02/18/marionette-with-maps-series-intro/

Angular
http://odoe.net/blog/?p=447
0 Kudos
NianweiLiu
Occasional Contributor II
Hello All,

Can we develop arcgis javascipt web application without using DOJO.

Please let me know the possibility.

Regards,
RG


If what you actually mean is "develop arcgis web application using Javascript", then you can work directly with REST API. Esri also released a (unsupported) library working with Leaf-let, you can find it on github, no dojo required.
0 Kudos
vinayb
by
New Contributor III
I too am looking forward for this we can remove dojo from ESRI because we have web application which is heavily dependent on DOJO.
   Now loading ESRI which loads its own dojo is  causing us too many issues too hadle , atleast is there a way where we can load dojo from our local and load ESRI packages only.
0 Kudos
RohitGarg1
New Contributor
Thanks Rene for reply. ..can we remove "dojo.required()" or "dojo.addonload()" or "dojo.connect()"?

RG
0 Kudos
ReneRubalcava
Frequent Contributor
Yes you can. You'll want to review some of the docs on moving to AMD from the old Dojo <1.7 style.
https://developers.arcgis.com/en/javascript/jshelp/inside_dojo_amd.html
https://dojotoolkit.org/documentation/tutorials/1.8/modules/

And as nliu pointed out, there is an esri-leaflet plugin currently in development in it's early stages, but has some active commiters.
https://github.com/esri/esri-leaflet
It's got some reported issues and does not have the full documentation that the ArcGIS API does, but is an interesting project.
0 Kudos
RohitGarg1
New Contributor
Thanks again Rene..
0 Kudos