@@ -4,7 +4,7 @@
|
||||
|
||||
#### Removal of ol.FeatureStyleFunction
|
||||
|
||||
The signature of the vector style function passed to the feature has changed. The function now always takes the `feature` and the `resolution` as aguments, the `feature` is no longer bound to `this`.
|
||||
The signature of the vector style function passed to the feature has changed. The function now always takes the `feature` and the `resolution` as arguments, the `feature` is no longer bound to `this`.
|
||||
|
||||
Old code:
|
||||
```js
|
||||
|
||||
@@ -344,7 +344,7 @@ View.prototype.applyOptions_ = function(options) {
|
||||
/**
|
||||
* Get an updated version of the view options used to construct the view. The
|
||||
* current resolution (or zoom), center, and rotation are applied to any stored
|
||||
* options. The provided options can be uesd to apply new min/max zoom or
|
||||
* options. The provided options can be used to apply new min/max zoom or
|
||||
* resolution limits.
|
||||
* @param {module:ol/View~ViewOptions} newOptions New options to be applied.
|
||||
* @return {module:ol/View~ViewOptions} New options updated with the current view state.
|
||||
|
||||
@@ -1862,7 +1862,7 @@ KML.prototype.readFeaturesFromNode = function(node, opt_options) {
|
||||
/**
|
||||
* Read the name of the KML.
|
||||
*
|
||||
* @param {Document|Node|string} source Souce.
|
||||
* @param {Document|Node|string} source Source.
|
||||
* @return {string|undefined} Name.
|
||||
* @api
|
||||
*/
|
||||
|
||||
@@ -203,7 +203,7 @@ function readRawFeature(pbf, layer, i) {
|
||||
|
||||
/**
|
||||
* Read the raw geometry from the pbf offset stored in a raw feature's geometry
|
||||
* proeprty.
|
||||
* property.
|
||||
* @suppress {missingProperties}
|
||||
* @param {ol.ext.PBF} pbf PBF.
|
||||
* @param {Object} feature Raw feature.
|
||||
|
||||
@@ -284,7 +284,7 @@ inherits(Modify, PointerInteraction);
|
||||
|
||||
/**
|
||||
* The segment index assigned to a circle's center when
|
||||
* breaking up a cicrle into ModifySegmentDataType segments.
|
||||
* breaking up a circle into ModifySegmentDataType segments.
|
||||
* @type {number}
|
||||
*/
|
||||
const CIRCLE_CENTER_INDEX = 0;
|
||||
|
||||
@@ -207,7 +207,7 @@ export function handleEvent(mapBrowserEvent) {
|
||||
*
|
||||
* The method receives the return code of the "handleDownEvent" function.
|
||||
*
|
||||
* By default this function is the "identity" function. It's overidden in
|
||||
* By default this function is the "identity" function. It's overridden in
|
||||
* child classes.
|
||||
*
|
||||
* @param {boolean} handled Was the event handled by the interaction?
|
||||
|
||||
@@ -253,7 +253,7 @@ ol.PreRenderFunction;
|
||||
|
||||
/**
|
||||
* A function that takes an array of input data, performs some operation, and
|
||||
* returns an array of ouput data.
|
||||
* returns an array of output data.
|
||||
* For `pixel` type operations, the function will be called with an array of
|
||||
* pixels, where each pixel is an array of four numbers (`[r, g, b, a]`) in the
|
||||
* range of 0 - 255. It should return a single pixel array.
|
||||
|
||||
@@ -241,7 +241,7 @@ WebGLContext.prototype.getProgram = function(fragmentShaderObject, vertexShaderO
|
||||
|
||||
|
||||
/**
|
||||
* FIXME empy description for jsdoc
|
||||
* FIXME empty description for jsdoc
|
||||
*/
|
||||
WebGLContext.prototype.handleWebGLContextLost = function() {
|
||||
clear(this.bufferCache_);
|
||||
@@ -255,7 +255,7 @@ WebGLContext.prototype.handleWebGLContextLost = function() {
|
||||
|
||||
|
||||
/**
|
||||
* FIXME empy description for jsdoc
|
||||
* FIXME empty description for jsdoc
|
||||
*/
|
||||
WebGLContext.prototype.handleWebGLContextRestored = function() {
|
||||
};
|
||||
|
||||
@@ -886,7 +886,7 @@ describe('ol.interaction.Draw', function() {
|
||||
draw.freehand_ = true;
|
||||
draw.freehandCondition_ = always;
|
||||
|
||||
// no feture created when not moved
|
||||
// no feature created when not moved
|
||||
simulateEvent('pointermove', 10, 20);
|
||||
simulateEvent('pointerdown', 10, 20);
|
||||
simulateEvent('pointerup', 10, 20);
|
||||
|
||||
@@ -41,7 +41,7 @@ describe('ol.interaction.MouseWheelZoom', function() {
|
||||
interaction.handleWheelZoom_.restore();
|
||||
});
|
||||
|
||||
it('works with the defaut value', function(done) {
|
||||
it('works with the default value', function(done) {
|
||||
const event = new MapBrowserEvent('mousewheel', map, {
|
||||
type: 'mousewheel',
|
||||
target: map.getViewport(),
|
||||
|
||||
@@ -58,7 +58,7 @@ describe('ol.structs.LinkedList', function() {
|
||||
expect(ll.head_.data).to.be(item);
|
||||
});
|
||||
|
||||
it('otherwise sets the cursor to the prevous item', function() {
|
||||
it('otherwise sets the cursor to the previous item', function() {
|
||||
ll = new LinkedList(false);
|
||||
ll.insertItem(item);
|
||||
ll.insertItem(item2);
|
||||
|
||||
Reference in New Issue
Block a user