-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new tile accessor to get at tile props (#445)
Based on this conversation excaliburjs/Excalibur#2673 We want a convenient way to get at custom tile properties! ```typescript // Grab tiles by worldspace point and the named layer const tile = map.getTileByPoint('Ground', evt.worldPos); // or by coordinate const tile = map.getTileByCoordiante('Ground, 10, 100); console.log('tile', tile); console.log('id', tile?.id); console.log('tile props', tile?.properties); ```
- Loading branch information
Showing
2 changed files
with
51 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters