Use path type instead of ol.Coordinate
This commit is contained in:
@@ -211,7 +211,7 @@ function addInteraction() {
|
|||||||
// set sketch
|
// set sketch
|
||||||
sketch = evt.feature;
|
sketch = evt.feature;
|
||||||
|
|
||||||
/** @type {ol.Coordinate|undefined} */
|
/** @type {module:ol/coordinate~Coordinate|undefined} */
|
||||||
let tooltipCoord = evt.coordinate;
|
let tooltipCoord = evt.coordinate;
|
||||||
|
|
||||||
listener = sketch.getGeometry().on('change', function(evt) {
|
listener = sketch.getGeometry().on('change', function(evt) {
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ import Units from './proj/Units.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {Object} AnimationOptions
|
* @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.
|
* the animation.
|
||||||
* @property {number|undefined} zoom The zoom level of the view at the end of the
|
* @property {number|undefined} zoom The zoom level of the view at the end of the
|
||||||
* animation. This takes precedence over `resolution`.
|
* 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.
|
* 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
|
* @property {number|undefined} rotation The rotation of the view at the end of
|
||||||
* the animation.
|
* 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.
|
* during a rotation or resolution animation.
|
||||||
* @property {number} [duration=1000] The duration of the animation in milliseconds.
|
* @property {number} [duration=1000] The duration of the animation in milliseconds.
|
||||||
* @property {function(number):number} [easing] The easing function used
|
* @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}
|
* 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.
|
* lookup table.
|
||||||
* @property {module:ol/extent~Extent} [worldExtent] The world extent for the SRS.
|
* @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
|
* 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 `{number}` resolution at the passed coordinate. If this is `undefined`,
|
||||||
* the default {@link ol.proj#getPointResolution} function will be used.
|
* the default {@link ol.proj#getPointResolution} function will be used.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user