OpenLayers v4.0.1 API - Namespace: featureloader

# Namespace: featureloader

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.featureloader

Loading mechanisms for vector data.

### Methods

#### ol.featureloader.xhr(url, format){ol.FeatureLoader}

src/ol/featureloader.js, line 81

  Create an XHR feature loader for a `url` and `format`. The feature loader loads features (with XHR), parses the features, and adds them to the vector source.

  Name | Type | Description
  --- | --- | ---
  `url` | string | ol.FeatureUrlFunction | Feature URL service.
  `format` | ol.format.Feature | Feature format.

  ##### Returns:

  The feature loader.