NASAWorldWind / WebWorldWind

The NASA WorldWind Javascript SDK (WebWW) includes the library and examples for creating geo-browser web applications and for embedding a 3D globe in HTML5 web pages.
898 stars 384 forks source link

Standalone example out of date #857

Closed smithfred closed 2 years ago

smithfred commented 3 years ago

Description

https://worldwind.arc.nasa.gov/web/tutorials/standalone-example/ has the following:

var elevationModel = new WorldWind.EarthRestElevationModel(null, "../standalonedata/Earth/DTED0");
var wwd = new WorldWind.WorldWindow("canvasOne", elevationModel);

For 0.10.0, this should now be:

var elevationCoverage = new WorldWind.EarthRestElevationCoverage("../standalonedata/Earth/DTED0");
var elevationModel = new WorldWind.ElevationModel();
elevationModel.addCoverage(elevationCoverage);
var wwd = new WorldWind.WorldWindow("canvasOne", elevationModel);
Beak-man commented 2 years ago

Hi @smithfred, thanks for reporting this. We added your update to the code shown in the website and we renamed the "Standalone" example as "Offline". It can now be found here: https://worldwind.arc.nasa.gov/web/tutorials/offline-example/