dojo.provide("sample.Map");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.declare("sample.Map", [ dijit._Widget, dijit._Templated ], {
//定义模板,嵌套两个div,dojoAttachPoint相当于本widget的id,可以在本类中引用(this.mapDiv),相当于对div dom的引用
templateString: '<div><div dojoAttachPoint="mapDiv"><div></div>',
//defined some properties
map: null,
lastUpdateTimes: {},
centerX:-86.21081829071031,
centerY:41.69339748645971,
baseMap: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/${z}/${y}/${x}",
mapProjection: "EPSG:4326",
level:15,
//构造函数
constructor: function(kwArgs){
dojo.mixin(this, kwArgs);
}
//defined some other functions
}