mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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.
29 lines
503 B
TypeScript
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
|
|
});
|
|
}
|
|
}
|