Module types for ol/geom

This commit is contained in:
Tim Schaub
2018-03-11 23:08:50 -06:00
parent 41d9a84a8f
commit ef70d71636
60 changed files with 482 additions and 482 deletions

View File

@@ -51,13 +51,13 @@ const Cluster = function(options) {
/**
* @param {ol.Feature} feature Feature.
* @return {ol.geom.Point} Cluster calculation point.
* @return {module:ol/geom/Point~Point} Cluster calculation point.
* @protected
*/
this.geometryFunction = options.geometryFunction || function(feature) {
const geometry = /** @type {ol.geom.Point} */ (feature.getGeometry());
const geometry = /** @type {module:ol/geom/Point~Point} */ (feature.getGeometry());
assert(geometry instanceof Point,
10); // The default `geometryFunction` can only handle `ol.geom.Point` geometries
10); // The default `geometryFunction` can only handle `module:ol/geom/Point~Point` geometries
return geometry;
};