TileIndexTileProvider
Inherits TileProvider
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
If ‘true’ each index tile will have a unique background color assigned to it. |
|
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 Description = "This asset supplies a tile index layer for the Mars globe",
27 Author = "OpenSpace Team",
28 URL = "http://openspaceproject.com",
29 License = "MIT license"
30}