Skip to content

Commit

Permalink
fix point event triggering with deprecated canvas renderer
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Jul 10, 2024
1 parent 837901f commit ce27dbe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/display/src/displays/BasicDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ abstract class Display {
}

/**
* Return the most top rendered feature on screen.
* Returns the topmost rendered feature on the screen.
*
* @param screenX x position on screen
* @param screenY y position
Expand All @@ -626,11 +626,11 @@ abstract class Display {
*/
getRenderedFeatureAt(screenX: number, screenY: number, layers?: (TileLayer | CustomLayer)[]): {
id: number | string | null,
z: number,
layerIndex: number,
z?: number,
layerIndex?: number,
pointWorld?: number[]
} {
return null;
return {id: null};
}

scaleOffsetXYByAltitude(pointWorld: number[]) {
Expand Down

0 comments on commit ce27dbe

Please sign in to comment.