'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(); };