Removed hard-coded city coordinates

0.1
Rob Hawkes 2014-02-02 11:17:05 +00:00
rodzic a381893157
commit bff6ff4030
2 zmienionych plików z 15 dodań i 7 usunięć

Wyświetl plik

@ -26,6 +26,10 @@
<script>
var city = new VIZI.City();
city.init({
areaCoords: {
bottomLeft: [-0.090062,51.489438],
topRight: [0.012322,51.519747]
},
buildings: true,
buildingsURL: "osm-buildings.json"
});

Wyświetl plik

@ -16,13 +16,8 @@
this.ui = {};
this.ui.loading = undefined;
// Set up geo methods
this.geo = VIZI.Geo.getInstance({
areaCoords: {
bottomLeft: [-0.090062,51.489438],
topRight: [0.012322,51.519747]
}
});
// Geo methods
this.geo = undefined;
// Basic WebGL components (scene, camera, renderer, lights, etc)
this.webgl = undefined;
@ -53,6 +48,10 @@
}
_.defaults(options, {
areaCoords: {
bottomLeft: [-0.090062,51.489438],
topRight: [0.012322,51.519747]
},
buildings: true,
buildingsURL: null
});
@ -60,6 +59,11 @@
// Output city options
VIZI.Log(options);
// Set up geo methods
self.geo = VIZI.Geo.getInstance({
areaCoords: options.areaCoords
});
// Load city using promises
self.publish("loadingProgress", 0);