Module types for ol/proj

This commit is contained in:
Tim Schaub
2018-03-11 23:20:25 -06:00
parent ef70d71636
commit a743ec3989
49 changed files with 103 additions and 103 deletions

2
examples/d3.js vendored
View File

@@ -37,7 +37,7 @@ d3.json('data/topojson/us.json', function(error, us) {
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.Size} size Size. * @param {ol.Size} size Size.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {HTMLCanvasElement} A canvas element. * @return {HTMLCanvasElement} A canvas element.
*/ */
const canvasFunction = function(extent, resolution, pixelRatio, size, projection) { const canvasFunction = function(extent, resolution, pixelRatio, size, projection) {

View File

@@ -10,7 +10,7 @@ import TileWMS from '../src/ol/source/TileWMS.js';
// By default OpenLayers does not know about the EPSG:21781 (Swiss) projection. // By default OpenLayers does not know about the EPSG:21781 (Swiss) projection.
// So we create a projection instance for EPSG:21781 and pass it to // So we create a projection instance for EPSG:21781 and pass it to
// ol.proj.addProjection to make it available to the library for lookup by its // ol/proj~addProjection to make it available to the library for lookup by its
// code. // code.
const projection = new Projection({ const projection = new Projection({
@@ -23,7 +23,7 @@ const projection = new Projection({
addProjection(projection); addProjection(projection);
// We also declare EPSG:21781/EPSG:4326 transform functions. These functions // We also declare EPSG:21781/EPSG:4326 transform functions. These functions
// are necessary for the ScaleLine control and when calling ol.proj.transform // are necessary for the ScaleLine control and when calling ol/proj~transform
// for setting the view's initial center (see below). // for setting the view's initial center (see below).
addCoordinateTransforms('EPSG:4326', projection, addCoordinateTransforms('EPSG:4326', projection,

View File

@@ -254,7 +254,7 @@ oli.interaction.DragAndDropEvent.prototype.features;
/** /**
* @type {ol.proj.Projection|undefined} * @type {module:ol/proj/Projection~Projection|undefined}
*/ */
oli.interaction.DragAndDropEvent.prototype.projection; oli.interaction.DragAndDropEvent.prototype.projection;

View File

@@ -2885,7 +2885,7 @@ olx.source.ImageCanvasOptions.prototype.attributions;
* Canvas function. The function returning the canvas element used by the source * Canvas function. The function returning the canvas element used by the source
* as an image. The arguments passed to the function are: `{ol.Extent}` the * as an image. The arguments passed to the function are: `{ol.Extent}` the
* image extent, `{number}` the image resolution, `{number}` the device pixel * image extent, `{number}` the image resolution, `{number}` the device pixel
* ratio, `{ol.Size}` the image size, and `{ol.proj.Projection}` the image * ratio, `{ol.Size}` the image size, and `{module:ol/proj/Projection~Projection}` the image
* projection. The canvas returned by this function is cached by the source. If * projection. The canvas returned by this function is cached by the source. If
* the value returned by the function is later changed then * the value returned by the function is later changed then
* `dispatchChangeEvent` should be called on the source for the source to * `dispatchChangeEvent` should be called on the source for the source to
@@ -5385,7 +5385,7 @@ olx.tilegrid.XYZOptions.prototype.tileSize;
/** /**
* @typedef {{center: ol.Coordinate, * @typedef {{center: ol.Coordinate,
* projection: ol.proj.Projection, * projection: module:ol/proj/Projection~Projection,
* resolution: number, * resolution: number,
* rotation: number, * rotation: number,
* zoom: number}} * zoom: number}}
@@ -5401,7 +5401,7 @@ olx.ViewState.prototype.center;
/** /**
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
* @api * @api
*/ */
olx.ViewState.prototype.projection; olx.ViewState.prototype.projection;

View File

@@ -755,7 +755,7 @@
* @property {ol.CanvasFunctionType} canvasFunction Canvas function. The function returning the canvas element used by the source * @property {ol.CanvasFunctionType} canvasFunction Canvas function. The function returning the canvas element used by the source
* as an image. The arguments passed to the function are: `{ol.Extent}` the * as an image. The arguments passed to the function are: `{ol.Extent}` the
* image extent, `{number}` the image resolution, `{number}` the device pixel * image extent, `{number}` the image resolution, `{number}` the device pixel
* ratio, `{ol.Size}` the image size, and `{ol.proj.Projection}` the image * ratio, `{ol.Size}` the image size, and `{module:ol/proj/Projection~Projection}` the image
* projection. The canvas returned by this function is cached by the source. If * projection. The canvas returned by this function is cached by the source. If
* the value returned by the function is later changed then * the value returned by the function is later changed then
* `dispatchChangeEvent` should be called on the source for the source to * `dispatchChangeEvent` should be called on the source for the source to
@@ -1453,7 +1453,7 @@
/** /**
* @typedef {Object} ViewState * @typedef {Object} ViewState
* @property {ol.Coordinate} center * @property {ol.Coordinate} center
* @property {ol.proj.Projection} projection * @property {module:ol/proj/Projection~Projection} projection
* @property {number} resolution * @property {number} resolution
* @property {number} rotation * @property {number} rotation
* @property {number} zoom The current zoom level. * @property {number} zoom The current zoom level.

View File

@@ -89,7 +89,7 @@ const MousePosition = function(opt_options) {
/** /**
* @private * @private
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.mapProjection_ = null; this.mapProjection_ = null;
@@ -153,13 +153,13 @@ MousePosition.prototype.getCoordinateFormat = function() {
/** /**
* Return the projection that is used to report the mouse position. * Return the projection that is used to report the mouse position.
* @return {ol.proj.Projection|undefined} The projection to report mouse * @return {module:ol/proj/Projection~Projection|undefined} The projection to report mouse
* position in. * position in.
* @observable * @observable
* @api * @api
*/ */
MousePosition.prototype.getProjection = function() { MousePosition.prototype.getProjection = function() {
return /** @type {ol.proj.Projection|undefined} */ (this.get(PROJECTION)); return /** @type {module:ol/proj/Projection~Projection|undefined} */ (this.get(PROJECTION));
}; };

View File

@@ -500,7 +500,7 @@ EsriJSON.prototype.readGeometryFromObject = function(object, opt_options) {
* *
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
EsriJSON.prototype.readProjection; EsriJSON.prototype.readProjection;

View File

@@ -64,13 +64,13 @@ const FeatureFormat = function() {
/** /**
* @protected * @protected
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.defaultDataProjection = null; this.defaultDataProjection = null;
/** /**
* @protected * @protected
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.defaultFeatureProjection = null; this.defaultFeatureProjection = null;
@@ -168,7 +168,7 @@ FeatureFormat.prototype.readGeometry = function(source, opt_options) {};
* *
* @abstract * @abstract
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
*/ */
FeatureFormat.prototype.readProjection = function(source) {}; FeatureFormat.prototype.readProjection = function(source) {};

View File

@@ -705,7 +705,7 @@ GPX.prototype.readFeaturesFromNode = function(node, opt_options) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
GPX.prototype.readProjection; GPX.prototype.readProjection;

View File

@@ -438,7 +438,7 @@ GeoJSON.prototype.readGeometryFromObject = function(object, opt_options) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
GeoJSON.prototype.readProjection; GeoJSON.prototype.readProjection;
@@ -460,7 +460,7 @@ GeoJSON.prototype.readProjectionFromObject = function(object) {
} else { } else {
projection = this.defaultDataProjection; projection = this.defaultDataProjection;
} }
return /** @type {ol.proj.Projection} */ (projection); return /** @type {module:ol/proj/Projection~Projection} */ (projection);
}; };

View File

@@ -209,7 +209,7 @@ IGC.prototype.readFeaturesFromText = function(text, opt_options) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
IGC.prototype.readProjection; IGC.prototype.readProjection;

View File

@@ -115,7 +115,7 @@ JSONFeature.prototype.readProjection = function(source) {
* @abstract * @abstract
* @param {Object} object Object. * @param {Object} object Object.
* @protected * @protected
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
*/ */
JSONFeature.prototype.readProjectionFromObject = function(object) {}; JSONFeature.prototype.readProjectionFromObject = function(object) {};

View File

@@ -2061,7 +2061,7 @@ KML.prototype.readRegionFromNode = function(node) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
KML.prototype.readProjection; KML.prototype.readProjection;

View File

@@ -54,7 +54,7 @@ const MVT = function(opt_options) {
const options = opt_options ? opt_options : {}; const options = opt_options ? opt_options : {};
/** /**
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.defaultDataProjection = new Projection({ this.defaultDataProjection = new Projection({
code: '', code: '',

View File

@@ -201,7 +201,7 @@ OSMXML.prototype.readFeaturesFromNode = function(node, opt_options) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
OSMXML.prototype.readProjection; OSMXML.prototype.readProjection;

View File

@@ -342,7 +342,7 @@ Polyline.prototype.readGeometryFromText = function(text, opt_options) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
Polyline.prototype.readProjection; Polyline.prototype.readProjection;

View File

@@ -108,7 +108,7 @@ TextFeature.prototype.readProjection = function(source) {
/** /**
* @param {string} text Text. * @param {string} text Text.
* @protected * @protected
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
*/ */
TextFeature.prototype.readProjectionFromText = function(text) { TextFeature.prototype.readProjectionFromText = function(text) {
return this.defaultDataProjection; return this.defaultDataProjection;

View File

@@ -406,7 +406,7 @@ function transformVertex(vertex, scale, translate) {
* Read the projection from a TopoJSON source. * Read the projection from a TopoJSON source.
* *
* @param {Document|Node|Object|string} object Source. * @param {Document|Node|Object|string} object Source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @override * @override
* @api * @api
*/ */

View File

@@ -1069,7 +1069,7 @@ WFS.prototype.writeTransaction = function(inserts, updates, deletes, options) {
* *
* @function * @function
* @param {Document|Node|Object|string} source Source. * @param {Document|Node|Object|string} source Source.
* @return {?ol.proj.Projection} Projection. * @return {?module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
WFS.prototype.readProjection; WFS.prototype.readProjection;

View File

@@ -187,7 +187,7 @@ XMLFeature.prototype.readProjection = function(source) {
/** /**
* @param {Document} doc Document. * @param {Document} doc Document.
* @protected * @protected
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
*/ */
XMLFeature.prototype.readProjectionFromDocument = function(doc) { XMLFeature.prototype.readProjectionFromDocument = function(doc) {
return this.defaultDataProjection; return this.defaultDataProjection;
@@ -197,7 +197,7 @@ XMLFeature.prototype.readProjectionFromDocument = function(doc) {
/** /**
* @param {Node} node Node. * @param {Node} node Node.
* @protected * @protected
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
*/ */
XMLFeature.prototype.readProjectionFromNode = function(node) { XMLFeature.prototype.readProjectionFromNode = function(node) {
return this.defaultDataProjection; return this.defaultDataProjection;

View File

@@ -251,9 +251,9 @@ Circle.prototype.setRadius = function(radius) {
* of the original circle. * of the original circle.
* *
* @param {module:ol/proj~ProjectionLike} source The current projection. Can be a * @param {module:ol/proj~ProjectionLike} source The current projection. Can be a
* string identifier or a {@link ol.proj.Projection} object. * string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @param {module:ol/proj~ProjectionLike} destination The desired projection. Can be a * @param {module:ol/proj~ProjectionLike} destination The desired projection. Can be a
* string identifier or a {@link ol.proj.Projection} object. * string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @return {module:ol/geom/Circle~Circle} This geometry. Note that original geometry is * @return {module:ol/geom/Circle~Circle} This geometry. Note that original geometry is
* modified in place. * modified in place.
* @function * @function

View File

@@ -246,9 +246,9 @@ Geometry.prototype.translate = function(deltaX, deltaY) {};
* then use this function on the clone. * then use this function on the clone.
* *
* @param {module:ol/proj~ProjectionLike} source The current projection. Can be a * @param {module:ol/proj~ProjectionLike} source The current projection. Can be a
* string identifier or a {@link ol.proj.Projection} object. * string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @param {module:ol/proj~ProjectionLike} destination The desired projection. Can be a * @param {module:ol/proj~ProjectionLike} destination The desired projection. Can be a
* string identifier or a {@link ol.proj.Projection} object. * string identifier or a {@link module:ol/proj/Projection~Projection} object.
* @return {module:ol/geom/Geometry~Geometry} This geometry. Note that original geometry is * @return {module:ol/geom/Geometry~Geometry} This geometry. Note that original geometry is
* modified in place. * modified in place.
* @api * @api

View File

@@ -84,7 +84,7 @@ function line(interpolate, transform, squaredTolerance) {
* @param {number} lat1 Latitude 1 in degrees. * @param {number} lat1 Latitude 1 in degrees.
* @param {number} lon2 Longitude 2 in degrees. * @param {number} lon2 Longitude 2 in degrees.
* @param {number} lat2 Latitude 2 in degrees. * @param {number} lat2 Latitude 2 in degrees.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {number} squaredTolerance Squared tolerance. * @param {number} squaredTolerance Squared tolerance.
* @return {Array.<number>} Flat coordinates. * @return {Array.<number>} Flat coordinates.
*/ */
@@ -128,7 +128,7 @@ export function greatCircleArc(lon1, lat1, lon2, lat2, projection, squaredTolera
* @param {number} lon Longitude. * @param {number} lon Longitude.
* @param {number} lat1 Latitude 1. * @param {number} lat1 Latitude 1.
* @param {number} lat2 Latitude 2. * @param {number} lat2 Latitude 2.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {number} squaredTolerance Squared tolerance. * @param {number} squaredTolerance Squared tolerance.
* @return {Array.<number>} Flat coordinates. * @return {Array.<number>} Flat coordinates.
*/ */
@@ -151,7 +151,7 @@ export function meridian(lon, lat1, lat2, projection, squaredTolerance) {
* @param {number} lat Latitude. * @param {number} lat Latitude.
* @param {number} lon1 Longitude 1. * @param {number} lon1 Longitude 1.
* @param {number} lon2 Longitude 2. * @param {number} lon2 Longitude 2.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {number} squaredTolerance Squared tolerance. * @param {number} squaredTolerance Squared tolerance.
* @return {Array.<number>} Flat coordinates. * @return {Array.<number>} Flat coordinates.
*/ */

View File

@@ -36,7 +36,7 @@ const DragAndDropEventType = {
* @param {ol.interaction.DragAndDropEventType} type Type. * @param {ol.interaction.DragAndDropEventType} type Type.
* @param {File} file File. * @param {File} file File.
* @param {Array.<ol.Feature>=} opt_features Features. * @param {Array.<ol.Feature>=} opt_features Features.
* @param {ol.proj.Projection=} opt_projection Projection. * @param {module:ol/proj/Projection~Projection=} opt_projection Projection.
*/ */
const DragAndDropEvent = function(type, file, opt_features, opt_projection) { const DragAndDropEvent = function(type, file, opt_features, opt_projection) {
@@ -58,7 +58,7 @@ const DragAndDropEvent = function(type, file, opt_features, opt_projection) {
/** /**
* The feature projection. * The feature projection.
* @type {ol.proj.Projection|undefined} * @type {module:ol/proj/Projection~Projection|undefined}
* @api * @api
*/ */
this.projection = opt_projection; this.projection = opt_projection;
@@ -94,7 +94,7 @@ const DragAndDrop = function(opt_options) {
/** /**
* @private * @private
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.projection_ = options.projection ? this.projection_ = options.projection ?
getProjection(options.projection) : null; getProjection(options.projection) : null;

View File

@@ -7,7 +7,7 @@ import {METERS_PER_UNIT} from '../proj/Units.js';
/** /**
* @typedef {Object} Options * @typedef {Object} Options
* @property {string} code The SRS identifier code, e.g. `EPSG:4326`. * @property {string} code The SRS identifier code, e.g. `EPSG:4326`.
* @property {ol.proj.Units|string|undefined} units Units. Required unless a * @property {module:ol/proj/Units~Units|string|undefined} units Units. Required unless a
* proj4 projection is defined for `code`. * proj4 projection is defined for `code`.
* @property {ol.Extent|undefined} extent The validity extent for the SRS. * @property {ol.Extent|undefined} extent The validity extent for the SRS.
* @property {string|undefined} axisOrientation The axis orientation as specified * @property {string|undefined} axisOrientation The axis orientation as specified
@@ -15,7 +15,7 @@ import {METERS_PER_UNIT} from '../proj/Units.js';
* @property {boolean|undefined} global Whether the projection is valid for the * @property {boolean|undefined} global Whether the projection is valid for the
* whole globe. Default is `false`. * whole globe. Default is `false`.
* @property {number|undefined} metersPerUnit The meters per unit for the SRS. * @property {number|undefined} metersPerUnit The meters per unit for the SRS.
* If not provided, the `units` are used to get the meters per unit from the {@link ol.proj.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 {ol.Extent|undefined} worldExtent The world extent for the SRS. * @property {ol.Extent|undefined} worldExtent The world extent for the SRS.
* @property {(function(number, ol.Coordinate):number|undefined)} getPointResolution * @property {(function(number, ol.Coordinate):number|undefined)} getPointResolution
@@ -34,7 +34,7 @@ import {METERS_PER_UNIT} from '../proj/Units.js';
* and options use {@link module:ol/proj~ProjectionLike} which means the simple string * and options use {@link module:ol/proj~ProjectionLike} which means the simple string
* code will suffice. * code will suffice.
* *
* You can use {@link ol.proj.get} to retrieve the object for a particular * You can use {@link module:ol/proj~get} to retrieve the object for a particular
* projection. * projection.
* *
* The library includes definitions for `EPSG:4326` and `EPSG:3857`, together * The library includes definitions for `EPSG:4326` and `EPSG:3857`, together
@@ -49,7 +49,7 @@ import {METERS_PER_UNIT} from '../proj/Units.js';
* *
* If you use proj4js, aliases can be added using `proj4.defs()`; see * If you use proj4js, aliases can be added using `proj4.defs()`; see
* [documentation](https://github.com/proj4js/proj4js). To set an alternative * [documentation](https://github.com/proj4js/proj4js). To set an alternative
* namespace for proj4, use {@link ol.proj.setProj4}. * namespace for proj4, use {@link module:ol/proj~setProj4}.
* *
* @constructor * @constructor
* @param {module:ol/proj/Projection~Options} options Projection options. * @param {module:ol/proj/Projection~Options} options Projection options.
@@ -64,17 +64,17 @@ const Projection = function(options) {
this.code_ = options.code; this.code_ = options.code;
/** /**
* Units of projected coordinates. When set to `ol.proj.Units.TILE_PIXELS`, a * Units of projected coordinates. When set to `TILE_PIXELS`, a
* `this.extent_` and `this.worldExtent_` must be configured properly for each * `this.extent_` and `this.worldExtent_` must be configured properly for each
* tile. * tile.
* @private * @private
* @type {ol.proj.Units} * @type {module:ol/proj/Units~Units}
*/ */
this.units_ = /** @type {ol.proj.Units} */ (options.units); this.units_ = /** @type {module:ol/proj/Units~Units} */ (options.units);
/** /**
* Validity extent of the projection in projected coordinates. For projections * Validity extent of the projection in projected coordinates. For projections
* with `ol.proj.Units.TILE_PIXELS` units, this is the extent of the tile in * with `TILE_PIXELS` units, this is the extent of the tile in
* tile pixel space. * tile pixel space.
* @private * @private
* @type {module:ol/extent~Extent} * @type {module:ol/extent~Extent}
@@ -83,7 +83,7 @@ const Projection = function(options) {
/** /**
* Extent of the world in EPSG:4326. For projections with * Extent of the world in EPSG:4326. For projections with
* `ol.proj.Units.TILE_PIXELS` units, this is the extent of the tile in * `TILE_PIXELS` units, this is the extent of the tile in
* projected coordinate space. * projected coordinate space.
* @private * @private
* @type {module:ol/extent~Extent} * @type {module:ol/extent~Extent}
@@ -160,7 +160,7 @@ Projection.prototype.getExtent = function() {
/** /**
* Get the units of this projection. * Get the units of this projection.
* @return {ol.proj.Units} Units. * @return {module:ol/proj/Units~Units} Units.
* @api * @api
*/ */
Projection.prototype.getUnits = function() { Projection.prototype.getUnits = function() {

View File

@@ -20,7 +20,7 @@ const Units = {
/** /**
* Meters per unit lookup table. * Meters per unit lookup table.
* @const * @const
* @type {Object.<ol.proj.Units, number>} * @type {Object.<module:ol/proj/Units~Units, number>}
* @api * @api
*/ */
export const METERS_PER_UNIT = {}; export const METERS_PER_UNIT = {};

View File

@@ -45,7 +45,7 @@ export const WORLD_EXTENT = [-180, -85, 180, 85];
* Projection object for web/spherical Mercator (EPSG:3857). * Projection object for web/spherical Mercator (EPSG:3857).
* *
* @constructor * @constructor
* @extends {ol.proj.Projection} * @extends {module:ol/proj/Projection~Projection}
* @param {string} code Code. * @param {string} code Code.
*/ */
function EPSG3857Projection(code) { function EPSG3857Projection(code) {
@@ -67,7 +67,7 @@ inherits(EPSG3857Projection, Projection);
* Projections equal to EPSG:3857. * Projections equal to EPSG:3857.
* *
* @const * @const
* @type {Array.<ol.proj.Projection>} * @type {Array.<module:ol/proj/Projection~Projection>}
*/ */
export const PROJECTIONS = [ export const PROJECTIONS = [
new EPSG3857Projection('EPSG:3857'), new EPSG3857Projection('EPSG:3857'),

View File

@@ -40,7 +40,7 @@ export const METERS_PER_UNIT = Math.PI * RADIUS / 180;
* OpenLayers treats EPSG:4326 as a pseudo-projection, with x,y coordinates. * OpenLayers treats EPSG:4326 as a pseudo-projection, with x,y coordinates.
* *
* @constructor * @constructor
* @extends {ol.proj.Projection} * @extends {module:ol/proj/Projection~Projection}
* @param {string} code Code. * @param {string} code Code.
* @param {string=} opt_axisOrientation Axis orientation. * @param {string=} opt_axisOrientation Axis orientation.
*/ */
@@ -62,7 +62,7 @@ inherits(EPSG4326Projection, Projection);
* Projections equal to EPSG:4326. * Projections equal to EPSG:4326.
* *
* @const * @const
* @type {Array.<ol.proj.Projection>} * @type {Array.<module:ol/proj/Projection~Projection>}
*/ */
export const PROJECTIONS = [ export const PROJECTIONS = [
new EPSG4326Projection('CRS:84'), new EPSG4326Projection('CRS:84'),

View File

@@ -4,7 +4,7 @@
/** /**
* @type {Object.<string, ol.proj.Projection>} * @type {Object.<string, module:ol/proj/Projection~Projection>}
*/ */
let cache = {}; let cache = {};
@@ -20,7 +20,7 @@ export function clear() {
/** /**
* Get a cached projection by code. * Get a cached projection by code.
* @param {string} code The code for the projection. * @param {string} code The code for the projection.
* @return {ol.proj.Projection} The projection (if cached). * @return {module:ol/proj/Projection~Projection} The projection (if cached).
*/ */
export function get(code) { export function get(code) {
return cache[code] || null; return cache[code] || null;
@@ -30,7 +30,7 @@ export function get(code) {
/** /**
* Add a projection to the cache. * Add a projection to the cache.
* @param {string} code The projection code. * @param {string} code The projection code.
* @param {ol.proj.Projection} projection The projection to cache. * @param {module:ol/proj/Projection~Projection} projection The projection to cache.
*/ */
export function add(code, projection) { export function add(code, projection) {
cache[code] = projection; cache[code] = projection;

View File

@@ -23,8 +23,8 @@ export function clear() {
* Registers a conversion function to convert coordinates from the source * Registers a conversion function to convert coordinates from the source
* projection to the destination projection. * projection to the destination projection.
* *
* @param {ol.proj.Projection} source Source. * @param {module:ol/proj/Projection~Projection} source Source.
* @param {ol.proj.Projection} destination Destination. * @param {module:ol/proj/Projection~Projection} destination Destination.
* @param {module:ol/proj~TransformFunction} transformFn Transform. * @param {module:ol/proj~TransformFunction} transformFn Transform.
*/ */
export function add(source, destination, transformFn) { export function add(source, destination, transformFn) {
@@ -42,8 +42,8 @@ export function add(source, destination, transformFn) {
* projection to the destination projection. This method is used to clean up * projection to the destination projection. This method is used to clean up
* cached transforms during testing. * cached transforms during testing.
* *
* @param {ol.proj.Projection} source Source projection. * @param {module:ol/proj/Projection~Projection} source Source projection.
* @param {ol.proj.Projection} destination Destination projection. * @param {module:ol/proj/Projection~Projection} destination Destination projection.
* @return {module:ol/proj~TransformFunction} transformFn The unregistered transform. * @return {module:ol/proj~TransformFunction} transformFn The unregistered transform.
*/ */
export function remove(source, destination) { export function remove(source, destination) {

View File

@@ -56,7 +56,7 @@ LayerRenderer.prototype.hasFeatureAtCoordinate = FALSE;
/** /**
* Create a function that adds loaded tiles to the tile lookup. * Create a function that adds loaded tiles to the tile lookup.
* @param {ol.source.Tile} source Tile source. * @param {ol.source.Tile} source Tile source.
* @param {ol.proj.Projection} projection Projection of the tiles. * @param {module:ol/proj/Projection~Projection} projection Projection of the tiles.
* @param {Object.<number, Object.<string, ol.Tile>>} tiles Lookup of loaded * @param {Object.<number, Object.<string, ol.Tile>>} tiles Lookup of loaded
* tiles by zoom level. * tiles by zoom level.
* @return {function(number, ol.TileRange):boolean} A function that can be * @return {function(number, ol.TileRange):boolean} A function that can be
@@ -198,7 +198,7 @@ LayerRenderer.prototype.updateUsedTiles = function(usedTiles, tileSource, z, til
* @param {ol.source.Tile} tileSource Tile source. * @param {ol.source.Tile} tileSource Tile source.
* @param {ol.tilegrid.TileGrid} tileGrid Tile grid. * @param {ol.tilegrid.TileGrid} tileGrid Tile grid.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {number} currentZ Current Z. * @param {number} currentZ Current Z.
* @param {number} preload Load low resolution tiles up to 'preload' levels. * @param {number} preload Load low resolution tiles up to 'preload' levels.

View File

@@ -18,8 +18,8 @@ import Triangulation from '../reproj/Triangulation.js';
* *
* @constructor * @constructor
* @extends {ol.ImageBase} * @extends {ol.ImageBase}
* @param {ol.proj.Projection} sourceProj Source projection (of the data). * @param {module:ol/proj/Projection~Projection} sourceProj Source projection (of the data).
* @param {ol.proj.Projection} targetProj Target projection. * @param {module:ol/proj/Projection~Projection} targetProj Target projection.
* @param {module:ol/extent~Extent} targetExtent Target extent. * @param {module:ol/extent~Extent} targetExtent Target extent.
* @param {number} targetResolution Target resolution. * @param {number} targetResolution Target resolution.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
@@ -31,7 +31,7 @@ const ReprojImage = function(sourceProj, targetProj,
/** /**
* @private * @private
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.targetProj_ = targetProj; this.targetProj_ = targetProj;
@@ -132,7 +132,7 @@ ReprojImage.prototype.getImage = function() {
/** /**
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
*/ */
ReprojImage.prototype.getProjection = function() { ReprojImage.prototype.getProjection = function() {
return this.targetProj_; return this.targetProj_;

View File

@@ -19,9 +19,9 @@ import Triangulation from '../reproj/Triangulation.js';
* *
* @constructor * @constructor
* @extends {ol.Tile} * @extends {ol.Tile}
* @param {ol.proj.Projection} sourceProj Source projection. * @param {module:ol/proj/Projection~Projection} sourceProj Source projection.
* @param {ol.tilegrid.TileGrid} sourceTileGrid Source tile grid. * @param {ol.tilegrid.TileGrid} sourceTileGrid Source tile grid.
* @param {ol.proj.Projection} targetProj Target projection. * @param {module:ol/proj/Projection~Projection} targetProj Target projection.
* @param {ol.tilegrid.TileGrid} targetTileGrid Target tile grid. * @param {ol.tilegrid.TileGrid} targetTileGrid Target tile grid.
* @param {module:ol/tilecoord~TileCoord} tileCoord Coordinate of the tile. * @param {module:ol/tilecoord~TileCoord} tileCoord Coordinate of the tile.
* @param {module:ol/tilecoord~TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X. * @param {module:ol/tilecoord~TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X.

View File

@@ -33,8 +33,8 @@ const MAX_TRIANGLE_WIDTH = 0.25;
* Class containing triangulation of the given target extent. * Class containing triangulation of the given target extent.
* Used for determining source data and the reprojection itself. * Used for determining source data and the reprojection itself.
* *
* @param {ol.proj.Projection} sourceProj Source projection. * @param {module:ol/proj/Projection~Projection} sourceProj Source projection.
* @param {ol.proj.Projection} targetProj Target projection. * @param {module:ol/proj/Projection~Projection} targetProj Target projection.
* @param {module:ol/extent~Extent} targetExtent Target extent to triangulate. * @param {module:ol/extent~Extent} targetExtent Target extent to triangulate.
* @param {module:ol/extent~Extent} maxSourceExtent Maximal source extent that can be used. * @param {module:ol/extent~Extent} maxSourceExtent Maximal source extent that can be used.
* @param {number} errorThreshold Acceptable error (in source units). * @param {number} errorThreshold Acceptable error (in source units).
@@ -44,13 +44,13 @@ const Triangulation = function(sourceProj, targetProj, targetExtent,
maxSourceExtent, errorThreshold) { maxSourceExtent, errorThreshold) {
/** /**
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
* @private * @private
*/ */
this.sourceProj_ = sourceProj; this.sourceProj_ = sourceProj;
/** /**
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
* @private * @private
*/ */
this.targetProj_ = targetProj; this.targetProj_ = targetProj;

View File

@@ -151,7 +151,7 @@ BingMaps.prototype.handleImageryMetadataResponse = function(response) {
/** /**
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {string|undefined} Tile URL. * @return {string|undefined} Tile URL.
*/ */
function(tileCoord, pixelRatio, projection) { function(tileCoord, pixelRatio, projection) {

View File

@@ -139,7 +139,7 @@ ImageSource.prototype.findNearestResolution = function(resolution) {
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {ol.ImageBase} Single image. * @return {ol.ImageBase} Single image.
*/ */
ImageSource.prototype.getImage = function(extent, resolution, pixelRatio, projection) { ImageSource.prototype.getImage = function(extent, resolution, pixelRatio, projection) {
@@ -183,7 +183,7 @@ ImageSource.prototype.getImage = function(extent, resolution, pixelRatio, projec
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {ol.ImageBase} Single image. * @return {ol.ImageBase} Single image.
* @protected * @protected
*/ */

View File

@@ -195,7 +195,7 @@ ImageArcGISRest.prototype.getImageLoadFunction = function() {
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {Object} params Params. * @param {Object} params Params.
* @return {string} Request URL. * @return {string} Request URL.
* @private * @private

View File

@@ -203,7 +203,7 @@ ImageMapGuide.prototype.updateParams = function(params) {
* @param {Object.<string, string|number>} params Request parameters. * @param {Object.<string, string|number>} params Request parameters.
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {string} The mapagent map image request URL. * @return {string} The mapagent map image request URL.
*/ */
ImageMapGuide.prototype.getUrl = function(baseUrl, params, extent, size, projection) { ImageMapGuide.prototype.getUrl = function(baseUrl, params, extent, size, projection) {

View File

@@ -257,7 +257,7 @@ ImageWMS.prototype.getImageLoadFunction = function() {
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {Object} params Params. * @param {Object} params Params.
* @return {string} Request URL. * @return {string} Request URL.
* @private * @private

View File

@@ -224,7 +224,7 @@ RasterSource.prototype.setOperation = function(operation, opt_lib) {
* Update the stored frame state. * Update the stored frame state.
* @param {module:ol/extent~Extent} extent The view extent (in map units). * @param {module:ol/extent~Extent} extent The view extent (in map units).
* @param {number} resolution The view resolution. * @param {number} resolution The view resolution.
* @param {ol.proj.Projection} projection The view projection. * @param {module:ol/proj/Projection~Projection} projection The view projection.
* @return {olx.FrameState} The updated frame state. * @return {olx.FrameState} The updated frame state.
* @private * @private
*/ */

View File

@@ -28,7 +28,7 @@ const Source = function(options) {
/** /**
* @private * @private
* @type {ol.proj.Projection} * @type {module:ol/proj/Projection~Projection}
*/ */
this.projection_ = getProjection(options.projection); this.projection_ = getProjection(options.projection);
@@ -104,7 +104,7 @@ Source.prototype.getAttributions = function() {
/** /**
* Get the projection of the source. * Get the projection of the source.
* @return {ol.proj.Projection} Projection. * @return {module:ol/proj/Projection~Projection} Projection.
* @api * @api
*/ */
Source.prototype.getProjection = function() { Source.prototype.getProjection = function() {

View File

@@ -91,7 +91,7 @@ TileSource.prototype.canExpireCache = function() {
/** /**
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {Object.<string, ol.TileRange>} usedTiles Used tiles. * @param {Object.<string, ol.TileRange>} usedTiles Used tiles.
*/ */
TileSource.prototype.expireCache = function(projection, usedTiles) { TileSource.prototype.expireCache = function(projection, usedTiles) {
@@ -103,7 +103,7 @@ TileSource.prototype.expireCache = function(projection, usedTiles) {
/** /**
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {number} z Zoom level. * @param {number} z Zoom level.
* @param {ol.TileRange} tileRange Tile range. * @param {ol.TileRange} tileRange Tile range.
* @param {function(ol.Tile):(boolean|undefined)} callback Called with each * @param {function(ol.Tile):(boolean|undefined)} callback Called with each
@@ -140,7 +140,7 @@ TileSource.prototype.forEachLoadedTile = function(projection, z, tileRange, call
/** /**
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {number} Gutter. * @return {number} Gutter.
*/ */
TileSource.prototype.getGutter = function(projection) { TileSource.prototype.getGutter = function(projection) {
@@ -172,7 +172,7 @@ TileSource.prototype.setKey = function(key) {
/** /**
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {boolean} Opaque. * @return {boolean} Opaque.
*/ */
TileSource.prototype.getOpaque = function(projection) { TileSource.prototype.getOpaque = function(projection) {
@@ -194,7 +194,7 @@ TileSource.prototype.getResolutions = function() {
* @param {number} x Tile coordinate x. * @param {number} x Tile coordinate x.
* @param {number} y Tile coordinate y. * @param {number} y Tile coordinate y.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {!ol.Tile} Tile. * @return {!ol.Tile} Tile.
*/ */
TileSource.prototype.getTile = function(z, x, y, pixelRatio, projection) {}; TileSource.prototype.getTile = function(z, x, y, pixelRatio, projection) {};
@@ -211,7 +211,7 @@ TileSource.prototype.getTileGrid = function() {
/** /**
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {!ol.tilegrid.TileGrid} Tile grid. * @return {!ol.tilegrid.TileGrid} Tile grid.
*/ */
TileSource.prototype.getTileGridForProjection = function(projection) { TileSource.prototype.getTileGridForProjection = function(projection) {
@@ -224,7 +224,7 @@ TileSource.prototype.getTileGridForProjection = function(projection) {
/** /**
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {ol.TileCache} Tile cache. * @return {ol.TileCache} Tile cache.
* @protected * @protected
*/ */
@@ -253,7 +253,7 @@ TileSource.prototype.getTilePixelRatio = function(pixelRatio) {
/** /**
* @param {number} z Z. * @param {number} z Z.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {module:ol/size~Size} Tile size. * @return {module:ol/size~Size} Tile size.
*/ */
TileSource.prototype.getTilePixelSize = function(z, pixelRatio, projection) { TileSource.prototype.getTilePixelSize = function(z, pixelRatio, projection) {
@@ -273,7 +273,7 @@ TileSource.prototype.getTilePixelSize = function(z, pixelRatio, projection) {
* is outside the resolution and extent range of the tile grid, `null` will be * is outside the resolution and extent range of the tile grid, `null` will be
* returned. * returned.
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
* @param {ol.proj.Projection=} opt_projection Projection. * @param {module:ol/proj/Projection~Projection=} opt_projection Projection.
* @return {module:ol/tilecoord~TileCoord} Tile coordinate to be passed to the tileUrlFunction or * @return {module:ol/tilecoord~TileCoord} Tile coordinate to be passed to the tileUrlFunction or
* null if no tile URL should be created for the passed `tileCoord`. * null if no tile URL should be created for the passed `tileCoord`.
*/ */
@@ -302,7 +302,7 @@ TileSource.prototype.refresh = function() {
* @param {number} z Tile coordinate z. * @param {number} z Tile coordinate z.
* @param {number} x Tile coordinate x. * @param {number} x Tile coordinate x.
* @param {number} y Tile coordinate y. * @param {number} y Tile coordinate y.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
*/ */
TileSource.prototype.useTile = UNDEFINED; TileSource.prototype.useTile = UNDEFINED;

View File

@@ -90,7 +90,7 @@ TileArcGISRest.prototype.getParams = function() {
* @param {module:ol/size~Size} tileSize Tile size. * @param {module:ol/size~Size} tileSize Tile size.
* @param {module:ol/extent~Extent} tileExtent Tile extent. * @param {module:ol/extent~Extent} tileExtent Tile extent.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {Object} params Params. * @param {Object} params Params.
* @return {string|undefined} Request URL. * @return {string|undefined} Request URL.
* @private * @private

View File

@@ -204,7 +204,7 @@ TileImage.prototype.getTileCacheForProjection = function(projection) {
* @param {number} x Tile coordinate x. * @param {number} x Tile coordinate x.
* @param {number} y Tile coordinate y. * @param {number} y Tile coordinate y.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {string} key The key set on the tile. * @param {string} key The key set on the tile.
* @return {!ol.Tile} Tile. * @return {!ol.Tile} Tile.
* @private * @private
@@ -233,7 +233,7 @@ TileImage.prototype.createTile_ = function(z, x, y, pixelRatio, projection, key)
* @inheritDoc * @inheritDoc
*/ */
TileImage.prototype.getTile = function(z, x, y, pixelRatio, projection) { TileImage.prototype.getTile = function(z, x, y, pixelRatio, projection) {
const sourceProjection = /** @type {!ol.proj.Projection} */ (this.getProjection()); const sourceProjection = /** @type {!module:ol/proj/Projection~Projection} */ (this.getProjection());
if (!ENABLE_RASTER_REPROJECTION || if (!ENABLE_RASTER_REPROJECTION ||
!sourceProjection || !projection || equivalent(sourceProjection, projection)) { !sourceProjection || !projection || equivalent(sourceProjection, projection)) {
return this.getTileInternal(z, x, y, pixelRatio, sourceProjection || projection); return this.getTileInternal(z, x, y, pixelRatio, sourceProjection || projection);
@@ -282,7 +282,7 @@ TileImage.prototype.getTile = function(z, x, y, pixelRatio, projection) {
* @param {number} x Tile coordinate x. * @param {number} x Tile coordinate x.
* @param {number} y Tile coordinate y. * @param {number} y Tile coordinate y.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {!ol.proj.Projection} projection Projection. * @param {!module:ol/proj/Projection~Projection} projection Projection.
* @return {!ol.Tile} Tile. * @return {!ol.Tile} Tile.
* @protected * @protected
*/ */

View File

@@ -185,7 +185,7 @@ TileWMS.prototype.getParams = function() {
* @param {module:ol/size~Size} tileSize Tile size. * @param {module:ol/size~Size} tileSize Tile size.
* @param {module:ol/extent~Extent} tileExtent Tile extent. * @param {module:ol/extent~Extent} tileExtent Tile extent.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @param {Object} params Params. * @param {Object} params Params.
* @return {string|undefined} Request URL. * @return {string|undefined} Request URL.
* @private * @private

View File

@@ -752,7 +752,7 @@ VectorSource.prototype.isEmpty = function() {
/** /**
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
*/ */
VectorSource.prototype.loadFeatures = function(extent, resolution, projection) { VectorSource.prototype.loadFeatures = function(extent, resolution, projection) {
const loadedExtentsRtree = this.loadedExtentsRtree_; const loadedExtentsRtree = this.loadedExtentsRtree_;

View File

@@ -123,7 +123,7 @@ const WMTS = function(options) {
/** /**
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile coordinate.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {string|undefined} Tile URL. * @return {string|undefined} Tile URL.
*/ */
function(tileCoord, pixelRatio, projection) { function(tileCoord, pixelRatio, projection) {

View File

@@ -169,7 +169,7 @@ const Zoomify = function(opt_options) {
/** /**
* @param {module:ol/tilecoord~TileCoord} tileCoord Tile Coordinate. * @param {module:ol/tilecoord~TileCoord} tileCoord Tile Coordinate.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.proj.Projection} projection Projection. * @param {module:ol/proj/Projection~Projection} projection Projection.
* @return {string|undefined} Tile URL. * @return {string|undefined} Tile URL.
*/ */
function(tileCoord, pixelRatio, projection) { function(tileCoord, pixelRatio, projection) {

View File

@@ -80,12 +80,12 @@ ol.CanvasFillState;
* used by the source as an image. The arguments passed to the function are: * used by the source as an image. The arguments passed to the function are:
* {@link module:ol/extent~Extent} the image extent, `{number}` the image resolution, * {@link module:ol/extent~Extent} the image extent, `{number}` the image resolution,
* `{number}` the device pixel ratio, {@link module:ol/size~Size} the image size, and * `{number}` the device pixel ratio, {@link module:ol/size~Size} the image size, and
* {@link ol.proj.Projection} the image projection. The canvas returned by * {@link module:ol/proj/Projection~Projection} the image projection. The canvas returned by
* this function is cached by the source. The this keyword inside the function * this function is cached by the source. The this keyword inside the function
* references the {@link ol.source.ImageCanvas}. * references the {@link ol.source.ImageCanvas}.
* *
* @typedef {function(this:ol.source.ImageCanvas, module:ol/extent~Extent, number, * @typedef {function(this:ol.source.ImageCanvas, module:ol/extent~Extent, number,
* number, module:ol/size~Size, ol.proj.Projection): HTMLCanvasElement} * number, module:ol/size~Size, module:ol/proj/Projection~Projection): HTMLCanvasElement}
*/ */
ol.CanvasFunctionType; ol.CanvasFunctionType;