ImageSequenceTileProvider
Inherits TileProvider
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The path that is used to look for images for this image provider. The path must point to an existing folder that contains images |
|
Value of type ‘Directory’ |
No |
|
The index into the list of images that is used to pick the currently displayed image |
|
Value of type ‘Integer’ |
Yes |
Asset Examples
1local globe = asset.require("../../earth")
2
3
4
5local Name = "Land to Sea Ratio"
6local Identifier = "noaa-sos-land-land_ratio"
7local Description = [[In this dataset, we witness the world map transform into a graph
8that shows the ratio of land and sea at different latitudes]]
9local URL = "https://sos.noaa.gov/catalog/datasets/land-to-sea-ratio/"
10
11
12local syncedDirectory = asset.resource({
13 Name = Name,
14 Type = "HttpSynchronization",
15 Identifier = Identifier,
16 Version = 1,
17 UnzipFiles = true
18})
19
20
21local Layer = {
22 Identifier = Identifier,
23 Name = Name,
24 Enabled = asset.enabled,
25 Type = "ImageSequenceTileProvider",
26 FolderPath = syncedDirectory .. "4096",
27 Description = Description
28}
29
30
31asset.onInitialize(function()
32 openspace.globebrowsing.addLayer(globe.Earth.Identifier, "ColorLayers", Layer)
33end)
34
35asset.onDeinitialize(function()
36 openspace.globebrowsing.deleteLayer(globe.Earth.Identifier, "ColorLayers", Layer)
37end)
38
39asset.export(Layer)
40
41
42
43asset.meta = {
44 Name = Name,
45 Version = "1.0",
46 Description = Description .. "Data provided by the National Oceanic and Atmospheric Administration",
47 Author = "National Oceanic and Atmospheric Administration",
48 URL = URL,
49 License = "https://sos.noaa.gov/copyright/"
50}