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.