kopia lustrzana https://github.com/robhawkes/vizicities
Changed example to pass building JSON
rodzic
ae372930f9
commit
a381893157
|
@ -25,10 +25,10 @@
|
|||
|
||||
<script>
|
||||
var city = new VIZI.City();
|
||||
// city.init({
|
||||
// buildings: true,
|
||||
// buildingsURL: "osm-buildings.json"
|
||||
// });
|
||||
city.init({
|
||||
buildings: true,
|
||||
buildingsURL: "osm-buildings.json"
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -54,9 +54,12 @@
|
|||
|
||||
_.defaults(options, {
|
||||
buildings: true,
|
||||
buildingsURL: "osm-buildings.json"
|
||||
buildingsURL: null
|
||||
});
|
||||
|
||||
// Output city options
|
||||
VIZI.Log(options);
|
||||
|
||||
// Load city using promises
|
||||
|
||||
self.publish("loadingProgress", 0);
|
||||
|
|
Ładowanie…
Reference in New Issue