mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +08:00
Merge pull request #3818 from dasa/arcgis-js-api
Add arcgis-js-api definition
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/// <reference path="arcgis-js-api.d.ts" />
|
||||
|
||||
import esri = require("esri");
|
||||
import Map = require("esri/map");
|
||||
import Point = require("esri/geometry/Point");
|
||||
|
||||
export = MapController;
|
||||
|
||||
class MapController {
|
||||
map: Map;
|
||||
|
||||
constructor(public mapDiv: string) {
|
||||
}
|
||||
|
||||
start() {
|
||||
var point = new Point(-122.45, 37.75); // long, lat
|
||||
|
||||
var mapOptions: esri.MapOptions = {};
|
||||
mapOptions.basemap = "topo";
|
||||
mapOptions.center = point;
|
||||
mapOptions.zoom = 13;
|
||||
|
||||
this.map = new Map(this.mapDiv, mapOptions);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
--noImplicitAny --module amd
|
||||
Vendored
+16049
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user