enigma2522

Creating a custom AMD widget with map as the base

Discussion created by enigma2522 on Jan 16, 2013
Latest reply on Jan 16, 2013 by enigma2522
Does anyone have an example of creating a custom map widget using the ESRI map as the base? My first attempt:

define([
    "esri/map",
    "dojo/_base/declare"
  ],
  function (map, declare)
{
  
  //widget declaration
  return declare("my.Map", [map],
  {
    constructor : function ()  {},
    
    postCreate : function ()
    {
      this.inherited(arguments);
      
    }
    
  }
  );
}
);


I ran into the following error: mixin #0 is not a callable constructor.

Outcomes