Created
May 4, 2015 03:11
-
-
Save odoe/699faedd1d192d10c713 to your computer and use it in GitHub Desktop.
Sample Typescript widget for EsriJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Map = require('esri/map'); | |
import dojoDeclare = require('dojo/_base/declare'); | |
import _WidgetBase = require('dijit/_WidgetBase'); | |
import _TemplatedMixin = require('dijit/_TemplatedMixin'); | |
var Widget:any = dojoDeclare([_WidgetBase, _TemplatedMixin], { | |
templateString: '<div></div>', | |
postCreate() { | |
var map:Map = new Map(this.domNode, this.get('mapOptions')); | |
this.set('map', map); | |
} | |
}); | |
export = Widget; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment