2

We've a large web based GIS application running which uses an older version of ArcGIS API (v3.7) for JS. The ArcGIS JSAPI v3.7 is lacking some functionality which are available in v3.15. Now I also need to include ArcGIS JS API v3.15 for a specific function.

Changing API version for whole application is not an option.

So, Is it possible to include some of the modules from v3.15 for a specific function and destroy when that function is executed?

Scenario:

//code uses v3.7
// ....
// ...
function executeLatestFeature() {
  // need to use some functions from v3.15
  //... 
}
//code uses v3.7
1
  • 1
    It would be risky to use both versions, especially because the JS API references other libraries. The JS API doesn't have the same no conflict functionality as something like jQuery. – Radar Apr 15 '16 at 18:17
3

No, this isn't possible.

For one, if you were to load both API's, you would end up with a namespace collision with Dojo's Define and Require.

For two, the API is obfuscated (not human readable) making it difficult to extract just the parts you need. Even if you could, there may be dependencies in that module preventing you from using it with an older API.

1
  • 1
    Good explanation! Thanks! Any workaround do you've? – user70557 Apr 16 '16 at 5:48
1

Whilst not recommended at all Rene Rubalcava did a good walkthrough of how to do this

http://odoe.net/blog/void-your-arcgis-api-for-javascript-warranty/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy