---
id: tiled-gid
name: Tiled.gid
category: tiled
kind: namespace-method
tokens: Tiled.gid
sig: Tiled.gid(map, layer: int, x: int, y: int) -> int
tip: The raw GID at a cell in a tile layer.
order: 4
ns: Tiled
member: gid
---
Returns the raw global tile id (with its flip flags still set) at cell (x,y) in tile layer, or 0 (empty) out of bounds or for a non-tile layer.