Select to view content in your preferred language

Using multiple version of Dojo

1724
1
08-05-2013 07:45 AM
LutfiDwedari
New Contributor
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
0 Kudos
1 Reply
JohnGravois
Frequent Contributor
0 Kudos