Namespace: featureloader

ol.featureloader


import featureloader from 'ol/featureloader';

Loading mechanisms for vector data.

Methods

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

src/ol/featureloader.js, line 87

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.