kopia lustrzana https://github.com/robhawkes/vizicities
Removed hard-coded city coordinates
rodzic
a381893157
commit
bff6ff4030
|
@ -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"
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue