Documentation

TileLayer

This class represents an abstract layer of an map.

Table of Contents

$id  : int|null
Unique ID of the 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.
$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).
getId()  : int|null
getMap()  : Map|null
getName()  : string|null
getOffsetX()  : float
getOffsetY()  : float
getOpacity()  : float|null
getTintColor()  : string|null
isVisible()  : bool
setId()  : TileLayer
setMap()  : TileLayer
setName()  : TileLayer
setOffsetX()  : TileLayer
setOffsetY()  : TileLayer
setOpacity()  : TileLayer
setTintColor()  : TileLayer
setVisible()  : TileLayer

Properties

Methods

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

getTintColor()

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

isVisible()

public isVisible() : bool
Return values
bool

setTintColor()

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

Search results