Module: ol/loadingstrategy

ol/loadingstrategy


import * as olLoadingstrategy from 'ol/loadingstrategy';

Methods

module:ol/loadingstrategy.all(extent, resolution){Array.<module:ol/extent~Extent>}

loadingstrategy.js, line 13
import {all} from 'ol/loadingstrategy';

Strategy function for loading all features with a single request.

Name Type Description
extent module:ol/extent~Extent

Extent.

resolution number

Resolution.

Returns:
Extents.

module:ol/loadingstrategy.bbox(extent, resolution){Array.<module:ol/extent~Extent>}

loadingstrategy.js, line 26
import {bbox} from 'ol/loadingstrategy';

Strategy function for loading features based on the view's extent and resolution.

Name Type Description
extent module:ol/extent~Extent

Extent.

resolution number

Resolution.

Returns:
Extents.

module:ol/loadingstrategy.tile(tileGrid){function}

loadingstrategy.js, line 37
import {tile} from 'ol/loadingstrategy';

Creates a strategy function for loading features based on a tile grid.

Name Type Description
tileGrid module:ol/tilegrid/TileGrid~TileGrid

Tile grid.

Returns:
Loading strategy.