# Module: ol/loadingstrategy

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/loadingstrategy

    import * as olLoadingstrategy from 'ol/loadingstrategy';

### Functions

#### all(extent, resolution){Array<Extent>}

loadingstrategy.js, line 14

      import {all} from 'ol/loadingstrategy';

  Strategy function for loading all features with a single request.

  Name | Type | Description
  --- | --- | ---
  `extent` | Extent | Extent.
  `resolution` | number | Resolution.

  ##### Returns:

  Extents.

#### bbox(extent, resolution){Array<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` | Extent | Extent.
  `resolution` | number | Resolution.

  ##### Returns:

  Extents.

#### tile(tileGrid){function}

loadingstrategy.js, line 36

      import {tile} from 'ol/loadingstrategy';

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

  Name | Type | Description
  --- | --- | ---
  `tileGrid` | TileGrid | Tile grid.

  ##### Returns:

  Loading strategy.