Namespace: loadingstrategy

ol.loadingstrategy


import loadingstrategy from 'ol/loadingstrategy';

Strategies for loading vector data.

Methods

ol.loadingstrategy.all(extent, resolution){Array.<ol.Extent>}

src/ol/loadingstrategy.js, line 11

Strategy function for loading all features with a single request.

Name Type Description
extent ol.Extent

Extent.

resolution number

Resolution.

Returns:
Extents.

ol.loadingstrategy.bbox(extent, resolution){Array.<ol.Extent>}

src/ol/loadingstrategy.js, line 24

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

Name Type Description
extent ol.Extent

Extent.

resolution number

Resolution.

Returns:
Extents.

ol.loadingstrategy.tile(tileGrid){function}

src/ol/loadingstrategy.js, line 35

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

Name Type Description
tileGrid ol.tilegrid.TileGrid

Tile grid.

Returns:
Loading strategy.