TileProviderByLevel

Inherits TileProvider

Members

Name

Documentation

Type

Description

Optional

LayerGroupID

Integer

Value of type ‘Integer’

No

LevelTileProviders

Table

Table parameters

No

Table parameters for LevelTileProviders
  • Optional: No

Name

Documentation

Type

Description

Optional

*

Table

Table parameters

Yes

Table parameters for *

  • Optional: Yes

Name

Documentation

Type

Description

Optional

MaxLevel

Integer

Greater or equal to: 0

No

TileProvider

Table

No

Asset Examples

 1local globe = asset.require("../../venus")
 2
 3
 4
 5local texturesPath = asset.resource({
 6  Name = "Venus Textures",
 7  Type = "HttpSynchronization",
 8  Identifier = "venus_textures",
 9  Version = 2
10})
11
12
13local Layer = {
14  Identifier = "Clouds_Magellan_Combo_Utah",
15  Name = "Clouds Magellan Combo [Utah]",
16  Enabled = asset.enabled,
17  Type = "TileProviderByLevel",
18  LevelTileProviders = {
19    {
20      MaxLevel = 4,
21      TileProvider = {
22        Identifier = "Clouds",
23        Name = "Clouds",
24        FilePath = texturesPath .. "venus_clouds.jpg",
25        CacheSettings = { Enabled = false }
26      }
27    },
28    {
29      MaxLevel = 7,
30      TileProvider = {
31        Identifier = "Magellan_Mosaic_Utah",
32        Name = "Magellan Mosaic [Utah]",
33        FilePath = asset.resource("magellan_mosaic_utah.vrt"),
34        BlendMode = "Color",
35        Settings = { Gamma = 2.0 }
36      }
37    }
38  }
39}
40
41
42asset.onInitialize(function()
43  openspace.globebrowsing.addLayer(globe.Venus.Identifier, "ColorLayers", Layer)
44end)
45
46asset.onDeinitialize(function()
47  openspace.globebrowsing.deleteLayer(globe.Venus.Identifier, "ColorLayers", Layer)
48end)
49
50asset.export(Layer)