vizicities/examples/basic/main.js

13 wiersze
433 B
JavaScript
Czysty Zwykły widok Historia

var world = VIZI.World('world').setView([51.505, -0.09]);
// Not sure if I want to keep this as a public API
//
// Makes sense to allow others to customise their environment so perhaps this
// could be left public but a default is set up within World to simplify things
2016-02-14 19:10:28 +00:00
var environmentLayer = VIZI.EnvironmentLayer().addTo(world);
var gridLayer = VIZI.GridLayer().addTo(world);
2016-02-12 10:41:41 +00:00
// Add controls
VIZI.Controls.Orbit().addTo(world);