Clarification and use callbacks in examples
This commit is contained in:
@@ -19,8 +19,8 @@ let withCredentials = false;
|
||||
* the area to be loaded, a `{number}` representing the resolution (map units per pixel), an
|
||||
* {@link module:ol/proj/Projection} for the projection, an optional success callback that should get
|
||||
* the loaded features passed as an argument and an optional failure callback with no arguments. If
|
||||
* the callbacks are not used, the corresponding vector source will not fire `'featuresloadstart'`,
|
||||
* `'featuresloadend'` and `'featuresloaderror'` events. `this` within the function is bound to the
|
||||
* the callbacks are not used, the corresponding vector source will not fire `'featuresloadend'` and
|
||||
* `'featuresloaderror'` events. `this` within the function is bound to the
|
||||
* {@link module:ol/source/Vector} it's called from.
|
||||
*
|
||||
* The function is responsible for loading the features and adding them to the
|
||||
|
||||
@@ -72,7 +72,7 @@ export class VectorSourceEvent extends Event {
|
||||
* @property {import("../featureloader.js").FeatureLoader} [loader]
|
||||
* The loader function used to load features, from a remote source for example.
|
||||
* If this is not set and `url` is set, the source will create and use an XHR
|
||||
* feature loader. The `'featuresloadstart'`, `'featuresloadend'` and `'featuresloaderror'` events
|
||||
* feature loader. The `'featuresloadend'` and `'featuresloaderror'` events
|
||||
* will only fire if the `success` and `failure` callbacks are used.
|
||||
*
|
||||
* Example:
|
||||
|
||||
Reference in New Issue
Block a user