Use path type instead of ol.Coordinate
This commit is contained in:
@@ -211,7 +211,7 @@ function addInteraction() {
|
||||
// set sketch
|
||||
sketch = evt.feature;
|
||||
|
||||
/** @type {ol.Coordinate|undefined} */
|
||||
/** @type {module:ol/coordinate~Coordinate|undefined} */
|
||||
let tooltipCoord = evt.coordinate;
|
||||
|
||||
listener = sketch.getGeometry().on('change', function(evt) {
|
||||
|
||||
@@ -136,7 +136,7 @@ import Units from './proj/Units.js';
|
||||
|
||||
/**
|
||||
* @typedef {Object} AnimationOptions
|
||||
* @property {ol.Coordinate|undefined} center The center of the view at the end of
|
||||
* @property {module:ol/coordinate~Coordinate|undefined} center The center of the view at the end of
|
||||
* the animation.
|
||||
* @property {number|undefined} zoom The zoom level of the view at the end of the
|
||||
* animation. This takes precedence over `resolution`.
|
||||
@@ -144,7 +144,7 @@ import Units from './proj/Units.js';
|
||||
* of the animation. If `zoom` is also provided, this option will be ignored.
|
||||
* @property {number|undefined} rotation The rotation of the view at the end of
|
||||
* the animation.
|
||||
* @property {ol.Coordinate|undefined} anchor Optional anchor to remained fixed
|
||||
* @property {module:ol/coordinate~Coordinate|undefined} anchor Optional anchor to remained fixed
|
||||
* during a rotation or resolution animation.
|
||||
* @property {number} [duration=1000] The duration of the animation in milliseconds.
|
||||
* @property {function(number):number} [easing] The easing function used
|
||||
|
||||
@@ -18,9 +18,9 @@ import {METERS_PER_UNIT} from '../proj/Units.js';
|
||||
* If not provided, the `units` are used to get the meters per unit from the {@link module:ol/proj/Units~METERS_PER_UNIT}
|
||||
* lookup table.
|
||||
* @property {module:ol/extent~Extent} [worldExtent] The world extent for the SRS.
|
||||
* @property {(function(number, ol.Coordinate):number|undefined)} getPointResolution
|
||||
* @property {(function(number, module:ol/coordinate~Coordinate):number|undefined)} getPointResolution
|
||||
* Function to determine resolution at a point. The function is called with a
|
||||
* `{number}` view resolution and an `{ol.Coordinate}` as arguments, and returns
|
||||
* `{number}` view resolution and an `{module:ol/coordinate~Coordinate}` as arguments, and returns
|
||||
* the `{number}` resolution at the passed coordinate. If this is `undefined`,
|
||||
* the default {@link ol.proj#getPointResolution} function will be used.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user