AnsweredAssumed Answered

Using multiple version of Dojo

Question asked by ldwedari on Aug 5, 2013
Latest reply on Dec 2, 2014 by JGravois-esristaff
Hi,

I need to use Dojo 1.9 in my page since it fixed some Bounding Box bugs in version 1.8.3. ArcGIS currently uses 1.8.3, so I need to use both versions of Dojo at the same time in my page.
I'm new to Dojo, so I don't fully understand the configuration process, but I've tried to rename the Dojo namespace used by ArcGIS with this dojoConfig:

var arcgisMap = { dojo: "dojoArcgis", dijit: "dijitArcgis", dojox: "dojoxArcgis" };
var dojoConfig = { //required for custom extensions to ArcGis (e.g. the cluster layer)
  parseOnLoad: true,
  packages: [
    { "name": "dojoArcgis", "location": 'http://serverapi.arcgisonline.com/jsapi/arcgis/3.5', packageMap: arcgisMap },
    { "name": "dijitArcgis", "location": 'http://serverapi.arcgisonline.com/jsapi/arcgis/3.5', packageMap: arcgisMap },
    { "name": "dojoxArcgis", "location": 'http://serverapi.arcgisonline.com/jsapi/arcgis/3.5', packageMap: arcgisMap },
    { "name": "Clustering", "location": '@Url.Content("~/Scripts/map/CustomArcGis/Clustering")' }
  ]
};


But when I call
dojoArcgis.require("esri.map");
I get the error 'dojoArcgis' is undefined.

Could somebody point me to what I'm doing wrong and maybe put here some code that show how to configure Dojo?

Thanks.

Lutfi

Outcomes