2016-02-12 23:44:25 +00:00
|
|
|
var world = VIZI.World('world').setView([51.505, -0.09]);
|
2016-02-12 08:47:08 +00:00
|
|
|
|
|
|
|
// 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);
|