-
chunks
↔ List<Chunk>?
-
List of chunks (optional).
getter/setter pair
-
class_
↔ String?
-
The "Class" specified in Tiled, introduced in Tiled 1.9 to support
custom types on any object. This is NOT the same as type
getter/setter pairinherited
-
compression
↔ Compression?
-
zlib, gzip, zstd (since Tiled 1.3) or empty (default).
getter/setter pair
-
data
↔ List<int>?
-
List of gids as int (GIDs) (parsed from base64-encoded data)
See tileData for a better representation.
getter/setter pair
-
encoding
↔ FileEncoding
-
csv (default) or base64.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
↔ int
-
Row count. Same as map height for fixed-size maps.
getter/setter pair
-
id
↔ int?
-
Incremental ID - unique across all layers
getter/setter pairinherited
-
name
↔ String
-
Name assigned to this layer.
Always present; might be an empty string.
getter/setter pairinherited
-
offsetX
↔ double
-
Horizontal layer offset in pixels (default: 0)
getter/setter pairinherited
-
offsetY
↔ double
-
Vertical layer offset in pixels (default: 0)
getter/setter pairinherited
-
opacity
↔ double
-
The opacity of the layer as a value from 0 to 1. Defaults to 1.
getter/setter pairinherited
-
parallaxX
↔ double
-
Horizontal parallax factor for this layer (default: 1). (since Tiled 1.5)
See: https://doc.mapeditor.org/en/stable/manual/layers/#parallax-factor
getter/setter pairinherited
-
parallaxY
↔ double
-
Vertical parallax factor for this layer (default: 1). (since Tiled 1.5)
See: https://doc.mapeditor.org/en/stable/manual/layers/#parallax-factor
getter/setter pairinherited
-
properties
↔ CustomProperties
-
List of Property.
getter/setter pairinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
startX
↔ int?
-
X coordinate where layer content starts (for infinite maps)
getter/setter pairinherited
-
startY
↔ int?
-
Y coordinate where layer content starts (for infinite maps)
getter/setter pairinherited
-
tileData
↔ List<List<Gid>>?
-
This is not part of the tiled definitions; this is just a convinient
wrapper over the data field that simplifies two things:
getter/setter pair
-
tintColor
↔ Color?
-
Color that is multiplied with any graphics drawn by this layer or any
child layers (optional).
getter/setter pairinherited
-
tintColorHex
↔ String?
-
Hex-formatted tint color (#RRGGBB or #AARRGGBB) that is multiplied with
any graphics drawn by this layer or any child layers (optional).
getter/setter pairinherited
-
type
↔ LayerType
-
Each type is associated with a concrete implementation of Layer.
getter/setter pairinherited
-
visible
↔ bool
-
Whether layer is shown or hidden in editor.
getter/setter pairinherited
-
width
↔ int
-
Column count. Same as map width for fixed-size maps.
getter/setter pair
-
x
↔ int
-
Horizontal layer offset in tiles. Always 0.
getter/setter pairinherited
-
y
↔ int
-
Vertical layer offset in tiles. Always 0.
getter/setter pairinherited