DefinitelyTyped/types/arcgis-js-api/arcgis-js-api-tests.ts
Nathan Shively-Sanders 4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00

29 lines
503 B
TypeScript

import Map = require("esri/Map");
import MapView = require("esri/views/MapView");
import Point = require("esri/geometry/Point");
class MapController {
map: Map;
constructor(public mapDiv: string) {
}
start() {
let point = new Point({
latitude: 37.75,
longitude: -122.45
});
this.map = new Map({
basemap: { title: "topo" }
});
let view = new MapView({
center: point,
container: this.mapDiv,
map: this.map,
zoom: 13
});
}
}