Layer

class Layer

A Layer is an overlay that is added to the map. Each layer references a data source that defines the features that should appear when the layer is rendered, and provides styling instructions for describe the visual properties that should be applied to those features when the layer is rendering those features.

Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

id

UniqueId uniquely identifying this Layer.

Functions

Link copied to clipboard
fun hide()

Change visibility of the selected Layer to false.

Link copied to clipboard
fun show()

Change visibility of the selected Layer to true.

Properties

Link copied to clipboard
val id: UniqueId
Link copied to clipboard
val metadata: String

Arbitrary property, used to carry extra information.

Link copied to clipboard
val name: String

Unique layer name.

Link copied to clipboard
val source: String

Name of the source description for this layer.