Documentation

Layer extends TileLayer implements Printable, PropertyBagHolder Uses PropertyBagTrait

Represents a layer.

A layer contains different tiles which can be printed

Tags
see
https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#layer

Documentation

Interfaces, Classes and Traits

Printable
Marks something as a printable layer.
PropertyBagHolder
Interface for all elements, which contains properties.

Table of Contents

$height  : int|null
The height of the layer in tiles. Always the same as the map height for fixed-size maps.
$id  : int|null
Unique ID of the layer.
$layerData  : LayerData|null
Data which are under this layer.
$map  : Map|null
The map object, which holds this layer.
$name  : string|null
The name of the layer.
$offsetX  : float
Horizontal offset for this layer in pixels. Defaults to 0.
$offsetY  : float
Vertical offset for this layer in pixels. Defaults to 0.
$opacity  : float|null
The opacity of the layer as a value from 0 to 1.
$order  : int
Which order in the map should this tileLayer be rendered.
$propertyBag  : PropertyBag|null
$tintColor  : string|null
A color that is multiplied with any tiles drawn by this layer in #AARRGGBB or #RRGGBB format.
$visible  : bool
Whether the layer is shown (1) or hidden (0).
$width  : int|null
The width of the layer in tiles. Always the same as the map width for fixed-size maps.
$x  : int
The x coordinate of the layer in tiles.
$y  : int
The y coordinate of the layer in tiles.
getHeight()  : int|null
getId()  : int|null
getLayerData()  : LayerData|null
getMap()  : Map|null
getName()  : string|null
getOffsetX()  : float
getOffsetY()  : float
getOpacity()  : float|null
getOrder()  : int
getPropertyBag()  : PropertyBag|null
getTintColor()  : string|null
getWidth()  : int|null
getX()  : int
getY()  : int
isVisible()  : bool
setHeight()  : Layer
setId()  : TileLayer
setLayerData()  : Layer
setMap()  : TileLayer
setName()  : TileLayer
setOffsetX()  : TileLayer
setOffsetY()  : TileLayer
setOpacity()  : TileLayer
setOrder()  : Layer
setPropertyBag()  : self
setTintColor()  : TileLayer
setVisible()  : TileLayer
setWidth()  : Layer
setX()  : Layer
setY()  : Layer

Properties

Methods

getHeight()

public getHeight() : int|null
Return values
int|null

getId()

public getId() : int|null
Return values
int|null

getName()

public getName() : string|null
Return values
string|null

getOffsetX()

public getOffsetX() : float
Return values
float

getOffsetY()

public getOffsetY() : float
Return values
float

getOpacity()

public getOpacity() : float|null
Return values
float|null

getOrder()

public getOrder() : int
Return values
int

getTintColor()

public getTintColor() : string|null
Return values
string|null

getWidth()

public getWidth() : int|null
Return values
int|null

getX()

public getX() : int
Return values
int

getY()

public getY() : int
Return values
int

isVisible()

public isVisible() : bool
Return values
bool

setHeight()

public setHeight(int|null $height) : Layer
Parameters
$height : int|null
Return values
Layer

setOrder()

public setOrder(int $order) : Layer
Parameters
$order : int
Return values
Layer

setTintColor()

public setTintColor(string|null $tintColor) : TileLayer
Parameters
$tintColor : string|null
Return values
TileLayer

setWidth()

public setWidth(int|null $width) : Layer
Parameters
$width : int|null
Return values
Layer

setX()

public setX(int $x) : Layer
Parameters
$x : int
Return values
Layer

setY()

public setY(int $y) : Layer
Parameters
$y : int
Return values
Layer

Search results