From e5e1c3263b1932b6c3e960d5ef0b4c050527e99c Mon Sep 17 00:00:00 2001 From: ccmdi Date: Mon, 24 Nov 2025 20:12:58 -0500 Subject: [PATCH] refactor: use `boundingBox` --- src/map-renderer.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/map-renderer.ts b/src/map-renderer.ts index 25ff582..7e77658 100644 --- a/src/map-renderer.ts +++ b/src/map-renderer.ts @@ -449,11 +449,9 @@ export function createMapRenderer(config: MapRendererOptions): Deck; }) => { - //TODO: replace with boundingBox - // eslint-disable-next-line @typescript-eslint/no-deprecated - const bbox = props.tile.bbox; - if (!('west' in bbox)) return null; - const { west, south, east, north } = bbox; + const boundingBox = props.tile.boundingBox; + if (!boundingBox || boundingBox.length !== 2) return null; + const [[west, south], [east, north]] = boundingBox; return new BitmapLayer({ ...props, data: undefined,