Skip to main content

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​

import { nextQueryWindow } from "@mapcairn/core";

function nextQueryWindow(previous: Bounds | null, view: Bounds): Bounds;

Parameters​

  • previous (Bounds | null)
  • view (Bounds)

Returns​

Bounds

See also​

Source: packages/core/src/layers/query.ts:129