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,