extractObjects
extractObjects(
map,objectLayerName?):Record<string,TileObject[]>
Defined in: tilemap/src/tiled/parseTiledMap.ts:540
Extract objects from Tiled object layers, grouped by class/type/name. Use extractObjectGroups when the source layer must be preserved. Returned objects keep their raw Tiled coordinates without layer offsets.
Parameters
Section titled “Parameters”Parsed TiledMapData.
objectLayerName?
Section titled “objectLayerName?”string
Optional: only extract from this layer.
Returns
Section titled “Returns”Record<string, TileObject[]>
Record mapping class/type/name to arrays of TileObject.
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/tilemap.md.