[Scripting API] How to associate the coordinates of object layer and tiled layer?

Is there any API for it?

My original need was just add a displayable custom property for tile, also for empty tile. So I make a object layer for it, but the coordinates between them was quit differentce.

You can convert from tile coordinates to pixel coordinates (for positioning objects) using tileToPixel, and the other way around using pixelToTile. Does that help?

1 Like

Yes, that’s it. Thank you kindly.