getViewTileId(gid) {
		const localId = gid - this.firstgid;

		if (this.animations.has(localId)) {
			// return the current corresponding tile id if animated
			return this.animations.get(localId).cur.tileid;
		}

		return localId;
	}
Get the view (local) tile ID from a GID, with animations applied
@param {number} gid - Global tile ID
@returns {number} View tile ID