TileIndexTileProvider

Inherits TileProvider

Members

Name

Documentation

Type

Description

Optional

UniqueBackgroundColors

If ‘true’ each index tile will have a unique background color assigned to it

Boolean

Value of type ‘Boolean’

Yes

Asset Examples

 1local globe = asset.require("../../mars")
 2
 3
 4
 5local Layer = {
 6  Identifier = "Indices",
 7  Type = "TileIndexTileProvider",
 8  Enabled = asset.enabled
 9}
10
11
12asset.onInitialize(function()
13  openspace.globebrowsing.addLayer(globe.Mars.Identifier, "Overlays", Layer)
14end)
15
16asset.onDeinitialize(function()
17  openspace.globebrowsing.deleteLayer(globe.Mars.Identifier, "Overlays", Layer)
18end)
19
20asset.export("layer", Layer)
21
22
23
24asset.meta = {
25  Name = "Mars Indices",
26  Version = "1.0",
27  Description = "This asset supplies a tile index layer for the Mars globe",
28  Author = "OpenSpace Team",
29  URL = "http://openspaceproject.com",
30  License = "MIT license"
31}