AnsweredAssumed Answered

Dojo AMD and creating instance of esri classes

Question asked by rahul_m on Dec 15, 2012
Latest reply on Dec 18, 2012 by rahul_m
Hi All,

I wanted to know in following code why we have to instantiate map as new esri.Map() and not as new myMap()

define(["dojo/_base/declare", "core_library/_Widget", "esri/map"], function (declare, WidgetBase, myMap) {      return declare([WidgetBase], {         _map: null,          postCreate: function () {             this._map = new esri.Map(this.domNode, { extent:initExtent,slider: true });                      }     }); });

Outcomes