Optional chunksArray of chunks. Only set for tile layers in infinite maps.
Optional classThe class of the layer.
Optional compressionCompression method for base64 encoded data and chunks. Only set when base64 encoding is set.
Optional dataArray of unsigned integers (GIDs) or base64-encoded data.
The data encoding. When set to CSV or undefined then data and data in chunks are unsigned integers. When set to BASE64 then data is base64 encoded and optionally compressed by the compression method defined in compression.
Row count. Same as map height for fixed-size maps.
Incremental ID. Unique across all layers.
Optional lockedWhether layer is locked in the editor. Default is false.
The layer's name.
Optional offsetxOptional horizontal layer offset in pixels. Default is 0.
Optional offsetyOptional vertical layer offset in pixels. Default is 0.
Layer opacity between 0 and 1.
Optional parallaxxHorizontal parallax factor. Default is 1.
Optional parallaxyVertical parallax factor. Default is 1.
Optional propertiesArray of properties. Empty if not set.
Optional startxX coordinate where layer content stats. Only set to infinite maps.
Optional startyY coordinate where layer content stats. Only set to infinite maps.
Optional tintcolorOptional tint color that is multiplied with any graphics drawn by this layer or any child layer.
The layer type.
Whether layer is shown or hidden in editor.
Column count. Same as map width for fixed-size maps.
Horizontal layer offset in tiles. Always 0.
Vertical layer offset in tiles. Always 0.
Generated using TypeDoc
Tile layer.