Hi,
We have an application in Arcgis javascript 3.x. We want to use 4.x JavaScript API now. Is there any tool available for transformation from 3.x to 4.x or we need to rewrite entire code to transform the application?
Is there any resource available where we can find out the difference between the 2 API or the changes we need to do in our code to make it run with minimal efforts?
Thanks
Aditya Kumar
Solved! Go to Solution.
This would require a full rewrite of your application. Here is a guide to help in the process.
https://developers.arcgis.com/javascript/latest/migrating/
It should be noted, that depending how you built your original application and it's complexity, if your application is using the 3x CDN, you can probably continue to use the 4x CDN.
However, if you were using the Dojo build tools to build your application, that process is deprecated for 4x. We recommend you use some modern build tools as shown in this sample repo.
https://github.com/Esri/jsapi-resources/tree/master/esm-samples
This would require a full rewrite of your application. Here is a guide to help in the process.
https://developers.arcgis.com/javascript/latest/migrating/
It should be noted, that depending how you built your original application and it's complexity, if your application is using the 3x CDN, you can probably continue to use the 4x CDN.
However, if you were using the Dojo build tools to build your application, that process is deprecated for 4x. We recommend you use some modern build tools as shown in this sample repo.
https://github.com/Esri/jsapi-resources/tree/master/esm-samples