new ObjectLayer( [config])
The data for the layer from the Tiled JSON object.
The name of the Object Layer.
An array of all objects on this Object Layer.
name(as assigned in Tiled),
type(as assigned in Tiled),
rotation(in clockwise degrees),
ycoordinates (in pixels, relative to the tilemap), and a
An object tile has a
gidproperty (GID of the represented tile), a
flippedAntiDiagonalproperty. The Tiled documentation contains information on flipping and rotation.
Polylines have a
polylineproperty, which is an array of objects corresponding to points, where each point has an
xproperty and a
yproperty. Polygons have an identically structured array in their
polygonproperty. Text objects have a
textproperty with the text's properties.
Rectangles and ellipses have a
ellipseproperty set to
The opacity of the layer, between 0 and 1.
The custom properties defined on the Object Layer, keyed by their name.
The type of each custom property defined on the Object Layer, keyed by its name.
The type of the layer, which should be
Whether the layer is shown (
true) or hidden (