Last active
August 29, 2015 14:20
-
-
Save odoe/e34b075a0d4c8d18877e to your computer and use it in GitHub Desktop.
Sample Typescript 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 MapWidget = require('widgets/map/Widget'); | |
import Search = require('esri/dijit/Search'); | |
var node:any = document.getElementById('mapDiv'); | |
var options:any = { | |
mapOptions: { | |
center: [-118, 34.5], | |
zoom: 8, | |
basemap: 'topo' | |
} | |
}; | |
var mapWidget:MapWidget = new MapWidget(options, node); | |
var search:Search = new Search({ map: mapWidget.map }, 'searchDiv'); | |
search.startup(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment