Skip to content

Commit

Permalink
Use esri.MapOptions interface directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasa committed Mar 24, 2014
1 parent cf84526 commit 4cf34b7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions typescript/demo/MapController.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference path="../esri.d.ts"/>

import esri = require("esri");
import Map = require("esri/map");
import Point = require("./Point");

Expand All @@ -8,16 +9,18 @@ export = MapController;
class MapController {
map: Map;

constructor(public mapDiv: string) {}
constructor(public mapDiv: string) {
}

start() {
var point = new Point(-122.45, 37.75); // long, lat
point.log();
this.map = new Map(this.mapDiv, {
basemap: "topo",
// center: [-122.45, 37.75], // long, lat
center: point,
zoom: 13
});

var mapOptions: esri.MapOptions = {};
mapOptions.basemap = "topo";
mapOptions.center = point;
mapOptions.zoom = 13;

this.map = new Map(this.mapDiv, mapOptions);
}
}

0 comments on commit 4cf34b7

Please sign in to comment.