Remove remaining ol.foo notation from the source
This commit is contained in:
@@ -24,7 +24,7 @@ import RBush from '../structs/RBush.js';
|
||||
/**
|
||||
* A function that takes an {@link module:ol/extent~Extent} and a resolution as arguments, and
|
||||
* returns an array of {@link module:ol/extent~Extent} with the extents to load. Usually this
|
||||
* is one of the standard {@link ol.loadingstrategy} strategies.
|
||||
* is one of the standard {@link module:ol/loadingstrategy} strategies.
|
||||
*
|
||||
* @typedef {function(module:ol/extent~Extent, number): Array.<module:ol/extent~Extent>} LoadingStrategy
|
||||
* @api
|
||||
@@ -73,8 +73,12 @@ inherits(VectorSourceEvent, Event);
|
||||
* Example:
|
||||
*
|
||||
* ```js
|
||||
* var vectorSource = new VectorSource({
|
||||
* format: new ol.format.GeoJSON(),
|
||||
* import {Vector} from 'ol/source';
|
||||
* import {GeoJSON} from 'ol/format';
|
||||
* import {bbox} from 'ol/loadingstrategy';
|
||||
*
|
||||
* var vectorSource = new Vector({
|
||||
* format: new GeoJSON(),
|
||||
* loader: function(extent, resolution, projection) {
|
||||
* var proj = projection.getCode();
|
||||
* var url = 'https://ahocevar.com/geoserver/wfs?service=WFS&' +
|
||||
@@ -97,7 +101,7 @@ inherits(VectorSourceEvent, Event);
|
||||
* }
|
||||
* xhr.send();
|
||||
* },
|
||||
* strategy: ol.loadingstrategy.bbox
|
||||
* strategy: bbox
|
||||
* });
|
||||
* ```
|
||||
* @property {boolean} [overlaps=true] This source may have overlapping geometries.
|
||||
@@ -105,12 +109,12 @@ inherits(VectorSourceEvent, Event);
|
||||
* boundaries or TopoJSON sources) allows the renderer to optimise fill and
|
||||
* stroke operations.
|
||||
* @property {module:ol/source/Vector~LoadingStrategy} [strategy] The loading strategy to use.
|
||||
* By default an {@link ol.loadingstrategy.all}
|
||||
* By default an {@link module:ol/loadingstrategy~all}
|
||||
* strategy is used, a one-off strategy which loads all features at once.
|
||||
* @property {string|module:ol/featureloader~FeatureUrlfunction} [url]
|
||||
* Setting this option instructs the source to load features using an XHR loader
|
||||
* (see {@link ol.featureloader.xhr}). Use a `string` and an
|
||||
* {@link ol.loadingstrategy.all} for a one-off download of all features from
|
||||
* (see {@link module:ol/featureloader~xhr}). Use a `string` and an
|
||||
* {@link module:ol/loadingstrategy~all} for a one-off download of all features from
|
||||
* the given URL. Use a {@link module:ol/featureloader~FeatureUrlfunction} to generate the url with
|
||||
* other loading strategies.
|
||||
* Requires `format` to be set as well.
|
||||
@@ -233,7 +237,7 @@ const VectorSource = function(opt_options) {
|
||||
this.idIndex_ = {};
|
||||
|
||||
/**
|
||||
* A lookup of features without id (keyed by ol.getUid(feature)).
|
||||
* A lookup of features without id (keyed by getUid(feature)).
|
||||
* @private
|
||||
* @type {!Object.<string, module:ol/Feature>}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user