# nextQueryWindow

The window a query layer should have for `view`: the last one while the
view is still inside it and not much smaller than it, otherwise a new one.
Panning a little or zooming in a little then costs no request, and zooming
in far asks for a smaller area, so fewer features and less data.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { nextQueryWindow } from "@mapcairn/core";
 
function nextQueryWindow(previous: Bounds | null, view: Bounds): Bounds;
```

## Parameters

- `previous` (`Bounds | null`)
- `view` (`Bounds`)

## Returns

`Bounds`

## See also

- [`Bounds`](https://docs.mapcairn.com/api/core/Bounds.md)

Source: [packages/core/src/layers/query.ts:129](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/query.ts#L129)
