Merge pull request #8403 from tschaub/md-links

Markdown links
This commit is contained in:
Tim Schaub
2018-07-19 08:06:43 -07:00
committed by GitHub
28 changed files with 44 additions and 44 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import {VERSION} from './util.js';
/** /**
* Error object thrown when an assertion failed. This is an ECMA-262 Error, * Error object thrown when an assertion failed. This is an ECMA-262 Error,
* extended with a `code` property. * extended with a `code` property.
* @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error} * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error.
*/ */
class AssertionError extends Error { class AssertionError extends Error {
@@ -22,7 +22,7 @@ class AssertionError extends Error {
/** /**
* Error code. The meaning of the code can be found on * Error code. The meaning of the code can be found on
* {@link https://openlayers.org/en/latest/doc/errors/} (replace `latest` with * https://openlayers.org/en/latest/doc/errors/ (replace `latest` with
* the version found in the OpenLayers script's header comment if a version * the version found in the OpenLayers script's header comment if a version
* other than the latest is used). * other than the latest is used).
* @type {number} * @type {number}
+3 -3
View File
@@ -16,7 +16,7 @@ import {get as getProjection, getTransformFromProjections, identityTransform} fr
* @property {boolean} [tracking=false] Start Tracking right after * @property {boolean} [tracking=false] Start Tracking right after
* instantiation. * instantiation.
* @property {PositionOptions} [trackingOptions] Tracking options. * @property {PositionOptions} [trackingOptions] Tracking options.
* See {@link http://www.w3.org/TR/geolocation-API/#position_options_interface}. * See http://www.w3.org/TR/geolocation-API/#position_options_interface.
* @property {module:ol/proj~ProjectionLike} [projection] The projection the position * @property {module:ol/proj~ProjectionLike} [projection] The projection the position
* is reported in. * is reported in.
*/ */
@@ -285,7 +285,7 @@ class Geolocation extends BaseObject {
/** /**
* Get the tracking options. * Get the tracking options.
* @see http://www.w3.org/TR/geolocation-API/#position-options * See http://www.w3.org/TR/geolocation-API/#position-options.
* @return {PositionOptions|undefined} PositionOptions as defined by * @return {PositionOptions|undefined} PositionOptions as defined by
* the [HTML5 Geolocation spec * the [HTML5 Geolocation spec
* ](http://www.w3.org/TR/geolocation-API/#position_options_interface). * ](http://www.w3.org/TR/geolocation-API/#position_options_interface).
@@ -319,7 +319,7 @@ class Geolocation extends BaseObject {
/** /**
* Set the tracking options. * Set the tracking options.
* @see http://www.w3.org/TR/geolocation-API/#position-options * See http://www.w3.org/TR/geolocation-API/#position-options.
* @param {PositionOptions} options PositionOptions as defined by the * @param {PositionOptions} options PositionOptions as defined by the
* [HTML5 Geolocation spec * [HTML5 Geolocation spec
* ](http://www.w3.org/TR/geolocation-API/#position_options_interface). * ](http://www.w3.org/TR/geolocation-API/#position_options_interface).
+2 -2
View File
@@ -56,7 +56,7 @@ class MapBrowserEvent extends MapEvent {
/** /**
* Prevents the default browser action. * Prevents the default browser action.
* @see https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault * See https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault.
* @override * @override
* @api * @api
*/ */
@@ -67,7 +67,7 @@ class MapBrowserEvent extends MapEvent {
/** /**
* Prevents further propagation of the current event. * Prevents further propagation of the current event.
* @see https://developer.mozilla.org/en-US/docs/Web/API/event.stopPropagation * See https://developer.mozilla.org/en-US/docs/Web/API/event.stopPropagation.
* @override * @override
* @api * @api
*/ */
+5 -5
View File
@@ -127,7 +127,7 @@ function removeListeners(target, type) {
/** /**
* Registers an event listener on an event target. Inspired by * Registers an event listener on an event target. Inspired by
* {@link https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html} * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
* *
* This function efficiently binds a `listener` to a `this` object, and returns * This function efficiently binds a `listener` to a `this` object, and returns
* a key for use with {@link module:ol/events~unlistenByKey}. * a key for use with {@link module:ol/events~unlistenByKey}.
@@ -170,7 +170,7 @@ export function listen(target, type, listener, opt_this, opt_once) {
/** /**
* Registers a one-off event listener on an event target. Inspired by * Registers a one-off event listener on an event target. Inspired by
* {@link https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html} * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
* *
* This function efficiently binds a `listener` as self-unregistering listener * This function efficiently binds a `listener` as self-unregistering listener
* to a `this` object, and returns a key for use with * to a `this` object, and returns a key for use with
@@ -195,7 +195,7 @@ export function listenOnce(target, type, listener, opt_this) {
/** /**
* Unregisters an event listener on an event target. Inspired by * Unregisters an event listener on an event target. Inspired by
* {@link https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html} * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
* *
* To return a listener, this function needs to be called with the exact same * To return a listener, this function needs to be called with the exact same
* arguments that were used for a previous {@link module:ol/events~listen} call. * arguments that were used for a previous {@link module:ol/events~listen} call.
@@ -219,7 +219,7 @@ export function unlisten(target, type, listener, opt_this) {
/** /**
* Unregisters event listeners on an event target. Inspired by * Unregisters event listeners on an event target. Inspired by
* {@link https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html} * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
* *
* The argument passed to this function is the key returned from * The argument passed to this function is the key returned from
* {@link module:ol/events~listen} or {@link module:ol/events~listenOnce}. * {@link module:ol/events~listen} or {@link module:ol/events~listenOnce}.
@@ -246,7 +246,7 @@ export function unlistenByKey(key) {
/** /**
* Unregisters all event listeners on an event target. Inspired by * Unregisters all event listeners on an event target. Inspired by
* {@link https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html} * https://google.github.io/closure-library/api/source/closure/goog/events/events.js.src.html
* *
* @param {module:ol/events/EventTarget~EventTargetLike} target Target. * @param {module:ol/events/EventTarget~EventTargetLike} target Target.
*/ */
+1 -1
View File
@@ -5,7 +5,7 @@
/** /**
* @classdesc * @classdesc
* Stripped down implementation of the W3C DOM Level 2 Event interface. * Stripped down implementation of the W3C DOM Level 2 Event interface.
* @see {@link https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface} * See https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-interface.
* *
* This implementation only provides `type` and `target` properties, and * This implementation only provides `type` and `target` properties, and
* `stopPropagation` and `preventDefault` methods. It is meant as base class * `stopPropagation` and `preventDefault` methods. It is meant as base class
+1 -1
View File
@@ -15,7 +15,7 @@ import Event from '../events/Event.js';
/** /**
* @classdesc * @classdesc
* A simplified implementation of the W3C DOM Level 2 EventTarget interface. * A simplified implementation of the W3C DOM Level 2 EventTarget interface.
* @see {@link https://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-EventTarget} * See https://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html#Events-EventTarget.
* *
* There are two important simplifications compared to the specification: * There are two important simplifications compared to the specification:
* *
+1 -1
View File
@@ -237,7 +237,7 @@ export const mouseOnly = function(mapBrowserEvent) {
/** /**
* Return `true` if the event originates from a primary pointer in * Return `true` if the event originates from a primary pointer in
* contact with the surface or if the left mouse button is pressed. * contact with the surface or if the left mouse button is pressed.
* @see http://www.w3.org/TR/pointerevents/#button-states * See http://www.w3.org/TR/pointerevents/#button-states.
* *
* @param {module:ol/MapBrowserEvent} mapBrowserEvent Map browser event. * @param {module:ol/MapBrowserEvent} mapBrowserEvent Map browser event.
* @return {boolean} True if the event originates from a primary pointer. * @return {boolean} True if the event originates from a primary pointer.
+1 -1
View File
@@ -171,7 +171,7 @@ class Geometry extends BaseObject {
/** /**
* Create a simplified version of this geometry using the Douglas Peucker * Create a simplified version of this geometry using the Douglas Peucker
* algorithm. * algorithm.
* @see https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm * See https://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm.
* @abstract * @abstract
* @param {number} squaredTolerance Squared tolerance. * @param {number} squaredTolerance Squared tolerance.
* @return {module:ol/geom/Geometry} Simplified geometry. * @return {module:ol/geom/Geometry} Simplified geometry.
+1 -1
View File
@@ -6,8 +6,8 @@
/** /**
* Polyfill for Object.assign(). Assigns enumerable and own properties from * Polyfill for Object.assign(). Assigns enumerable and own properties from
* one or more source objects to a target object. * one or more source objects to a target object.
* See https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign.
* *
* @see https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
* @param {!Object} target The target object. * @param {!Object} target The target object.
* @param {...Object} var_sources The source object(s). * @param {...Object} var_sources The source object(s).
* @return {!Object} The modified target object. * @return {!Object} The modified target object.
+2 -2
View File
@@ -18,12 +18,12 @@
* for example by Bing Maps or OpenStreetMap), together with the relevant * for example by Bing Maps or OpenStreetMap), together with the relevant
* transform functions. * transform functions.
* *
* Additional transforms may be added by using the {@link http://proj4js.org/} * Additional transforms may be added by using the http://proj4js.org/
* library (version 2.2 or later). You can use the full build supplied by * library (version 2.2 or later). You can use the full build supplied by
* Proj4js, or create a custom build to support those projections you need; see * Proj4js, or create a custom build to support those projections you need; see
* the Proj4js website for how to do this. You also need the Proj4js definitions * the Proj4js website for how to do this. You also need the Proj4js definitions
* for the required projections. These definitions can be obtained from * for the required projections. These definitions can be obtained from
* {@link https://epsg.io/}, and are a JS function, so can be loaded in a script * https://epsg.io/, and are a JS function, so can be loaded in a script
* tag (as in the examples) or pasted into your application. * tag (as in the examples) or pasted into your application.
* *
* After all required projection definitions are added to proj4's registry (by * After all required projection definitions are added to proj4's registry (by
+1 -1
View File
@@ -690,7 +690,7 @@ class WebGLPolygonReplay extends WebGLReplay {
/** /**
* Line intersection algorithm by Paul Bourke. * Line intersection algorithm by Paul Bourke.
* @see http://paulbourke.net/geometry/pointlineplane/ * See http://paulbourke.net/geometry/pointlineplane/.
* *
* @private * @private
* @param {module:ol/render/webgl/PolygonReplay~PolygonVertex} p0 First point. * @param {module:ol/render/webgl/PolygonReplay~PolygonVertex} p0 First point.
+4 -4
View File
@@ -13,19 +13,19 @@ import XYZ from '../source/XYZ.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection. * @property {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection.
* @property {number} [maxZoom=18] Max zoom. * @property {number} [maxZoom=18] Max zoom.
* @property {number} [minZoom] Minimum zoom. * @property {number} [minZoom] Minimum zoom.
* @property {boolean} [wrapX=true] Whether to wrap the world horizontally. * @property {boolean} [wrapX=true] Whether to wrap the world horizontally.
* @property {Object} [config] If using anonymous maps, the CartoDB config to use. See * @property {Object} [config] If using anonymous maps, the CartoDB config to use. See
* {@link http://docs.cartodb.com/cartodb-platform/maps-api/anonymous-maps/} * http://docs.cartodb.com/cartodb-platform/maps-api/anonymous-maps/
* for more detail. * for more detail.
* If using named maps, a key-value lookup with the template parameters. * If using named maps, a key-value lookup with the template parameters.
* See {@link http://docs.cartodb.com/cartodb-platform/maps-api/named-maps/} * See http://docs.cartodb.com/cartodb-platform/maps-api/named-maps/
* for more detail. * for more detail.
* @property {string} [map] If using named maps, this will be the name of the template to load. * @property {string} [map] If using named maps, this will be the name of the template to load.
* See {@link http://docs.cartodb.com/cartodb-platform/maps-api/named-maps/} * See http://docs.cartodb.com/cartodb-platform/maps-api/named-maps/
* for more detail. * for more detail.
* @property {string} account If using named maps, this will be the name of the template to load. * @property {string} account If using named maps, this will be the name of the template to load.
*/ */
+2 -2
View File
@@ -18,7 +18,7 @@ import {appendParams} from '../uri.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting the image from * @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting the image from
* the remote server. * the remote server.
* @property {module:ol/Image~LoadFunction} [imageLoadFunction] Optional function to load an image given * @property {module:ol/Image~LoadFunction} [imageLoadFunction] Optional function to load an image given
@@ -27,7 +27,7 @@ import {appendParams} from '../uri.js';
* defaults will be used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is * defaults will be used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is
* `IMAGE` by default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`, and `IMAGESR` * `IMAGE` by default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`, and `IMAGESR`
* will be set dynamically. Set `LAYERS` to override the default service layer visibility. See * will be set dynamically. Set `LAYERS` to override the default service layer visibility. See
* {@link http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/} * http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/
* for further reference. * for further reference.
* @property {module:ol/proj~ProjectionLike} projection Projection. * @property {module:ol/proj~ProjectionLike} projection Projection.
* @property {number} [ratio=1.5] Ratio. `1` means image requests are the size of the map viewport, * @property {number} [ratio=1.5] Ratio. `1` means image requests are the size of the map viewport,
+1 -1
View File
@@ -16,7 +16,7 @@ import {appendParams} from '../uri.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {number} [displayDpi=96] The display resolution. * @property {number} [displayDpi=96] The display resolution.
* @property {number} [metersPerUnit=1] The meters-per-unit value. * @property {number} [metersPerUnit=1] The meters-per-unit value.
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting * @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting
+1 -1
View File
@@ -17,7 +17,7 @@ import ImageSource, {defaultImageLoadFunction} from '../source/Image.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {module:ol/extent~Extent} [imageExtent] Extent of the image in map coordinates. * @property {module:ol/extent~Extent} [imageExtent] Extent of the image in map coordinates.
* This is the [left, bottom, right, top] map coordinates of your image. * This is the [left, bottom, right, top] map coordinates of your image.
* @property {module:ol/Image~LoadFunction} [imageLoadFunction] Optional function to load an image given a URL. * @property {module:ol/Image~LoadFunction} [imageLoadFunction] Optional function to load an image given a URL.
+1 -1
View File
@@ -31,7 +31,7 @@ const GETFEATUREINFO_IMAGE_SIZE = [101, 101];
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting * @property {boolean} [hidpi=true] Use the `ol/Map#pixelRatio` value when requesting
* the image from the remote server. * the image from the remote server.
* @property {module:ol/source/WMSServerType|string} [serverType] The type of * @property {module:ol/source/WMSServerType|string} [serverType] The type of
+1 -1
View File
@@ -24,7 +24,7 @@ export const ATTRIBUTION = '© ' +
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {number} [maxZoom=19] Max zoom. * @property {number} [maxZoom=19] Max zoom.
* @property {boolean} [opaque=true] Whether the layer is opaque. * @property {boolean} [opaque=true] Whether the layer is opaque.
* @property {number} [reprojectionErrorThreshold=1.5] Maximum allowed reprojection error (in pixels). * @property {number} [reprojectionErrorThreshold=1.5] Maximum allowed reprojection error (in pixels).
+2 -2
View File
@@ -17,14 +17,14 @@ import {appendParams} from '../uri.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images.
* Note that you must provide a `crossOrigin` value if you are using the WebGL renderer * Note that you must provide a `crossOrigin` value if you are using the WebGL renderer
* or if you want to access pixel data with the Canvas renderer. See * or if you want to access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image
* for more detail. * for more detail.
* @property {Object.<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be * @property {Object.<string,*>} [params] ArcGIS Rest parameters. This field is optional. Service defaults will be
* used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is `IMAGE` by * used for any fields not specified. `FORMAT` is `PNG32` by default. `F` is `IMAGE` by
* default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`, * default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`,
* and `IMAGESR` will be set dynamically. Set `LAYERS` to * and `IMAGESR` will be set dynamically. Set `LAYERS` to
* override the default service layer visibility. See * override the default service layer visibility. See
* {@link http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/} * http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Export_Map/02r3000000v7000000/
* for further reference. * for further reference.
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid. Base this on the resolutions, * @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid. Base this on the resolutions,
* tilesize and extent supported by the server. * tilesize and extent supported by the server.
+1 -1
View File
@@ -21,7 +21,7 @@ import {getForProjection as getTileGridForProjection} from '../tilegrid.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {boolean} [opaque=true] Whether the layer is opaque. * @property {boolean} [opaque=true] Whether the layer is opaque.
* @property {module:ol/proj~ProjectionLike} projection Projection. * @property {module:ol/proj~ProjectionLike} projection Projection.
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
+2 -2
View File
@@ -4,7 +4,7 @@
// FIXME check order of async callbacks // FIXME check order of async callbacks
/** /**
* @see http://mapbox.com/developers/api/ * See http://mapbox.com/developers/api/.
*/ */
@@ -24,7 +24,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {boolean} [jsonp=false] Use JSONP with callback to load the TileJSON. * @property {boolean} [jsonp=false] Use JSONP with callback to load the TileJSON.
* Useful when the server does not support CORS.. * Useful when the server does not support CORS..
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
+1 -1
View File
@@ -24,7 +24,7 @@ import {appendParams} from '../uri.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {Object.<string,*>} params WMS request parameters. * @property {Object.<string,*>} params WMS request parameters.
* At least a `LAYERS` param is required. `STYLES` is * At least a `LAYERS` param is required. `STYLES` is
* `''` by default. `VERSION` is `1.3.0` by default. `WIDTH`, `HEIGHT`, `BBOX` * `''` by default. `VERSION` is `1.3.0` by default. `WIDTH`, `HEIGHT`, `BBOX`
+1 -1
View File
@@ -19,7 +19,7 @@ import {appendParams} from '../uri.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {module:ol/tilegrid/WMTS} tileGrid Tile grid. * @property {module:ol/tilegrid/WMTS} tileGrid Tile grid.
* @property {module:ol/proj~ProjectionLike} projection Projection. * @property {module:ol/proj~ProjectionLike} projection Projection.
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
+1 -1
View File
@@ -12,7 +12,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js';
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {boolean} [opaque=true] Whether the layer is opaque. * @property {boolean} [opaque=true] Whether the layer is opaque.
* @property {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection. * @property {module:ol/proj~ProjectionLike} [projection='EPSG:3857'] Projection.
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
+1 -1
View File
@@ -87,7 +87,7 @@ CustomTile.prototype.getImage = function() {
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to * you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
* access pixel data with the Canvas renderer. See * access pixel data with the Canvas renderer. See
* {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {module:ol/proj~ProjectionLike} [projection] Projection. * @property {module:ol/proj~ProjectionLike} [projection] Projection.
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels). * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
* Higher values can increase reprojection performance, but decrease precision. * Higher values can increase reprojection performance, but decrease precision.
+2 -2
View File
@@ -17,8 +17,8 @@ export const DROP = Infinity;
* The implementation is inspired from the Closure Library's Heap class and * The implementation is inspired from the Closure Library's Heap class and
* Python's heapq module. * Python's heapq module.
* *
* @see http://closure-library.googlecode.com/svn/docs/closure_goog_structs_heap.js.source.html * See http://closure-library.googlecode.com/svn/docs/closure_goog_structs_heap.js.source.html
* @see http://hg.python.org/cpython/file/2.7/Lib/heapq.py * and http://hg.python.org/cpython/file/2.7/Lib/heapq.py.
* *
* @template T * @template T
*/ */
+1 -1
View File
@@ -17,8 +17,8 @@ import {isEmpty} from '../obj.js';
/** /**
* Wrapper around the RBush by Vladimir Agafonkin. * Wrapper around the RBush by Vladimir Agafonkin.
* See https://github.com/mourner/rbush.
* *
* @see https://github.com/mourner/rbush
* @template T * @template T
*/ */
class RBush { class RBush {
+1 -1
View File
@@ -28,7 +28,7 @@ import ImageStyle from '../style/Image.js';
* the icon will be left as is. * the icon will be left as is.
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that you must provide a * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that you must provide a
* `crossOrigin` value if you are using the WebGL renderer or if you want to access pixel data with the Canvas renderer. * `crossOrigin` value if you are using the WebGL renderer or if you want to access pixel data with the Canvas renderer.
* See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image} for more detail. * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
* @property {HTMLImageElement|HTMLCanvasElement} [img] Image object for the icon. If the `src` option is not provided then the * @property {HTMLImageElement|HTMLCanvasElement} [img] Image object for the icon. If the `src` option is not provided then the
* provided image must already be loaded. And in that case, it is required * provided image must already be loaded. And in that case, it is required
* to provide the size of the image, with the `imgSize` option. * to provide the size of the image, with the `imgSize` option.
+1 -1
View File
@@ -17,7 +17,7 @@ const DEFAULT_FILL_COLOR = '#333';
/** /**
* @typedef {Object} Options * @typedef {Object} Options
* @property {string} [font] Font style as CSS 'font' value, see: * @property {string} [font] Font style as CSS 'font' value, see:
* {@link https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font}. Default is '10px sans-serif' * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font. Default is '10px sans-serif'
* @property {number} [maxAngle] When `placement` is set to `'line'`, allow a maximum angle between adjacent characters. * @property {number} [maxAngle] When `placement` is set to `'line'`, allow a maximum angle between adjacent characters.
* The expected value is in radians, and the default is 45° (`Math.PI / 4`). * The expected value is in radians, and the default is 45° (`Math.PI / 4`).
* @property {number} [offsetX=0] Horizontal text offset in pixels. A positive will shift the text right. * @property {number} [offsetX=0] Horizontal text offset in pixels. A positive will shift the text right.