Fix common misspellings

These were found with codespell.
This commit is contained in:
Marc Jansen
2021-03-05 22:53:09 +01:00
parent 890148c3b1
commit df23c234dc
8 changed files with 9 additions and 9 deletions

View File

@@ -396,7 +396,7 @@ class Overlay extends BaseObject {
}
/**
* Pan the map so that the overlay is entirely visisble in the current viewport
* Pan the map so that the overlay is entirely visible in the current viewport
* (if necessary) using the configured autoPan parameters
* @protected
*/

View File

@@ -1016,7 +1016,7 @@ class View extends BaseObject {
}
/**
* Set whether the view shoud allow intermediary zoom levels.
* Set whether the view should allow intermediary zoom levels.
* @param {boolean} enabled Whether the resolution is constrained.
* @api
*/

View File

@@ -159,7 +159,7 @@ const SourceType = {
* `source` property or the `layers` property to limit rendering to a single vector source. The
* `source` property corresponds to the id of a vector source in your Mapbox style.
* @property {Array<string>} [layers] Limit rendering to the list of included layers. All layers
* must share the same vector soource. If your style uses more than one source, you need to use
* must share the same vector source. If your style uses more than one source, you need to use
* either the `source` property or the `layers` property to limit rendering to a single vector
* source.
* @property {boolean} [declutter=true] Declutter images and text. Decluttering is applied to all

View File

@@ -31,7 +31,7 @@ import {getUid} from '../util.js';
* Function that takes an {@link module:ol/Feature} as argument and returns an
* {@link module:ol/geom/Point} as cluster calculation point for the feature. When a
* feature should not be considered for clustering, the function should return
* `null`. The default, which works when the underyling source contains point
* `null`. The default, which works when the underlying source contains point
* features only, is
* ```js
* function(feature) {
@@ -216,7 +216,7 @@ class Cluster extends VectorSource {
/**
* Update the distances and refresh the source if necessary.
* @param {number} distance The new distnce.
* @param {number} distance The new distance.
* @param {number} minDistance The new minimum distance.
*/
updateDistance(distance, minDistance) {

View File

@@ -451,7 +451,7 @@ export function optionsFromCapabilities(wmtsCap, config) {
let selectedMatrixLimit = {
MinTileCol: 0,
MinTileRow: 0,
// substract one to end up at tile top left
// subtract one to end up at tile top left
MaxTileCol: matrix.MatrixWidth - 1,
MaxTileRow: matrix.MatrixHeight - 1,
};

View File

@@ -100,7 +100,7 @@ class LRUCache {
/**
* @param {string} key Key.
* @param {*} [opt_options] Options (reserverd for subclasses).
* @param {*} [opt_options] Options (reserved for subclasses).
* @return {T} Value.
*/
get(key, opt_options) {

View File

@@ -203,7 +203,7 @@ export function compose(transform, dx1, dy1, sx, sy, angle, dx2, dy2) {
/**
* Creates a composite transform given an initial translation, scale, rotation, and
* final translation (in that order only, not commutative). The resulting transform
* string can be applied as `transform` porperty of an HTMLElement's style.
* string can be applied as `transform` property of an HTMLElement's style.
* @param {number} dx1 Initial translation x.
* @param {number} dy1 Initial translation y.
* @param {number} sx Scale factor x.

View File

@@ -1,5 +1,5 @@
/**
* A worker that responds to messages by posting a message with the version identifer.
* A worker that responds to messages by posting a message with the version identifier.
* @module ol/worker/version
*/
import {VERSION} from '../util.js';