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 ZIndex = 100,
26 Type = "ImageSequenceTileProvider",
27 FolderPath = syncedDirectory .. "4096",
28 Description = Description
29}
30
31
32asset.onInitialize(function()
33 openspace.globebrowsing.addLayer(globe.Earth.Identifier, "ColorLayers", Layer)
34end)
35
36asset.onDeinitialize(function()
37 openspace.globebrowsing.deleteLayer(globe.Earth.Identifier, "ColorLayers", Layer)
38end)
39
40asset.export(Layer)
41
42
43
44asset.meta = {
45 Name = Name,
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}