blob: d1ca3cd63605feb7137719f7f54e9219ee2c45da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
'use strict';
require('./style.css');
import * as lodash from 'lodash';
_ = lodash;
import MapContext from './control/MapContext';
import MapData from './model/MapData';
var mapContext: MapContext;
window.onload = () => {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
let mapDef = new MapData(JSON.parse(this.responseText));
mapContext = new MapContext(mapDef);
}
xhr.open('GET', 'resources/map/test.json', true);
xhr.send();
};
|