Shorter module paths for default exports
This commit is contained in:
@@ -42,8 +42,7 @@ map.addOverlay(marker);
|
|||||||
// LineString to store the different geolocation positions. This LineString
|
// LineString to store the different geolocation positions. This LineString
|
||||||
// is time aware.
|
// is time aware.
|
||||||
// The Z dimension is actually used to store the rotation (heading).
|
// The Z dimension is actually used to store the rotation (heading).
|
||||||
const positions = new LineString([],
|
const positions = new LineString([], /** @type {module:ol/geom/GeometryLayout} */ ('XYZM'));
|
||||||
/** @type {module:ol/geom/GeometryLayout~GeometryLayout} */ ('XYZM'));
|
|
||||||
|
|
||||||
// Geolocation Control
|
// Geolocation Control
|
||||||
const geolocation = new Geolocation({
|
const geolocation = new Geolocation({
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import {getHeight} from './extent.js';
|
|||||||
* post requests or - in general - through XHR requests, where the src of the
|
* post requests or - in general - through XHR requests, where the src of the
|
||||||
* image element would be set to a data URI when the content is loaded.
|
* image element would be set to a data URI when the content is loaded.
|
||||||
*
|
*
|
||||||
* @typedef {function(module:ol/Image~Image, string)} LoadFunction
|
* @typedef {function(module:ol/Image, string)} LoadFunction
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -790,13 +790,13 @@ PluggableMap.prototype.getInteractions = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the layergroup associated with this map.
|
* Get the layergroup associated with this map.
|
||||||
* @return {module:ol/layer/Group~Group} A layer group containing the layers in this map.
|
* @return {module:ol/layer/Group} A layer group containing the layers in this map.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
PluggableMap.prototype.getLayerGroup = function() {
|
PluggableMap.prototype.getLayerGroup = function() {
|
||||||
return (
|
return (
|
||||||
/** @type {module:ol/layer/Group~Group} */ (this.get(MapProperty.LAYERGROUP))
|
/** @type {module:ol/layer/Group} */ (this.get(MapProperty.LAYERGROUP))
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1310,8 +1310,7 @@ PluggableMap.prototype.renderFrame_ = function(time) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the layergroup of this map.
|
* Sets the layergroup of this map.
|
||||||
* @param {module:ol/layer/Group~Group} layerGroup A layer group containing the layers in
|
* @param {module:ol/layer/Group} layerGroup A layer group containing the layers in this map.
|
||||||
* this map.
|
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1175,7 +1175,7 @@ View.prototype.setCenter = function(center) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/ViewHint~ViewHint} hint Hint.
|
* @param {module:ol/ViewHint} hint Hint.
|
||||||
* @param {number} delta Delta.
|
* @param {number} delta Delta.
|
||||||
* @return {number} New value.
|
* @return {number} New value.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ export function containsXY(extent, x, y) {
|
|||||||
* Get the relationship between a coordinate and extent.
|
* Get the relationship between a coordinate and extent.
|
||||||
* @param {module:ol/extent~Extent} extent The extent.
|
* @param {module:ol/extent~Extent} extent The extent.
|
||||||
* @param {module:ol/coordinate~Coordinate} coordinate The coordinate.
|
* @param {module:ol/coordinate~Coordinate} coordinate The coordinate.
|
||||||
* @return {module:ol/extent/Relationship~Relationship} The relationship (bitwise compare with
|
* @return {module:ol/extent/Relationship} The relationship (bitwise compare with
|
||||||
* module:ol/extent/Relationship~Relationship).
|
* module:ol/extent/Relationship~Relationship).
|
||||||
*/
|
*/
|
||||||
export function coordinateRelationship(extent, coordinate) {
|
export function coordinateRelationship(extent, coordinate) {
|
||||||
@@ -478,7 +478,7 @@ export function getCenter(extent) {
|
|||||||
/**
|
/**
|
||||||
* Get a corner coordinate of an extent.
|
* Get a corner coordinate of an extent.
|
||||||
* @param {module:ol/extent~Extent} extent Extent.
|
* @param {module:ol/extent~Extent} extent Extent.
|
||||||
* @param {module:ol/extent/Corner~Corner} corner Corner.
|
* @param {module:ol/extent/Corner} corner Corner.
|
||||||
* @return {module:ol/coordinate~Coordinate} Corner coordinate.
|
* @return {module:ol/coordinate~Coordinate} Corner coordinate.
|
||||||
*/
|
*/
|
||||||
export function getCorner(extent, corner) {
|
export function getCorner(extent, corner) {
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ function readGeometry(object, opt_options) {
|
|||||||
* array. It is used for checking for holes.
|
* array. It is used for checking for holes.
|
||||||
* Logic inspired by: https://github.com/Esri/terraformer-arcgis-parser
|
* Logic inspired by: https://github.com/Esri/terraformer-arcgis-parser
|
||||||
* @param {Array.<!Array.<!Array.<number>>>} rings Rings.
|
* @param {Array.<!Array.<!Array.<number>>>} rings Rings.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Geometry layout.
|
* @param {module:ol/geom/GeometryLayout} layout Geometry layout.
|
||||||
* @return {Array.<!Array.<!Array.<number>>>} Transformed rings.
|
* @return {Array.<!Array.<!Array.<number>>>} Transformed rings.
|
||||||
*/
|
*/
|
||||||
function convertRings(rings, layout) {
|
function convertRings(rings, layout) {
|
||||||
@@ -218,7 +218,7 @@ function readMultiLineStringGeometry(object) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {EsriJSONGeometry} object Object.
|
* @param {EsriJSONGeometry} object Object.
|
||||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} The geometry layout to use.
|
* @return {module:ol/geom/GeometryLayout} The geometry layout to use.
|
||||||
*/
|
*/
|
||||||
function getGeometryLayout(object) {
|
function getGeometryLayout(object) {
|
||||||
let layout = GeometryLayout.XY;
|
let layout = GeometryLayout.XY;
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ function appendCoordinate(flatCoordinates, layoutOptions, node, values) {
|
|||||||
* @param {module:ol/format/GPX~LayoutOptions} layoutOptions Layout options.
|
* @param {module:ol/format/GPX~LayoutOptions} layoutOptions Layout options.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
* @param {Array.<number>=} ends Ends.
|
* @param {Array.<number>=} ends Ends.
|
||||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} Layout.
|
* @return {module:ol/geom/GeometryLayout} Layout.
|
||||||
*/
|
*/
|
||||||
function applyLayoutOptions(layoutOptions, flatCoordinates, ends) {
|
function applyLayoutOptions(layoutOptions, flatCoordinates, ends) {
|
||||||
let layout = GeometryLayout.XY;
|
let layout = GeometryLayout.XY;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {get as getProjection} from '../proj.js';
|
|||||||
/**
|
/**
|
||||||
* @typedef {Object} Options
|
* @typedef {Object} Options
|
||||||
* @property {number} [factor=1e5] The factor by which the coordinates values will be scaled.
|
* @property {number} [factor=1e5] The factor by which the coordinates values will be scaled.
|
||||||
* @property {module:ol/geom/GeometryLayout~GeometryLayout} [geometryLayout='XY'] Layout of the
|
* @property {module:ol/geom/GeometryLayout} [geometryLayout='XY'] Layout of the
|
||||||
* feature geometries created by the format reader.
|
* feature geometries created by the format reader.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ const Polyline = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/geom/GeometryLayout~GeometryLayout}
|
* @type {module:ol/geom/GeometryLayout}
|
||||||
*/
|
*/
|
||||||
this.geometryLayout_ = options.geometryLayout ?
|
this.geometryLayout_ = options.geometryLayout ?
|
||||||
options.geometryLayout : GeometryLayout.XY;
|
options.geometryLayout : GeometryLayout.XY;
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ const Parser = function(lexer) {
|
|||||||
this.token_;
|
this.token_;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {module:ol/geom/GeometryLayout~GeometryLayout}
|
* @type {module:ol/geom/GeometryLayout}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.layout_ = GeometryLayout.XY;
|
this.layout_ = GeometryLayout.XY;
|
||||||
@@ -282,7 +282,7 @@ Parser.prototype.parse = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to parse the dimensional info.
|
* Try to parse the dimensional info.
|
||||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} The layout.
|
* @return {module:ol/geom/GeometryLayout} The layout.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
Parser.prototype.parseGeometryLayout_ = function() {
|
Parser.prototype.parseGeometryLayout_ = function() {
|
||||||
@@ -815,7 +815,7 @@ WKT.prototype.readGeometryFromText = function(text, opt_options) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @enum {function (new:module:ol/geom/Geometry, Array, module:ol/geom/GeometryLayout~GeometryLayout)}
|
* @enum {function (new:module:ol/geom/Geometry, Array, module:ol/geom/GeometryLayout)}
|
||||||
*/
|
*/
|
||||||
const GeometryConstructor = {
|
const GeometryConstructor = {
|
||||||
'POINT': Point,
|
'POINT': Point,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {deflateCoordinate} from '../geom/flat/deflate.js';
|
|||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {module:ol/coordinate~Coordinate} center Center.
|
* @param {module:ol/coordinate~Coordinate} center Center.
|
||||||
* @param {number=} opt_radius Radius.
|
* @param {number=} opt_radius Radius.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const Circle = function(center, opt_radius, opt_layout) {
|
const Circle = function(center, opt_radius, opt_layout) {
|
||||||
@@ -179,7 +179,7 @@ Circle.prototype.setCenter = function(center) {
|
|||||||
* number) of the circle.
|
* number) of the circle.
|
||||||
* @param {module:ol/coordinate~Coordinate} center Center.
|
* @param {module:ol/coordinate~Coordinate} center Center.
|
||||||
* @param {number} radius Radius.
|
* @param {number} radius Radius.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Circle.prototype.setCenterAndRadius = function(center, radius, opt_layout) {
|
Circle.prototype.setCenterAndRadius = function(center, radius, opt_layout) {
|
||||||
@@ -217,7 +217,7 @@ Circle.prototype.setCoordinates = function(coordinates, opt_layout) {};
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
*/
|
*/
|
||||||
Circle.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
Circle.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import {douglasPeucker} from '../geom/flat/simplify.js';
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const LineString = function(coordinates, opt_layout) {
|
const LineString = function(coordinates, opt_layout) {
|
||||||
@@ -238,7 +238,7 @@ LineString.prototype.intersectsExtent = function(extent) {
|
|||||||
/**
|
/**
|
||||||
* Set the coordinates of the linestring.
|
* Set the coordinates of the linestring.
|
||||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -258,7 +258,7 @@ LineString.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
*/
|
*/
|
||||||
LineString.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
LineString.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {douglasPeucker} from '../geom/flat/simplify.js';
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const LinearRing = function(coordinates, opt_layout) {
|
const LinearRing = function(coordinates, opt_layout) {
|
||||||
@@ -132,7 +132,7 @@ LinearRing.prototype.intersectsExtent = function(extent) {};
|
|||||||
/**
|
/**
|
||||||
* Set the coordinates of the linear ring.
|
* Set the coordinates of the linear ring.
|
||||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -152,7 +152,7 @@ LinearRing.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
*/
|
*/
|
||||||
LinearRing.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
LinearRing.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import {douglasPeuckerArray} from '../geom/flat/simplify.js';
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const MultiLineString = function(coordinates, opt_layout) {
|
const MultiLineString = function(coordinates, opt_layout) {
|
||||||
@@ -255,7 +255,7 @@ MultiLineString.prototype.intersectsExtent = function(extent) {
|
|||||||
/**
|
/**
|
||||||
* Set the coordinates of the multilinestring.
|
* Set the coordinates of the multilinestring.
|
||||||
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -276,7 +276,7 @@ MultiLineString.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
* @param {Array.<number>} ends Ends.
|
* @param {Array.<number>} ends Ends.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import {squaredDistance as squaredDx} from '../math.js';
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const MultiPoint = function(coordinates, opt_layout) {
|
const MultiPoint = function(coordinates, opt_layout) {
|
||||||
@@ -162,7 +162,7 @@ MultiPoint.prototype.intersectsExtent = function(extent) {
|
|||||||
/**
|
/**
|
||||||
* Set the coordinates of the multipoint.
|
* Set the coordinates of the multipoint.
|
||||||
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
* @param {Array.<module:ol/coordinate~Coordinate>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -182,7 +182,7 @@ MultiPoint.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
*/
|
*/
|
||||||
MultiPoint.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
MultiPoint.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import {quantizeMultiArray} from '../geom/flat/simplify.js';
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {Array.<Array.<Array.<module:ol/coordinate~Coordinate>>>} coordinates Coordinates.
|
* @param {Array.<Array.<Array.<module:ol/coordinate~Coordinate>>>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const MultiPolygon = function(coordinates, opt_layout) {
|
const MultiPolygon = function(coordinates, opt_layout) {
|
||||||
@@ -352,7 +352,7 @@ MultiPolygon.prototype.intersectsExtent = function(extent) {
|
|||||||
/**
|
/**
|
||||||
* Set the coordinates of the multipolygon.
|
* Set the coordinates of the multipolygon.
|
||||||
* @param {Array.<Array.<Array.<module:ol/coordinate~Coordinate>>>} coordinates Coordinates.
|
* @param {Array.<Array.<Array.<module:ol/coordinate~Coordinate>>>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -379,7 +379,7 @@ MultiPolygon.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
* @param {Array.<Array.<number>>} endss Endss.
|
* @param {Array.<Array.<number>>} endss Endss.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import {squaredDistance as squaredDx} from '../math.js';
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/geom/SimpleGeometry}
|
* @extends {module:ol/geom/SimpleGeometry}
|
||||||
* @param {module:ol/coordinate~Coordinate} coordinates Coordinates.
|
* @param {module:ol/coordinate~Coordinate} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const Point = function(coordinates, opt_layout) {
|
const Point = function(coordinates, opt_layout) {
|
||||||
@@ -116,7 +116,7 @@ Point.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
*/
|
*/
|
||||||
Point.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
Point.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import {modulo} from '../math.js';
|
|||||||
* linear ring defines a hole in the surface of the polygon. A linear ring
|
* linear ring defines a hole in the surface of the polygon. A linear ring
|
||||||
* is an array of vertices' coordinates where the first coordinate and the
|
* is an array of vertices' coordinates where the first coordinate and the
|
||||||
* last are equivalent.
|
* last are equivalent.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const Polygon = function(coordinates, opt_layout) {
|
const Polygon = function(coordinates, opt_layout) {
|
||||||
@@ -333,7 +333,7 @@ Polygon.prototype.intersectsExtent = function(extent) {
|
|||||||
/**
|
/**
|
||||||
* Set the coordinates of the polygon.
|
* Set the coordinates of the polygon.
|
||||||
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
* @param {Array.<Array.<module:ol/coordinate~Coordinate>>} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
@@ -354,7 +354,7 @@ Polygon.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
* @param {Array.<number>} ends Ends.
|
* @param {Array.<number>} ends Ends.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const SimpleGeometry = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @protected
|
* @protected
|
||||||
* @type {module:ol/geom/GeometryLayout~GeometryLayout}
|
* @type {module:ol/geom/GeometryLayout}
|
||||||
*/
|
*/
|
||||||
this.layout = GeometryLayout.XY;
|
this.layout = GeometryLayout.XY;
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ inherits(SimpleGeometry, Geometry);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {number} stride Stride.
|
* @param {number} stride Stride.
|
||||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @return {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
*/
|
*/
|
||||||
function getLayoutForStride(stride) {
|
function getLayoutForStride(stride) {
|
||||||
let layout;
|
let layout;
|
||||||
@@ -60,13 +60,13 @@ function getLayoutForStride(stride) {
|
|||||||
layout = GeometryLayout.XYZM;
|
layout = GeometryLayout.XYZM;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
/** @type {module:ol/geom/GeometryLayout~GeometryLayout} */ (layout)
|
/** @type {module:ol/geom/GeometryLayout} */ (layout)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @return {number} Stride.
|
* @return {number} Stride.
|
||||||
*/
|
*/
|
||||||
export function getStrideForLayout(layout) {
|
export function getStrideForLayout(layout) {
|
||||||
@@ -134,7 +134,7 @@ SimpleGeometry.prototype.getLastCoordinate = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link module:ol/geom/GeometryLayout~GeometryLayout layout} of the geometry.
|
* Return the {@link module:ol/geom/GeometryLayout~GeometryLayout layout} of the geometry.
|
||||||
* @return {module:ol/geom/GeometryLayout~GeometryLayout} Layout.
|
* @return {module:ol/geom/GeometryLayout} Layout.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
SimpleGeometry.prototype.getLayout = function() {
|
SimpleGeometry.prototype.getLayout = function() {
|
||||||
@@ -201,7 +201,7 @@ SimpleGeometry.prototype.getStride = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout} layout Layout.
|
* @param {module:ol/geom/GeometryLayout} layout Layout.
|
||||||
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
@@ -215,13 +215,13 @@ SimpleGeometry.prototype.setFlatCoordinatesInternal = function(layout, flatCoord
|
|||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @param {Array} coordinates Coordinates.
|
* @param {Array} coordinates Coordinates.
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout=} opt_layout Layout.
|
* @param {module:ol/geom/GeometryLayout=} opt_layout Layout.
|
||||||
*/
|
*/
|
||||||
SimpleGeometry.prototype.setCoordinates = function(coordinates, opt_layout) {};
|
SimpleGeometry.prototype.setCoordinates = function(coordinates, opt_layout) {};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/geom/GeometryLayout~GeometryLayout|undefined} layout Layout.
|
* @param {module:ol/geom/GeometryLayout|undefined} layout Layout.
|
||||||
* @param {Array} coordinates Coordinates.
|
* @param {Array} coordinates Coordinates.
|
||||||
* @param {number} nesting Nesting.
|
* @param {number} nesting Nesting.
|
||||||
* @protected
|
* @protected
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ const DragBox = function(opt_options) {
|
|||||||
const options = opt_options ? opt_options : {};
|
const options = opt_options ? opt_options : {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {module:ol/render/Box~Box}
|
* @type {module:ol/render/Box}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.box_ = new RenderBox(options.className || 'ol-dragbox');
|
this.box_ = new RenderBox(options.className || 'ol-dragbox');
|
||||||
|
|||||||
@@ -388,7 +388,7 @@ const Draw = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw overlay where our sketch features are drawn.
|
* Draw overlay where our sketch features are drawn.
|
||||||
* @type {module:ol/layer/Vector~Vector}
|
* @type {module:ol/layer/Vector}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.overlay_ = new VectorLayer({
|
this.overlay_ = new VectorLayer({
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ const ExtentInteraction = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Layer for the extentFeature
|
* Layer for the extentFeature
|
||||||
* @type {module:ol/layer/Vector~Vector}
|
* @type {module:ol/layer/Vector}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.extentOverlay_ = new VectorLayer({
|
this.extentOverlay_ = new VectorLayer({
|
||||||
@@ -157,7 +157,7 @@ const ExtentInteraction = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Layer for the vertexFeature
|
* Layer for the vertexFeature
|
||||||
* @type {module:ol/layer/Vector~Vector}
|
* @type {module:ol/layer/Vector}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.vertexOverlay_ = new VectorLayer({
|
this.vertexOverlay_ = new VectorLayer({
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ const Modify = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw overlay where sketch features are drawn.
|
* Draw overlay where sketch features are drawn.
|
||||||
* @type {module:ol/layer/Vector~Vector}
|
* @type {module:ol/layer/Vector}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.overlay_ = new VectorLayer({
|
this.overlay_ = new VectorLayer({
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ const Select = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/layer/Vector~Vector}
|
* @type {module:ol/layer/Vector}
|
||||||
*/
|
*/
|
||||||
this.featureOverlay_ = featureOverlay;
|
this.featureOverlay_ = featureOverlay;
|
||||||
|
|
||||||
@@ -301,13 +301,13 @@ Select.prototype.getHitTolerance = function() {
|
|||||||
* programmatic method like pushing features to
|
* programmatic method like pushing features to
|
||||||
* {@link module:ol/interaction/Select~Select#getFeatures collection}.
|
* {@link module:ol/interaction/Select~Select#getFeatures collection}.
|
||||||
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature
|
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature
|
||||||
* @return {module:ol/layer/Vector~Vector} Layer.
|
* @return {module:ol/layer/Vector} Layer.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Select.prototype.getLayer = function(feature) {
|
Select.prototype.getLayer = function(feature) {
|
||||||
const key = getUid(feature);
|
const key = getUid(feature);
|
||||||
return (
|
return (
|
||||||
/** @type {module:ol/layer/Vector~Vector} */ (this.featureLayerAssociation_[key])
|
/** @type {module:ol/layer/Vector} */ (this.featureLayerAssociation_[key])
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ BaseLayer.prototype.getOpacity = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @return {module:ol/source/State~State} Source state.
|
* @return {module:ol/source/State} Source state.
|
||||||
*/
|
*/
|
||||||
BaseLayer.prototype.getSourceState = function() {};
|
BaseLayer.prototype.getSourceState = function() {};
|
||||||
|
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ const VectorLayer = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/layer/VectorTileRenderType~VectorTileRenderType|string}
|
* @type {module:ol/layer/VectorTileRenderType|string}
|
||||||
*/
|
*/
|
||||||
this.renderMode_ = options.renderMode || VectorRenderType.VECTOR;
|
this.renderMode_ = options.renderMode || VectorRenderType.VECTOR;
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ import CanvasImmediateRenderer from './render/canvas/Immediate.js';
|
|||||||
*
|
*
|
||||||
* @param {CanvasRenderingContext2D} context Canvas context.
|
* @param {CanvasRenderingContext2D} context Canvas context.
|
||||||
* @param {module:ol/render~ToContextOptions=} opt_options Options.
|
* @param {module:ol/render~ToContextOptions=} opt_options Options.
|
||||||
* @return {module:ol/render/canvas/Immediate~Immediate} Canvas Immediate.
|
* @return {module:ol/render/canvas/Immediate} Canvas Immediate.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
export function toContext(context, opt_options) {
|
export function toContext(context, opt_options) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import Event from '../events/Event.js';
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/events/Event}
|
* @extends {module:ol/events/Event}
|
||||||
* @param {module:ol/render/EventType~EventType} type Type.
|
* @param {module:ol/render/EventType} type Type.
|
||||||
* @param {module:ol/render/VectorContext=} opt_vectorContext Vector context.
|
* @param {module:ol/render/VectorContext=} opt_vectorContext Vector context.
|
||||||
* @param {module:ol/PluggableMap~FrameState=} opt_frameState Frame state.
|
* @param {module:ol/PluggableMap~FrameState=} opt_frameState Frame state.
|
||||||
* @param {?CanvasRenderingContext2D=} opt_context Context.
|
* @param {?CanvasRenderingContext2D=} opt_context Context.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const ReplayGroup = function() {};
|
|||||||
/**
|
/**
|
||||||
* @abstract
|
* @abstract
|
||||||
* @param {number|undefined} zIndex Z index.
|
* @param {number|undefined} zIndex Z index.
|
||||||
* @param {module:ol/render/ReplayType~ReplayType} replayType Replay type.
|
* @param {module:ol/render/ReplayType} replayType Replay type.
|
||||||
* @return {module:ol/render/VectorContext} Replay.
|
* @return {module:ol/render/VectorContext} Replay.
|
||||||
*/
|
*/
|
||||||
ReplayGroup.prototype.getReplay = function(zIndex, replayType) {};
|
ReplayGroup.prototype.getReplay = function(zIndex, replayType) {};
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import {create as createTransform, compose as composeTransform} from '../../tran
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Object.<module:ol/render/ReplayType~ReplayType,
|
* @type {Object.<module:ol/render/ReplayType,
|
||||||
* function(new: module:ol/render/canvas/Replay, number, module:ol/extent~Extent,
|
* function(new: module:ol/render/canvas/Replay, number, module:ol/extent~Extent,
|
||||||
* number, number, boolean, Array.<module:ol/render/canvas~DeclutterGroup>)>}
|
* number, number, boolean, Array.<module:ol/render/canvas~DeclutterGroup>)>}
|
||||||
*/
|
*/
|
||||||
@@ -100,7 +100,7 @@ const CanvasReplayGroup = function(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {!Object.<string, !Object.<module:ol/render/ReplayType~ReplayType, module:ol/render/canvas/Replay>>}
|
* @type {!Object.<string, !Object.<module:ol/render/ReplayType, module:ol/render/canvas/Replay>>}
|
||||||
*/
|
*/
|
||||||
this.replaysByZIndex_ = {};
|
this.replaysByZIndex_ = {};
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@ CanvasReplayGroup.prototype.clip = function(context, transform) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Array.<module:ol/render/ReplayType~ReplayType>} replays Replays.
|
* @param {Array.<module:ol/render/ReplayType>} replays Replays.
|
||||||
* @return {boolean} Has replays of the provided types.
|
* @return {boolean} Has replays of the provided types.
|
||||||
*/
|
*/
|
||||||
CanvasReplayGroup.prototype.hasReplays = function(replays) {
|
CanvasReplayGroup.prototype.hasReplays = function(replays) {
|
||||||
@@ -431,7 +431,7 @@ CanvasReplayGroup.prototype.getReplay = function(zIndex, replayType) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {Object.<string, Object.<module:ol/render/ReplayType~ReplayType, module:ol/render/canvas/Replay>>} Replays.
|
* @return {Object.<string, Object.<module:ol/render/ReplayType, module:ol/render/canvas/Replay>>} Replays.
|
||||||
*/
|
*/
|
||||||
CanvasReplayGroup.prototype.getReplays = function() {
|
CanvasReplayGroup.prototype.getReplays = function() {
|
||||||
return this.replaysByZIndex_;
|
return this.replaysByZIndex_;
|
||||||
@@ -451,7 +451,7 @@ CanvasReplayGroup.prototype.isEmpty = function() {
|
|||||||
* @param {module:ol/transform~Transform} transform Transform.
|
* @param {module:ol/transform~Transform} transform Transform.
|
||||||
* @param {number} viewRotation View rotation.
|
* @param {number} viewRotation View rotation.
|
||||||
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
|
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip.
|
||||||
* @param {Array.<module:ol/render/ReplayType~ReplayType>=} opt_replayTypes Ordered replay types to replay.
|
* @param {Array.<module:ol/render/ReplayType>=} opt_replayTypes Ordered replay types to replay.
|
||||||
* Default is {@link module:ol/render/replay~ORDER}
|
* Default is {@link module:ol/render/replay~ORDER}
|
||||||
* @param {Object.<string, module:ol/render/canvas~DeclutterGroup>=} opt_declutterReplays Declutter replays.
|
* @param {Object.<string, module:ol/render/canvas~DeclutterGroup>=} opt_declutterReplays Declutter replays.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import ReplayType from '../render/ReplayType.js';
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Array.<module:ol/render/ReplayType~ReplayType>}
|
* @type {Array.<module:ol/render/ReplayType>}
|
||||||
*/
|
*/
|
||||||
export const ORDER = [
|
export const ORDER = [
|
||||||
ReplayType.POLYGON,
|
ReplayType.POLYGON,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import WebGLTextReplay from '../webgl/TextReplay.js';
|
|||||||
const HIT_DETECTION_SIZE = [1, 1];
|
const HIT_DETECTION_SIZE = [1, 1];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {Object.<module:ol/render/ReplayType~ReplayType,
|
* @type {Object.<module:ol/render/ReplayType,
|
||||||
* function(new: module:ol/render/webgl/Replay, number,
|
* function(new: module:ol/render/webgl/Replay, number,
|
||||||
* module:ol/extent~Extent)>}
|
* module:ol/extent~Extent)>}
|
||||||
*/
|
*/
|
||||||
@@ -64,7 +64,7 @@ const WebGLReplayGroup = function(tolerance, maxExtent, opt_renderBuffer) {
|
|||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {!Object.<string,
|
* @type {!Object.<string,
|
||||||
* Object.<module:ol/render/ReplayType~ReplayType, module:ol/render/webgl/Replay>>}
|
* Object.<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>}
|
||||||
*/
|
*/
|
||||||
this.replaysByZIndex_ = {};
|
this.replaysByZIndex_ = {};
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ LayerRenderer.prototype.getLayer = function() {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
LayerRenderer.prototype.handleImageChange_ = function(event) {
|
LayerRenderer.prototype.handleImageChange_ = function(event) {
|
||||||
const image = /** @type {module:ol/Image~Image} */ (event.target);
|
const image = /** @type {module:ol/Image} */ (event.target);
|
||||||
if (image.getState() === ImageState.LOADED) {
|
if (image.getState() === ImageState.LOADED) {
|
||||||
this.renderIfReadyAndVisible();
|
this.renderIfReadyAndVisible();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ CanvasLayerRenderer.prototype.clip = function(context, frameState, extent) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/render/EventType~EventType} type Event type.
|
* @param {module:ol/render/EventType} type Event type.
|
||||||
* @param {CanvasRenderingContext2D} context Context.
|
* @param {CanvasRenderingContext2D} context Context.
|
||||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||||
* @param {module:ol/transform~Transform=} opt_transform Transform.
|
* @param {module:ol/transform~Transform=} opt_transform Transform.
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ inherits(CanvasMapRenderer, MapRenderer);
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/render/EventType~EventType} type Event type.
|
* @param {module:ol/render/EventType} type Event type.
|
||||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import {create as createTransform, compose as composeTransform} from '../../tran
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/renderer/canvas/IntermediateCanvas}
|
* @extends {module:ol/renderer/canvas/IntermediateCanvas}
|
||||||
* @param {module:ol/layer/Tile|module:ol/layer/VectorTile~VectorTile} tileLayer Tile layer.
|
* @param {module:ol/layer/Tile|module:ol/layer/VectorTile} tileLayer Tile layer.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const CanvasTileLayerRenderer = function(tileLayer) {
|
const CanvasTileLayerRenderer = function(tileLayer) {
|
||||||
@@ -346,7 +346,7 @@ CanvasTileLayerRenderer.prototype.getImage = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @function
|
* @function
|
||||||
* @return {module:ol/layer/Tile|module:ol/layer/VectorTile~VectorTile}
|
* @return {module:ol/layer/Tile|module:ol/layer/VectorTile}
|
||||||
*/
|
*/
|
||||||
CanvasTileLayerRenderer.prototype.getLayer;
|
CanvasTileLayerRenderer.prototype.getLayer;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {!Object.<string, Array.<module:ol/render/ReplayType~ReplayType>>}
|
* @type {!Object.<string, Array.<module:ol/render/ReplayType>>}
|
||||||
*/
|
*/
|
||||||
const IMAGE_REPLAYS = {
|
const IMAGE_REPLAYS = {
|
||||||
'image': [ReplayType.POLYGON, ReplayType.CIRCLE,
|
'image': [ReplayType.POLYGON, ReplayType.CIRCLE,
|
||||||
@@ -38,7 +38,7 @@ const IMAGE_REPLAYS = {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {!Object.<string, Array.<module:ol/render/ReplayType~ReplayType>>}
|
* @type {!Object.<string, Array.<module:ol/render/ReplayType>>}
|
||||||
*/
|
*/
|
||||||
const VECTOR_REPLAYS = {
|
const VECTOR_REPLAYS = {
|
||||||
'image': [ReplayType.DEFAULT],
|
'image': [ReplayType.DEFAULT],
|
||||||
@@ -50,7 +50,7 @@ const VECTOR_REPLAYS = {
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/renderer/canvas/TileLayer}
|
* @extends {module:ol/renderer/canvas/TileLayer}
|
||||||
* @param {module:ol/layer/VectorTile~VectorTile} layer VectorTile layer.
|
* @param {module:ol/layer/VectorTile} layer VectorTile layer.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
const CanvasVectorTileLayerRenderer = function(layer) {
|
const CanvasVectorTileLayerRenderer = function(layer) {
|
||||||
@@ -113,7 +113,7 @@ CanvasVectorTileLayerRenderer['handles'] = function(layer) {
|
|||||||
* @return {module:ol/renderer/canvas/VectorTileLayer} The layer renderer.
|
* @return {module:ol/renderer/canvas/VectorTileLayer} The layer renderer.
|
||||||
*/
|
*/
|
||||||
CanvasVectorTileLayerRenderer['create'] = function(mapRenderer, layer) {
|
CanvasVectorTileLayerRenderer['create'] = function(mapRenderer, layer) {
|
||||||
return new CanvasVectorTileLayerRenderer(/** @type {module:ol/layer/VectorTile~VectorTile} */ (layer));
|
return new CanvasVectorTileLayerRenderer(/** @type {module:ol/layer/VectorTile} */ (layer));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ WebGLLayerRenderer.prototype.composeFrame = function(frameState, layerState, con
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/render/EventType~EventType} type Event type.
|
* @param {module:ol/render/EventType} type Event type.
|
||||||
* @param {module:ol/webgl/Context} context WebGL context.
|
* @param {module:ol/webgl/Context} context WebGL context.
|
||||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ WebGLMapRenderer.prototype.bindTileTexture = function(tile, tileSize, tileGutter
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {module:ol/render/EventType~EventType} type Event type.
|
* @param {module:ol/render/EventType} type Event type.
|
||||||
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
* @param {module:ol/PluggableMap~FrameState} frameState Frame state.
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const ImageSourceEventType = {
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @extends {module:ol/events/Event}
|
* @extends {module:ol/events/Event}
|
||||||
* @param {string} type Type.
|
* @param {string} type Type.
|
||||||
* @param {module:ol/Image~Image} image The image.
|
* @param {module:ol/Image} image The image.
|
||||||
*/
|
*/
|
||||||
const ImageSourceEvent = function(type, image) {
|
const ImageSourceEvent = function(type, image) {
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ const ImageSourceEvent = function(type, image) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The image related to the event.
|
* The image related to the event.
|
||||||
* @type {module:ol/Image~Image}
|
* @type {module:ol/Image}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
this.image = image;
|
this.image = image;
|
||||||
@@ -72,7 +72,7 @@ inherits(ImageSourceEvent, Event);
|
|||||||
* @property {module:ol/extent~Extent} [extent]
|
* @property {module:ol/extent~Extent} [extent]
|
||||||
* @property {module:ol/proj~ProjectionLike} projection
|
* @property {module:ol/proj~ProjectionLike} projection
|
||||||
* @property {Array.<number>} [resolutions]
|
* @property {Array.<number>} [resolutions]
|
||||||
* @property {module:ol/source/State~State} [state]
|
* @property {module:ol/source/State} [state]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -205,7 +205,7 @@ ImageSource.prototype.getImageInternal = function(extent, resolution, pixelRatio
|
|||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
ImageSource.prototype.handleImageChange = function(event) {
|
ImageSource.prototype.handleImageChange = function(event) {
|
||||||
const image = /** @type {module:ol/Image~Image} */ (event.target);
|
const image = /** @type {module:ol/Image} */ (event.target);
|
||||||
switch (image.getState()) {
|
switch (image.getState()) {
|
||||||
case ImageState.LOADING:
|
case ImageState.LOADING:
|
||||||
this.dispatchEvent(
|
this.dispatchEvent(
|
||||||
@@ -231,7 +231,7 @@ ImageSource.prototype.handleImageChange = function(event) {
|
|||||||
/**
|
/**
|
||||||
* Default image load function for image sources that use module:ol/Image~Image image
|
* Default image load function for image sources that use module:ol/Image~Image image
|
||||||
* instances.
|
* instances.
|
||||||
* @param {module:ol/Image~Image} image Image.
|
* @param {module:ol/Image} image Image.
|
||||||
* @param {string} src Source.
|
* @param {string} src Source.
|
||||||
*/
|
*/
|
||||||
export function defaultImageLoadFunction(image, src) {
|
export function defaultImageLoadFunction(image, src) {
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ const ImageArcGISRest = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/Image~Image}
|
* @type {module:ol/Image}
|
||||||
*/
|
*/
|
||||||
this.image_ = null;
|
this.image_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ import ImageSource from '../source/Image.js';
|
|||||||
* width and height of the map viewport, and so on. Must be `1` or higher.
|
* width and height of the map viewport, and so on. Must be `1` or higher.
|
||||||
* @property {Array.<number>} [resolutions] Resolutions.
|
* @property {Array.<number>} [resolutions] Resolutions.
|
||||||
* If specified, new canvases will be created for these resolutions
|
* If specified, new canvases will be created for these resolutions
|
||||||
* @property {module:ol/source/State~State} [state] Source state.
|
* @property {module:ol/source/State} [state] Source state.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ const ImageMapGuide = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/Image~Image}
|
* @type {module:ol/Image}
|
||||||
*/
|
*/
|
||||||
this.image_ = null;
|
this.image_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const Static = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/Image~Image}
|
* @type {module:ol/Image}
|
||||||
*/
|
*/
|
||||||
this.image_ = new ImageWrapper(imageExtent, undefined, 1, options.url, crossOrigin, imageLoadFunction);
|
this.image_ = new ImageWrapper(imageExtent, undefined, 1, options.url, crossOrigin, imageLoadFunction);
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const ImageWMS = function(opt_options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/Image~Image}
|
* @type {module:ol/Image}
|
||||||
*/
|
*/
|
||||||
this.image_ = null;
|
this.image_ = null;
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import SourceState from '../source/State.js';
|
|||||||
* @typedef {Object} Options
|
* @typedef {Object} Options
|
||||||
* @property {module:ol/source/Source~AttributionLike} [attributions]
|
* @property {module:ol/source/Source~AttributionLike} [attributions]
|
||||||
* @property {module:ol/proj~ProjectionLike} projection
|
* @property {module:ol/proj~ProjectionLike} projection
|
||||||
* @property {module:ol/source/State~State} [state]
|
* @property {module:ol/source/State} [state]
|
||||||
* @property {boolean} [wrapX]
|
* @property {boolean} [wrapX]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ const Source = function(options) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {module:ol/source/State~State}
|
* @type {module:ol/source/State}
|
||||||
*/
|
*/
|
||||||
this.state_ = options.state !== undefined ?
|
this.state_ = options.state !== undefined ?
|
||||||
options.state : SourceState.READY;
|
options.state : SourceState.READY;
|
||||||
@@ -149,7 +149,7 @@ Source.prototype.getResolutions = function() {};
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the state of the source, see {@link module:ol/source/State~State} for possible states.
|
* Get the state of the source, see {@link module:ol/source/State~State} for possible states.
|
||||||
* @return {module:ol/source/State~State} State.
|
* @return {module:ol/source/State} State.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
Source.prototype.getState = function() {
|
Source.prototype.getState = function() {
|
||||||
@@ -189,7 +189,7 @@ Source.prototype.setAttributions = function(attributions) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the state of the source.
|
* Set the state of the source.
|
||||||
* @param {module:ol/source/State~State} state State.
|
* @param {module:ol/source/State} state State.
|
||||||
* @protected
|
* @protected
|
||||||
*/
|
*/
|
||||||
Source.prototype.setState = function(state) {
|
Source.prototype.setState = function(state) {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {wrapX, getForProjection as getTileGridForProjection} from '../tilegrid.j
|
|||||||
* @property {boolean} [opaque]
|
* @property {boolean} [opaque]
|
||||||
* @property {number} [tilePixelRatio]
|
* @property {number} [tilePixelRatio]
|
||||||
* @property {module:ol/proj~ProjectionLike} [projection]
|
* @property {module:ol/proj~ProjectionLike} [projection]
|
||||||
* @property {module:ol/source/State~State} [state]
|
* @property {module:ol/source/State} [state]
|
||||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid]
|
* @property {module:ol/tilegrid/TileGrid} [tileGrid]
|
||||||
* @property {boolean} [wrapX=true]
|
* @property {boolean} [wrapX=true]
|
||||||
* @property {number} [transition]
|
* @property {number} [transition]
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import {getForProjection as getTileGridForProjection} from '../tilegrid.js';
|
|||||||
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
||||||
* @property {boolean} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
* @property {boolean} [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.
|
||||||
* @property {module:ol/source/State~State} [state] Source state.
|
* @property {module:ol/source/State} [state] Source state.
|
||||||
* @property {module:ol/ImageTile~TileClass} [tileClass] Class used to instantiate image tiles.
|
* @property {module:ol/ImageTile~TileClass} [tileClass] Class used to instantiate image tiles.
|
||||||
* Default is {@link module:ol/ImageTile~ImageTile}.
|
* Default is {@link module:ol/ImageTile~ImageTile}.
|
||||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid.
|
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid.
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import {getKeyZXY} from '../tilecoord.js';
|
|||||||
* @property {module:ol/extent~Extent} [extent]
|
* @property {module:ol/extent~Extent} [extent]
|
||||||
* @property {boolean} [opaque]
|
* @property {boolean} [opaque]
|
||||||
* @property {module:ol/proj~ProjectionLike} [projection]
|
* @property {module:ol/proj~ProjectionLike} [projection]
|
||||||
* @property {module:ol/source/State~State} [state]
|
* @property {module:ol/source/State} [state]
|
||||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid]
|
* @property {module:ol/tilegrid/TileGrid} [tileGrid]
|
||||||
* @property {module:ol/Tile~LoadFunction} tileLoadFunction
|
* @property {module:ol/Tile~LoadFunction} tileLoadFunction
|
||||||
* @property {number} [tilePixelRatio]
|
* @property {number} [tilePixelRatio]
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import {createXYZ, extentFromProjection, createForProjection} from '../tilegrid.
|
|||||||
* boundaries or TopoJSON sources) allows the renderer to optimise fill and
|
* boundaries or TopoJSON sources) allows the renderer to optimise fill and
|
||||||
* stroke operations.
|
* stroke operations.
|
||||||
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
* @property {module:ol/proj~ProjectionLike} projection Projection.
|
||||||
* @property {module:ol/source/State~State} [state] Source state.
|
* @property {module:ol/source/State} [state] Source state.
|
||||||
* @property {module:ol/VectorTile~TileClass} [tileClass] Class used to instantiate image tiles.
|
* @property {module:ol/VectorTile~TileClass} [tileClass] Class used to instantiate image tiles.
|
||||||
* Default is {@link module:ol/VectorTile}.
|
* Default is {@link module:ol/VectorTile}.
|
||||||
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid.
|
* @property {module:ol/tilegrid/TileGrid} [tileGrid] Tile grid.
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export function wrapX(tileGrid, tileCoord, projection) {
|
|||||||
* DEFAULT_MAX_ZOOM).
|
* DEFAULT_MAX_ZOOM).
|
||||||
* @param {number|module:ol/size~Size=} opt_tileSize Tile size (default uses
|
* @param {number|module:ol/size~Size=} opt_tileSize Tile size (default uses
|
||||||
* DEFAULT_TILE_SIZE).
|
* DEFAULT_TILE_SIZE).
|
||||||
* @param {module:ol/extent/Corner~Corner=} opt_corner Extent corner (default is `'top-left'`).
|
* @param {module:ol/extent/Corner=} opt_corner Extent corner (default is `'top-left'`).
|
||||||
* @return {!module:ol/tilegrid/TileGrid} TileGrid instance.
|
* @return {!module:ol/tilegrid/TileGrid} TileGrid instance.
|
||||||
*/
|
*/
|
||||||
export function createForExtent(extent, opt_maxZoom, opt_tileSize, opt_corner) {
|
export function createForExtent(extent, opt_maxZoom, opt_tileSize, opt_corner) {
|
||||||
@@ -139,7 +139,7 @@ function resolutionsFromExtent(extent, opt_maxZoom, opt_tileSize) {
|
|||||||
* DEFAULT_MAX_ZOOM).
|
* DEFAULT_MAX_ZOOM).
|
||||||
* @param {number|module:ol/size~Size=} opt_tileSize Tile size (default uses
|
* @param {number|module:ol/size~Size=} opt_tileSize Tile size (default uses
|
||||||
* DEFAULT_TILE_SIZE).
|
* DEFAULT_TILE_SIZE).
|
||||||
* @param {module:ol/extent/Corner~Corner=} opt_corner Extent corner (default is `'top-left'`).
|
* @param {module:ol/extent/Corner=} opt_corner Extent corner (default is `'top-left'`).
|
||||||
* @return {!module:ol/tilegrid/TileGrid} TileGrid instance.
|
* @return {!module:ol/tilegrid/TileGrid} TileGrid instance.
|
||||||
*/
|
*/
|
||||||
export function createForProjection(projection, opt_maxZoom, opt_tileSize, opt_corner) {
|
export function createForProjection(projection, opt_maxZoom, opt_tileSize, opt_corner) {
|
||||||
|
|||||||
Reference in New Issue
Block a user