Level

A top-level Layer containing Units and other graphical elements.

Level.translate(x, y)

Move the Level by the given x and y in screen space. This method is chainable.

Arguments

Type

Default Values

Description

x

Number

undefined

The value on the x axis.

y

Number

undefined

The value on the y axis.

Level.show()

Display the given Level. This method is chainable.

Level.hide()

Hide the given Level. This method is chainable.

Level.opacity(opacity)

Set the opacity of the Level. This method is chainable.

Arguments

Arguments

Type

Default Value

Description

opacity

Float

undefined

A number value between 0 and 1, where 1 is opaque, 0.5 is 50% transparent, and 0 is fully transparent.

Level.markers()

Add or remove Marker objects on the Level.

Returns

A MarkerCollection Object.

Level.tags()

Get the tags on the Level.

Returns

A TagsCollection Object.


What’s Next