Get rid of olx.js and typedef.js typedefs for ol

This commit is contained in:
Andreas Hocevar
2018-03-08 18:42:57 +01:00
parent 8f0ffe2043
commit 95d6251dbb
198 changed files with 2262 additions and 2698 deletions

View File

@@ -4,9 +4,15 @@
import {linearFindNearest} from './array.js';
import {clamp} from './math.js';
/**
* @typedef {function((number|undefined), number, number): (number|undefined)} Type
*/
/**
* @param {Array.<number>} resolutions Resolutions.
* @return {ol.ResolutionConstraintType} Zoom function.
* @return {module:ol/resolutionconstraint~Type} Zoom function.
*/
export function createSnapToResolutions(resolutions) {
return (
@@ -39,7 +45,7 @@ export function createSnapToResolutions(resolutions) {
* @param {number} power Power.
* @param {number} maxResolution Maximum resolution.
* @param {number=} opt_maxLevel Maximum level.
* @return {ol.ResolutionConstraintType} Zoom function.
* @return {module:ol/resolutionconstraint~Type} Zoom function.
*/
export function createSnapToPower(power, maxResolution, opt_maxLevel) {
return (