Use Object<Foo, Bar> instead of Object.<Foo, Bar>

This commit is contained in:
Tim Schaub
2018-07-25 18:33:49 -07:00
parent d12ef20b12
commit affbf59b77
92 changed files with 334 additions and 334 deletions

View File

@@ -54,7 +54,7 @@ import Style from './style/Style.js';
*/ */
class Feature extends BaseObject { class Feature extends BaseObject {
/** /**
* @param {module:ol/geom/Geometry|Object.<string, *>=} opt_geometryOrProperties * @param {module:ol/geom/Geometry|Object<string, *>=} opt_geometryOrProperties
* You may pass a Geometry object directly, or an object literal containing * You may pass a Geometry object directly, or an object literal containing
* properties. If you pass an object literal, you may include a Geometry * properties. If you pass an object literal, you may include a Geometry
* associated with a `geometry` key. * associated with a `geometry` key.
@@ -104,7 +104,7 @@ class Feature extends BaseObject {
const geometry = opt_geometryOrProperties; const geometry = opt_geometryOrProperties;
this.setGeometry(geometry); this.setGeometry(geometry);
} else { } else {
/** @type {Object.<string, *>} */ /** @type {Object<string, *>} */
const properties = opt_geometryOrProperties; const properties = opt_geometryOrProperties;
this.setProperties(properties); this.setProperties(properties);
} }

View File

@@ -68,7 +68,7 @@ class MapBrowserEventHandler extends EventTarget {
this.activePointers_ = 0; this.activePointers_ = 0;
/** /**
* @type {!Object.<number, boolean>} * @type {!Object<number, boolean>}
* @private * @private
*/ */
this.trackedTouches_ = {}; this.trackedTouches_ = {};

View File

@@ -88,7 +88,7 @@ class ObjectEvent extends Event {
class BaseObject extends Observable { class BaseObject extends Observable {
/** /**
* @param {Object.<string, *>=} opt_values An object with key-value pairs. * @param {Object<string, *>=} opt_values An object with key-value pairs.
*/ */
constructor(opt_values) { constructor(opt_values) {
super(); super();
@@ -101,7 +101,7 @@ class BaseObject extends Observable {
/** /**
* @private * @private
* @type {!Object.<string, *>} * @type {!Object<string, *>}
*/ */
this.values_ = {}; this.values_ = {};
@@ -135,7 +135,7 @@ class BaseObject extends Observable {
/** /**
* Get an object of all property names and values. * Get an object of all property names and values.
* @return {Object.<string, *>} Object. * @return {Object<string, *>} Object.
* @api * @api
*/ */
getProperties() { getProperties() {
@@ -176,7 +176,7 @@ class BaseObject extends Observable {
/** /**
* Sets a collection of key-value pairs. Note that this changes any existing * Sets a collection of key-value pairs. Note that this changes any existing
* properties and adds new ones (it does not remove any existing properties). * properties and adds new ones (it does not remove any existing properties).
* @param {Object.<string, *>} values Values. * @param {Object<string, *>} values Values.
* @param {boolean=} opt_silent Update without triggering an event. * @param {boolean=} opt_silent Update without triggering an event.
* @api * @api
*/ */
@@ -205,7 +205,7 @@ class BaseObject extends Observable {
/** /**
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const changeEventTypeCache = {}; const changeEventTypeCache = {};

View File

@@ -41,16 +41,16 @@ import {create as createTransform, apply as applyTransform} from './transform.js
* @property {null|module:ol/extent~Extent} extent * @property {null|module:ol/extent~Extent} extent
* @property {module:ol/coordinate~Coordinate} focus * @property {module:ol/coordinate~Coordinate} focus
* @property {number} index * @property {number} index
* @property {Object.<number, module:ol/layer/Layer~State>} layerStates * @property {Object<number, module:ol/layer/Layer~State>} layerStates
* @property {Array<module:ol/layer/Layer~State>} layerStatesArray * @property {Array<module:ol/layer/Layer~State>} layerStatesArray
* @property {module:ol/transform~Transform} pixelToCoordinateTransform * @property {module:ol/transform~Transform} pixelToCoordinateTransform
* @property {Array<module:ol/PluggableMap~PostRenderFunction>} postRenderFunctions * @property {Array<module:ol/PluggableMap~PostRenderFunction>} postRenderFunctions
* @property {module:ol/size~Size} size * @property {module:ol/size~Size} size
* @property {!Object.<string, boolean>} skippedFeatureUids * @property {!Object<string, boolean>} skippedFeatureUids
* @property {module:ol/TileQueue} tileQueue * @property {module:ol/TileQueue} tileQueue
* @property {Object.<string, Object.<string, module:ol/TileRange>>} usedTiles * @property {Object<string, Object<string, module:ol/TileRange>>} usedTiles
* @property {Array<number>} viewHints * @property {Array<number>} viewHints
* @property {!Object.<string, Object.<string, boolean>>} wantedTiles * @property {!Object<string, Object<string, boolean>>} wantedTiles
*/ */
@@ -78,7 +78,7 @@ import {create as createTransform, apply as applyTransform} from './transform.js
* @property {module:ol/Collection.<module:ol/interaction/Interaction>} [interactions] * @property {module:ol/Collection.<module:ol/interaction/Interaction>} [interactions]
* @property {HTMLElement|Document} keyboardEventTarget * @property {HTMLElement|Document} keyboardEventTarget
* @property {module:ol/Collection.<module:ol/Overlay>} overlays * @property {module:ol/Collection.<module:ol/Overlay>} overlays
* @property {Object.<string, *>} values * @property {Object<string, *>} values
*/ */
@@ -330,7 +330,7 @@ class PluggableMap extends BaseObject {
/** /**
* A lookup of overlays by id. * A lookup of overlays by id.
* @private * @private
* @type {Object.<string, module:ol/Overlay>} * @type {Object<string, module:ol/Overlay>}
*/ */
this.overlayIdIndex_ = {}; this.overlayIdIndex_ = {};
@@ -368,7 +368,7 @@ class PluggableMap extends BaseObject {
/** /**
* Uids of features to skip at rendering time. * Uids of features to skip at rendering time.
* @type {Object.<string, boolean>} * @type {Object<string, boolean>}
* @private * @private
*/ */
this.skippedFeatureUids_ = {}; this.skippedFeatureUids_ = {};
@@ -1356,7 +1356,7 @@ function createOptionsInternal(options) {
} }
/** /**
* @type {Object.<string, *>} * @type {Object<string, *>}
*/ */
const values = {}; const values = {};

View File

@@ -93,7 +93,7 @@ class Tile extends EventTarget {
/** /**
* Lookup of start times for rendering transitions. If the start time is * Lookup of start times for rendering transitions. If the start time is
* equal to -1, the transition is complete. * equal to -1, the transition is complete.
* @type {Object.<number, number>} * @type {Object<number, number>}
*/ */
this.transitionStarts_ = {}; this.transitionStarts_ = {};

View File

@@ -16,7 +16,7 @@ class TileCache extends LRUCache {
} }
/** /**
* @param {!Object.<string, module:ol/TileRange>} usedTiles Used tiles. * @param {!Object<string, module:ol/TileRange>} usedTiles Used tiles.
*/ */
expireCache(usedTiles) { expireCache(usedTiles) {
while (this.canExpireCache()) { while (this.canExpireCache()) {

View File

@@ -50,7 +50,7 @@ class TileQueue extends PriorityQueue {
/** /**
* @private * @private
* @type {!Object.<string,boolean>} * @type {!Object<string,boolean>}
*/ */
this.tilesLoadingKeys_ = {}; this.tilesLoadingKeys_ = {};

View File

@@ -33,7 +33,7 @@ class VectorImageTile extends Tile {
* @param {module:ol/Tile~UrlFunction} tileUrlFunction Tile url function. * @param {module:ol/Tile~UrlFunction} tileUrlFunction Tile url function.
* @param {module:ol/tilegrid/TileGrid} sourceTileGrid Tile grid of the source. * @param {module:ol/tilegrid/TileGrid} sourceTileGrid Tile grid of the source.
* @param {module:ol/tilegrid/TileGrid} tileGrid Tile grid of the renderer. * @param {module:ol/tilegrid/TileGrid} tileGrid Tile grid of the renderer.
* @param {Object.<string, module:ol/VectorTile>} sourceTiles Source tiles. * @param {Object<string, module:ol/VectorTile>} sourceTiles Source tiles.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {module:ol/proj/Projection} projection Projection. * @param {module:ol/proj/Projection} projection Projection.
* @param {function(new: module:ol/VectorTile, module:ol/tilecoord~TileCoord, module:ol/TileState, string, * @param {function(new: module:ol/VectorTile, module:ol/tilecoord~TileCoord, module:ol/TileState, string,
@@ -51,7 +51,7 @@ class VectorImageTile extends Tile {
/** /**
* @private * @private
* @type {!Object.<string, CanvasRenderingContext2D>} * @type {!Object<string, CanvasRenderingContext2D>}
*/ */
this.context_ = {}; this.context_ = {};
@@ -63,13 +63,13 @@ class VectorImageTile extends Tile {
/** /**
* @private * @private
* @type {!Object.<string, module:ol/VectorImageTile~ReplayState>} * @type {!Object<string, module:ol/VectorImageTile~ReplayState>}
*/ */
this.replayState_ = {}; this.replayState_ = {};
/** /**
* @private * @private
* @type {Object.<string, module:ol/VectorTile>} * @type {Object<string, module:ol/VectorTile>}
*/ */
this.sourceTiles_ = sourceTiles; this.sourceTiles_ = sourceTiles;

View File

@@ -70,7 +70,7 @@ class VectorTile extends Tile {
/** /**
* @private * @private
* @type {Object.<string, module:ol/render/ReplayGroup>} * @type {Object<string, module:ol/render/ReplayGroup>}
*/ */
this.replayGroups_ = {}; this.replayGroups_ = {};

View File

@@ -273,7 +273,7 @@ class View extends BaseObject {
applyOptions_(options) { applyOptions_(options) {
/** /**
* @type {Object.<string, *>} * @type {Object<string, *>}
*/ */
const properties = {}; const properties = {};
properties[ViewProperty.CENTER] = options.center !== undefined ? properties[ViewProperty.CENTER] = options.center !== undefined ?

View File

@@ -84,7 +84,7 @@ export const fromString = (
const MAX_CACHE_SIZE = 1024; const MAX_CACHE_SIZE = 1024;
/** /**
* @type {Object.<string, module:ol/color~Color>} * @type {Object<string, module:ol/color~Color>}
*/ */
const cache = {}; const cache = {};

View File

@@ -153,7 +153,7 @@ class Attribution extends Control {
getSourceAttributions_(frameState) { getSourceAttributions_(frameState) {
/** /**
* Used to determine if an attribution already exists. * Used to determine if an attribution already exists.
* @type {!Object.<string, boolean>} * @type {!Object<string, boolean>}
*/ */
const lookup = {}; const lookup = {};

View File

@@ -62,7 +62,7 @@ export const CLASS_COLLAPSED = 'ol-collapsed';
* Get the list of font families from a font spec. Note that this doesn't work * Get the list of font families from a font spec. Note that this doesn't work
* for font families that have commas in them. * for font families that have commas in them.
* @param {string} The CSS font property. * @param {string} The CSS font property.
* @return {Object.<string>} The font families (or null if the input spec is invalid). * @return {Object<string>} The font families (or null if the input spec is invalid).
*/ */
export const getFontFamilies = (function() { export const getFontFamilies = (function() {
let style; let style;

View File

@@ -87,7 +87,7 @@ export function getListeners(target, type) {
* Get the lookup of listeners. If one does not exist on the target, it is * Get the lookup of listeners. If one does not exist on the target, it is
* created. * created.
* @param {module:ol/events/EventTarget~EventTargetLike} target Target. * @param {module:ol/events/EventTarget~EventTargetLike} target Target.
* @return {!Object.<string, Array<module:ol/events~EventsKey>>} Map of * @return {!Object<string, Array<module:ol/events~EventsKey>>} Map of
* listeners by event type. * listeners by event type.
*/ */
function getListenerMap(target) { function getListenerMap(target) {

View File

@@ -34,19 +34,19 @@ class EventTarget extends Disposable {
/** /**
* @private * @private
* @type {!Object.<string, number>} * @type {!Object<string, number>}
*/ */
this.pendingRemovals_ = {}; this.pendingRemovals_ = {};
/** /**
* @private * @private
* @type {!Object.<string, number>} * @type {!Object<string, number>}
*/ */
this.dispatching_ = {}; this.dispatching_ = {};
/** /**
* @private * @private
* @type {!Object.<string, Array<module:ol/events~ListenerFunction>>} * @type {!Object<string, Array<module:ol/events~ListenerFunction>>}
*/ */
this.listeners_ = {}; this.listeners_ = {};

View File

@@ -23,7 +23,7 @@ import {get as getProjection} from '../proj.js';
/** /**
* @const * @const
* @type {Object.<module:ol/geom/GeometryType, function(EsriJSONGeometry): module:ol/geom/Geometry>} * @type {Object<module:ol/geom/GeometryType, function(EsriJSONGeometry): module:ol/geom/Geometry>}
*/ */
const GEOMETRY_READERS = {}; const GEOMETRY_READERS = {};
GEOMETRY_READERS[GeometryType.POINT] = readPointGeometry; GEOMETRY_READERS[GeometryType.POINT] = readPointGeometry;
@@ -36,7 +36,7 @@ GEOMETRY_READERS[GeometryType.MULTI_POLYGON] = readMultiPolygonGeometry;
/** /**
* @const * @const
* @type {Object.<string, function(module:ol/geom/Geometry, module:ol/format/Feature~WriteOptions=): (EsriJSONGeometry)>} * @type {Object<string, function(module:ol/geom/Geometry, module:ol/format/Feature~WriteOptions=): (EsriJSONGeometry)>}
*/ */
const GEOMETRY_WRITERS = {}; const GEOMETRY_WRITERS = {};
GEOMETRY_WRITERS[GeometryType.POINT] = writePointGeometry; GEOMETRY_WRITERS[GeometryType.POINT] = writePointGeometry;

View File

@@ -21,7 +21,7 @@ const schemaLocation = GMLNS + ' http://schemas.opengis.net/gml/2.1.2/feature.xs
/** /**
* @const * @const
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const MULTIGEOMETRY_TO_MEMBER_NODENAME = { const MULTIGEOMETRY_TO_MEMBER_NODENAME = {
'MultiLineString': 'lineStringMember', 'MultiLineString': 'lineStringMember',
@@ -587,7 +587,7 @@ class GML2 extends GMLBase {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = { GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
@@ -598,7 +598,7 @@ GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = { GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
@@ -610,7 +610,7 @@ GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML2.prototype.BOX_PARSERS_ = { GML2.prototype.BOX_PARSERS_ = {
@@ -622,7 +622,7 @@ GML2.prototype.BOX_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML2.prototype.GEOMETRY_PARSERS_ = { GML2.prototype.GEOMETRY_PARSERS_ = {
@@ -645,7 +645,7 @@ GML2.prototype.GEOMETRY_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML2.prototype.GEOMETRY_SERIALIZERS_ = { GML2.prototype.GEOMETRY_SERIALIZERS_ = {
@@ -677,7 +677,7 @@ GML2.prototype.GEOMETRY_SERIALIZERS_ = {
}; };
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML2.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = { GML2.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
@@ -690,7 +690,7 @@ GML2.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
}; };
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML2.prototype.RING_SERIALIZERS_ = { GML2.prototype.RING_SERIALIZERS_ = {
@@ -701,7 +701,7 @@ GML2.prototype.RING_SERIALIZERS_ = {
}; };
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML2.prototype.POINTMEMBER_SERIALIZERS_ = { GML2.prototype.POINTMEMBER_SERIALIZERS_ = {
@@ -713,7 +713,7 @@ GML2.prototype.POINTMEMBER_SERIALIZERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML2.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = { GML2.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
@@ -726,7 +726,7 @@ GML2.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
}; };
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML2.prototype.ENVELOPE_SERIALIZERS_ = { GML2.prototype.ENVELOPE_SERIALIZERS_ = {

View File

@@ -31,7 +31,7 @@ const schemaLocation = GMLNS +
/** /**
* @const * @const
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const MULTIGEOMETRY_TO_MEMBER_NODENAME = { const MULTIGEOMETRY_TO_MEMBER_NODENAME = {
'MultiLineString': 'lineStringMember', 'MultiLineString': 'lineStringMember',
@@ -920,7 +920,7 @@ class GML3 extends GMLBase {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = { GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
@@ -933,7 +933,7 @@ GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = { GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
@@ -946,7 +946,7 @@ GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.GEOMETRY_PARSERS_ = { GML3.prototype.GEOMETRY_PARSERS_ = {
@@ -976,7 +976,7 @@ GML3.prototype.GEOMETRY_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.MULTICURVE_PARSERS_ = { GML3.prototype.MULTICURVE_PARSERS_ = {
@@ -991,7 +991,7 @@ GML3.prototype.MULTICURVE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.MULTISURFACE_PARSERS_ = { GML3.prototype.MULTISURFACE_PARSERS_ = {
@@ -1006,7 +1006,7 @@ GML3.prototype.MULTISURFACE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.CURVEMEMBER_PARSERS_ = { GML3.prototype.CURVEMEMBER_PARSERS_ = {
@@ -1020,7 +1020,7 @@ GML3.prototype.CURVEMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.SURFACEMEMBER_PARSERS_ = { GML3.prototype.SURFACEMEMBER_PARSERS_ = {
@@ -1033,7 +1033,7 @@ GML3.prototype.SURFACEMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.SURFACE_PARSERS_ = { GML3.prototype.SURFACE_PARSERS_ = {
@@ -1045,7 +1045,7 @@ GML3.prototype.SURFACE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.CURVE_PARSERS_ = { GML3.prototype.CURVE_PARSERS_ = {
@@ -1057,7 +1057,7 @@ GML3.prototype.CURVE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.ENVELOPE_PARSERS_ = { GML3.prototype.ENVELOPE_PARSERS_ = {
@@ -1072,7 +1072,7 @@ GML3.prototype.ENVELOPE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.PATCHES_PARSERS_ = { GML3.prototype.PATCHES_PARSERS_ = {
@@ -1085,7 +1085,7 @@ GML3.prototype.PATCHES_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GML3.prototype.SEGMENTS_PARSERS_ = { GML3.prototype.SEGMENTS_PARSERS_ = {
@@ -1109,7 +1109,7 @@ GML3.prototype.writeFeatures;
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML3.prototype.RING_SERIALIZERS_ = { GML3.prototype.RING_SERIALIZERS_ = {
@@ -1121,7 +1121,7 @@ GML3.prototype.RING_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML3.prototype.ENVELOPE_SERIALIZERS_ = { GML3.prototype.ENVELOPE_SERIALIZERS_ = {
@@ -1133,7 +1133,7 @@ GML3.prototype.ENVELOPE_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML3.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = { GML3.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
@@ -1147,7 +1147,7 @@ GML3.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML3.prototype.POINTMEMBER_SERIALIZERS_ = { GML3.prototype.POINTMEMBER_SERIALIZERS_ = {
@@ -1159,7 +1159,7 @@ GML3.prototype.POINTMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML3.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = { GML3.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
@@ -1173,7 +1173,7 @@ GML3.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private * @private
*/ */
GML3.prototype.GEOMETRY_SERIALIZERS_ = { GML3.prototype.GEOMETRY_SERIALIZERS_ = {

View File

@@ -44,7 +44,7 @@ const ONLY_WHITESPACE_RE = /^[\s\xa0]*$/;
/** /**
* @typedef {Object} Options * @typedef {Object} Options
* @property {Object.<string, string>|string} [featureNS] Feature * @property {Object<string, string>|string} [featureNS] Feature
* namespace. If not defined will be derived from GML. If multiple * namespace. If not defined will be derived from GML. If multiple
* feature types have been configured which come from different feature * feature types have been configured which come from different feature
* namespaces, this will be an object with the keys being the prefixes used * namespaces, this will be an object with the keys being the prefixes used
@@ -102,7 +102,7 @@ class GMLBase extends XMLFeature {
/** /**
* @protected * @protected
* @type {Object.<string, string>|string|undefined} * @type {Object<string, string>|string|undefined}
*/ */
this.featureNS = options.featureNS; this.featureNS = options.featureNS;
@@ -119,7 +119,7 @@ class GMLBase extends XMLFeature {
this.schemaLocation = ''; this.schemaLocation = '';
/** /**
* @type {Object.<string, Object.<string, Object>>} * @type {Object<string, Object<string, Object>>}
*/ */
this.FEATURE_COLLECTION_PARSERS = {}; this.FEATURE_COLLECTION_PARSERS = {};
this.FEATURE_COLLECTION_PARSERS[GMLNS] = { this.FEATURE_COLLECTION_PARSERS[GMLNS] = {
@@ -471,7 +471,7 @@ class GMLBase extends XMLFeature {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GMLBase.prototype.MULTIPOINT_PARSERS_ = { GMLBase.prototype.MULTIPOINT_PARSERS_ = {
@@ -484,7 +484,7 @@ GMLBase.prototype.MULTIPOINT_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GMLBase.prototype.MULTILINESTRING_PARSERS_ = { GMLBase.prototype.MULTILINESTRING_PARSERS_ = {
@@ -497,7 +497,7 @@ GMLBase.prototype.MULTILINESTRING_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GMLBase.prototype.MULTIPOLYGON_PARSERS_ = { GMLBase.prototype.MULTIPOLYGON_PARSERS_ = {
@@ -510,7 +510,7 @@ GMLBase.prototype.MULTIPOLYGON_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GMLBase.prototype.POINTMEMBER_PARSERS_ = { GMLBase.prototype.POINTMEMBER_PARSERS_ = {
@@ -522,7 +522,7 @@ GMLBase.prototype.POINTMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GMLBase.prototype.LINESTRINGMEMBER_PARSERS_ = { GMLBase.prototype.LINESTRINGMEMBER_PARSERS_ = {
@@ -534,7 +534,7 @@ GMLBase.prototype.LINESTRINGMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private * @private
*/ */
GMLBase.prototype.POLYGONMEMBER_PARSERS_ = { GMLBase.prototype.POLYGONMEMBER_PARSERS_ = {
@@ -546,7 +546,7 @@ GMLBase.prototype.POLYGONMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @protected * @protected
*/ */
GMLBase.prototype.RING_PARSERS = { GMLBase.prototype.RING_PARSERS = {

View File

@@ -38,7 +38,7 @@ const SCHEMA_LOCATION = 'http://www.topografix.com/GPX/1/1 ' +
/** /**
* @const * @const
* @type {Object.<string, function(Node, Array<*>): (module:ol/Feature|undefined)>} * @type {Object<string, function(Node, Array<*>): (module:ol/Feature|undefined)>}
*/ */
const FEATURE_READER = { const FEATURE_READER = {
'rte': readRte, 'rte': readRte,
@@ -49,7 +49,7 @@ const FEATURE_READER = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const GPX_PARSERS = makeStructureNS( const GPX_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -61,7 +61,7 @@ const GPX_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LINK_PARSERS = makeStructureNS( const LINK_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -72,7 +72,7 @@ const LINK_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const GPX_SERIALIZERS = makeStructureNS( const GPX_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -225,7 +225,7 @@ class GPX extends XMLFeature {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const RTE_PARSERS = makeStructureNS( const RTE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -243,7 +243,7 @@ const RTE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const RTEPT_PARSERS = makeStructureNS( const RTEPT_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -254,7 +254,7 @@ const RTEPT_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TRK_PARSERS = makeStructureNS( const TRK_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -272,7 +272,7 @@ const TRK_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TRKSEG_PARSERS = makeStructureNS( const TRKSEG_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -282,7 +282,7 @@ const TRKSEG_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TRKPT_PARSERS = makeStructureNS( const TRKPT_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -293,7 +293,7 @@ const TRKPT_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const WPT_PARSERS = makeStructureNS( const WPT_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -328,7 +328,7 @@ const LINK_SEQUENCE = ['text', 'type'];
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const LINK_SERIALIZERS = makeStructureNS( const LINK_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -339,7 +339,7 @@ const LINK_SERIALIZERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const RTE_SEQUENCE = makeStructureNS( const RTE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -349,7 +349,7 @@ const RTE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const RTE_SERIALIZERS = makeStructureNS( const RTE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -366,7 +366,7 @@ const RTE_SERIALIZERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const RTEPT_TYPE_SEQUENCE = makeStructureNS( const RTEPT_TYPE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -376,7 +376,7 @@ const RTEPT_TYPE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const TRK_SEQUENCE = makeStructureNS( const TRK_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -386,7 +386,7 @@ const TRK_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const TRK_SERIALIZERS = makeStructureNS( const TRK_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -410,7 +410,7 @@ const TRKSEG_NODE_FACTORY = makeSimpleNodeFactory('trkpt');
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const TRKSEG_SERIALIZERS = makeStructureNS( const TRKSEG_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -420,7 +420,7 @@ const TRKSEG_SERIALIZERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const WPT_TYPE_SEQUENCE = makeStructureNS( const WPT_TYPE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -432,7 +432,7 @@ const WPT_TYPE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const WPT_TYPE_SERIALIZERS = makeStructureNS( const WPT_TYPE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -459,7 +459,7 @@ const WPT_TYPE_SERIALIZERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const GEOMETRY_TYPE_TO_NODENAME = { const GEOMETRY_TYPE_TO_NODENAME = {
'Point': 'wpt', 'Point': 'wpt',

View File

@@ -231,7 +231,7 @@ class GeoJSON extends JSONFeature {
/** /**
* @const * @const
* @type {Object.<string, function(GeoJSONObject): module:ol/geom/Geometry>} * @type {Object<string, function(GeoJSONObject): module:ol/geom/Geometry>}
*/ */
const GEOMETRY_READERS = { const GEOMETRY_READERS = {
'Point': readPointGeometry, 'Point': readPointGeometry,
@@ -246,7 +246,7 @@ const GEOMETRY_READERS = {
/** /**
* @const * @const
* @type {Object.<string, function(module:ol/geom/Geometry, module:ol/format/Feature~WriteOptions=): (GeoJSONGeometry|GeoJSONGeometryCollection)>} * @type {Object<string, function(module:ol/geom/Geometry, module:ol/format/Feature~WriteOptions=): (GeoJSONGeometry|GeoJSONGeometryCollection)>}
*/ */
const GEOMETRY_WRITERS = { const GEOMETRY_WRITERS = {
'Point': writePointGeometry, 'Point': writePointGeometry,

View File

@@ -94,7 +94,7 @@ class IGC extends TextFeature {
readFeatureFromText(text, opt_options) { readFeatureFromText(text, opt_options) {
const altitudeMode = this.altitudeMode_; const altitudeMode = this.altitudeMode_;
const lines = text.split(NEWLINE_RE); const lines = text.split(NEWLINE_RE);
/** @type {Object.<string, string>} */ /** @type {Object<string, string>} */
const properties = {}; const properties = {};
const flatCoordinates = []; const flatCoordinates = [];
let year = 2000; let year = 2000;

View File

@@ -79,7 +79,7 @@ const SCHEMA_LOCATION = 'http://www.opengis.net/kml/2.2 ' +
/** /**
* @type {Object.<string, module:ol/style/IconAnchorUnits>} * @type {Object<string, module:ol/style/IconAnchorUnits>}
*/ */
const ICON_ANCHOR_UNITS_MAP = { const ICON_ANCHOR_UNITS_MAP = {
'fraction': IconAnchorUnits.FRACTION, 'fraction': IconAnchorUnits.FRACTION,
@@ -89,7 +89,7 @@ const ICON_ANCHOR_UNITS_MAP = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PLACEMARK_PARSERS = makeStructureNS( const PLACEMARK_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -126,7 +126,7 @@ const PLACEMARK_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const NETWORK_LINK_PARSERS = makeStructureNS( const NETWORK_LINK_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -144,7 +144,7 @@ const NETWORK_LINK_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LINK_PARSERS = makeStructureNS( const LINK_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -154,7 +154,7 @@ const LINK_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const REGION_PARSERS = makeStructureNS( const REGION_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -165,7 +165,7 @@ const REGION_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const KML_SEQUENCE = makeStructureNS( const KML_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -175,7 +175,7 @@ const KML_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const KML_SERIALIZERS = makeStructureNS( const KML_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -441,7 +441,7 @@ class KML extends XMLFeature {
/** /**
* @private * @private
* @type {!Object.<string, (Array<module:ol/style/Style>|string)>} * @type {!Object<string, (Array<module:ol/style/Style>|string)>}
*/ */
this.sharedStyles_ = {}; this.sharedStyles_ = {};
@@ -905,7 +905,7 @@ function createNameStyleFunction(foundStyle, name) {
* @param {Array<module:ol/style/Style>|undefined} style Style. * @param {Array<module:ol/style/Style>|undefined} style Style.
* @param {string} styleUrl Style URL. * @param {string} styleUrl Style URL.
* @param {Array<module:ol/style/Style>} defaultStyle Default style. * @param {Array<module:ol/style/Style>} defaultStyle Default style.
* @param {!Object.<string, (Array<module:ol/style/Style>|string)>} sharedStyles Shared styles. * @param {!Object<string, (Array<module:ol/style/Style>|string)>} sharedStyles Shared styles.
* @param {boolean|undefined} showPointNames true to show names for point placemarks. * @param {boolean|undefined} showPointNames true to show names for point placemarks.
* @return {module:ol/style/Style~StyleFunction} Feature style function. * @return {module:ol/style/Style~StyleFunction} Feature style function.
*/ */
@@ -962,7 +962,7 @@ function createFeatureStyleFunction(style, styleUrl, defaultStyle, sharedStyles,
/** /**
* @param {Array<module:ol/style/Style>|string|undefined} styleValue Style value. * @param {Array<module:ol/style/Style>|string|undefined} styleValue Style value.
* @param {Array<module:ol/style/Style>} defaultStyle Default style. * @param {Array<module:ol/style/Style>} defaultStyle Default style.
* @param {!Object.<string, (Array<module:ol/style/Style>|string)>} sharedStyles * @param {!Object<string, (Array<module:ol/style/Style>|string)>} sharedStyles
* Shared styles. * Shared styles.
* @return {Array<module:ol/style/Style>} Style. * @return {Array<module:ol/style/Style>} Style.
*/ */
@@ -1094,7 +1094,7 @@ function readScale(node) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const STYLE_MAP_PARSERS = makeStructureNS( const STYLE_MAP_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1115,7 +1115,7 @@ function readStyleMapValue(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const ICON_STYLE_PARSERS = makeStructureNS( const ICON_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1231,7 +1231,7 @@ function iconStyleParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LABEL_STYLE_PARSERS = makeStructureNS( const LABEL_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1266,7 +1266,7 @@ function labelStyleParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LINE_STYLE_PARSERS = makeStructureNS( const LINE_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1302,7 +1302,7 @@ function lineStyleParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const POLY_STYLE_PARSERS = makeStructureNS( const POLY_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1342,7 +1342,7 @@ function polyStyleParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const FLAT_LINEAR_RING_PARSERS = makeStructureNS( const FLAT_LINEAR_RING_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1386,7 +1386,7 @@ function gxCoordParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const GX_MULTITRACK_GEOMETRY_PARSERS = makeStructureNS( const GX_MULTITRACK_GEOMETRY_PARSERS = makeStructureNS(
GX_NAMESPACE_URIS, { GX_NAMESPACE_URIS, {
@@ -1411,7 +1411,7 @@ function readGxMultiTrack(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const GX_TRACK_PARSERS = makeStructureNS( const GX_TRACK_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1447,7 +1447,7 @@ function readGxTrack(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const ICON_PARSERS = makeStructureNS( const ICON_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1479,7 +1479,7 @@ function readIcon(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const GEOMETRY_FLAT_COORDINATES_PARSERS = makeStructureNS( const GEOMETRY_FLAT_COORDINATES_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1500,7 +1500,7 @@ function readFlatCoordinatesFromNode(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const EXTRUDE_AND_ALTITUDE_MODE_PARSERS = makeStructureNS( const EXTRUDE_AND_ALTITUDE_MODE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1554,7 +1554,7 @@ function readLinearRing(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const MULTI_GEOMETRY_PARSERS = makeStructureNS( const MULTI_GEOMETRY_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1648,7 +1648,7 @@ function readPoint(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const FLAT_LINEAR_RINGS_PARSERS = makeStructureNS( const FLAT_LINEAR_RINGS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1686,7 +1686,7 @@ function readPolygon(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const STYLE_PARSERS = makeStructureNS( const STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1778,7 +1778,7 @@ function setCommonGeometryProperties(multiGeometry, geometries) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const DATA_PARSERS = makeStructureNS( const DATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1806,7 +1806,7 @@ function dataParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const EXTENDED_DATA_PARSERS = makeStructureNS( const EXTENDED_DATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1833,7 +1833,7 @@ function regionParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PAIR_PARSERS = makeStructureNS( const PAIR_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1892,7 +1892,7 @@ function placemarkStyleMapParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const SCHEMA_DATA_PARSERS = makeStructureNS( const SCHEMA_DATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1925,7 +1925,7 @@ function simpleDataParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LAT_LON_ALT_BOX_PARSERS = makeStructureNS( const LAT_LON_ALT_BOX_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1964,7 +1964,7 @@ function latLonAltBoxParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LOD_PARSERS = makeStructureNS( const LOD_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -1994,7 +1994,7 @@ function lodParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const INNER_BOUNDARY_IS_PARSERS = makeStructureNS( const INNER_BOUNDARY_IS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2020,7 +2020,7 @@ function innerBoundaryIsParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const OUTER_BOUNDARY_IS_PARSERS = makeStructureNS( const OUTER_BOUNDARY_IS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2125,7 +2125,7 @@ function writeCoordinatesTextNode(node, coordinates, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const EXTENDEDDATA_NODE_SERIALIZERS = makeStructureNS( const EXTENDEDDATA_NODE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2182,7 +2182,7 @@ function writeDataNodeValue(node, value) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const DOCUMENT_SERIALIZERS = makeStructureNS( const DOCUMENT_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2245,7 +2245,7 @@ function writeExtendedData(node, namesAndValues, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const ICON_SEQUENCE = makeStructureNS( const ICON_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2258,7 +2258,7 @@ const ICON_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const ICON_SERIALIZERS = makeStructureNS( const ICON_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2308,7 +2308,7 @@ function writeIcon(node, icon, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const ICON_STYLE_SEQUENCE = makeStructureNS( const ICON_STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2318,7 +2318,7 @@ const ICON_STYLE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const ICON_STYLE_SERIALIZERS = makeStructureNS( const ICON_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2388,7 +2388,7 @@ function writeIconStyle(node, style, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const LABEL_STYLE_SEQUENCE = makeStructureNS( const LABEL_STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2398,7 +2398,7 @@ const LABEL_STYLE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const LABEL_STYLE_SERIALIZERS = makeStructureNS( const LABEL_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2434,7 +2434,7 @@ function writeLabelStyle(node, style, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const LINE_STYLE_SEQUENCE = makeStructureNS( const LINE_STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2444,7 +2444,7 @@ const LINE_STYLE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const LINE_STYLE_SERIALIZERS = makeStructureNS( const LINE_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2474,7 +2474,7 @@ function writeLineStyle(node, style, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const GEOMETRY_TYPE_TO_NODENAME = { const GEOMETRY_TYPE_TO_NODENAME = {
'Point': 'Point', 'Point': 'Point',
@@ -2538,7 +2538,7 @@ const POLYGON_NODE_FACTORY = makeSimpleNodeFactory('Polygon');
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const MULTI_GEOMETRY_SERIALIZERS = makeStructureNS( const MULTI_GEOMETRY_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2590,7 +2590,7 @@ function writeMultiGeometry(node, geometry, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const BOUNDARY_IS_SERIALIZERS = makeStructureNS( const BOUNDARY_IS_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2614,7 +2614,7 @@ function writeBoundaryIs(node, linearRing, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const PLACEMARK_SERIALIZERS = makeStructureNS( const PLACEMARK_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2637,7 +2637,7 @@ const PLACEMARK_SERIALIZERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const PLACEMARK_SEQUENCE = makeStructureNS( const PLACEMARK_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2723,7 +2723,7 @@ function writePlacemark(node, feature, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const PRIMITIVE_GEOMETRY_SEQUENCE = makeStructureNS( const PRIMITIVE_GEOMETRY_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2733,7 +2733,7 @@ const PRIMITIVE_GEOMETRY_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const PRIMITIVE_GEOMETRY_SERIALIZERS = makeStructureNS( const PRIMITIVE_GEOMETRY_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2769,7 +2769,7 @@ function writePrimitiveGeometry(node, geometry, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const POLYGON_SERIALIZERS = makeStructureNS( const POLYGON_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2820,7 +2820,7 @@ function writePolygon(node, polygon, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const POLY_STYLE_SERIALIZERS = makeStructureNS( const POLY_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -2861,7 +2861,7 @@ function writeScaleTextNode(node, scale) {
/** /**
* @const * @const
* @type {Object.<string, Array<string>>} * @type {Object<string, Array<string>>}
*/ */
const STYLE_SEQUENCE = makeStructureNS( const STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [ NAMESPACE_URIS, [
@@ -2871,7 +2871,7 @@ const STYLE_SEQUENCE = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const STYLE_SERIALIZERS = makeStructureNS( const STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {

View File

@@ -23,7 +23,7 @@ import RenderFeature from '../render/Feature.js';
/** /**
* @typedef {Object} Options * @typedef {Object} Options
* @property {function((module:ol/geom/Geometry|Object.<string,*>)=)|function(module:ol/geom/GeometryType,Array<number>,(Array<number>|Array<Array<number>>),Object.<string,*>,number)} [featureClass] * @property {function((module:ol/geom/Geometry|Object<string,*>)=)|function(module:ol/geom/GeometryType,Array<number>,(Array<number>|Array<Array<number>>),Object<string,*>,number)} [featureClass]
* Class for features returned by {@link module:ol/format/MVT#readFeatures}. Set to * Class for features returned by {@link module:ol/format/MVT#readFeatures}. Set to
* {@link module:ol/Feature~Feature} to get full editing and geometry support at the cost of * {@link module:ol/Feature~Feature} to get full editing and geometry support at the cost of
* decreased rendering performance. The default is {@link module:ol/render/Feature~RenderFeature}, * decreased rendering performance. The default is {@link module:ol/render/Feature~RenderFeature},
@@ -64,9 +64,9 @@ class MVT extends FeatureFormat {
/** /**
* @private * @private
* @type {function((module:ol/geom/Geometry|Object.<string,*>)=)| * @type {function((module:ol/geom/Geometry|Object<string,*>)=)|
* function(module:ol/geom/GeometryType,Array<number>, * function(module:ol/geom/GeometryType,Array<number>,
* (Array<number>|Array<Array<number>>),Object.<string,*>,number)} * (Array<number>|Array<Array<number>>),Object<string,*>,number)}
*/ */
this.featureClass_ = options.featureClass ? this.featureClass_ = options.featureClass ?
options.featureClass : RenderFeature; options.featureClass : RenderFeature;

View File

@@ -24,7 +24,7 @@ const NAMESPACE_URIS = [null];
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const WAY_PARSERS = makeStructureNS( const WAY_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -35,7 +35,7 @@ const WAY_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PARSERS = makeStructureNS( const PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -123,7 +123,7 @@ class OSMXML extends XMLFeature {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const NODE_PARSERS = makeStructureNS( const NODE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {

View File

@@ -16,7 +16,7 @@ const NAMESPACE_URIS = [null, 'http://www.opengis.net/ows/1.1'];
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PARSERS = makeStructureNS( const PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -56,7 +56,7 @@ class OWS extends XML {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const ADDRESS_PARSERS = makeStructureNS( const ADDRESS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -71,7 +71,7 @@ const ADDRESS_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const ALLOWED_VALUES_PARSERS = makeStructureNS( const ALLOWED_VALUES_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -81,7 +81,7 @@ const ALLOWED_VALUES_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CONSTRAINT_PARSERS = makeStructureNS( const CONSTRAINT_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -91,7 +91,7 @@ const CONSTRAINT_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CONTACT_INFO_PARSERS = makeStructureNS( const CONTACT_INFO_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -102,7 +102,7 @@ const CONTACT_INFO_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const DCP_PARSERS = makeStructureNS( const DCP_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -112,7 +112,7 @@ const DCP_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const HTTP_PARSERS = makeStructureNS( const HTTP_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -123,7 +123,7 @@ const HTTP_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const OPERATION_PARSERS = makeStructureNS( const OPERATION_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -133,7 +133,7 @@ const OPERATION_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const OPERATIONS_METADATA_PARSERS = makeStructureNS( const OPERATIONS_METADATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -143,7 +143,7 @@ const OPERATIONS_METADATA_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PHONE_PARSERS = makeStructureNS( const PHONE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -154,7 +154,7 @@ const PHONE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const REQUEST_METHOD_PARSERS = makeStructureNS( const REQUEST_METHOD_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -164,7 +164,7 @@ const REQUEST_METHOD_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const SERVICE_CONTACT_PARSERS = const SERVICE_CONTACT_PARSERS =
makeStructureNS( makeStructureNS(
@@ -177,7 +177,7 @@ const SERVICE_CONTACT_PARSERS =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const SERVICE_IDENTIFICATION_PARSERS = const SERVICE_IDENTIFICATION_PARSERS =
makeStructureNS( makeStructureNS(
@@ -193,7 +193,7 @@ const SERVICE_IDENTIFICATION_PARSERS =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const SERVICE_PROVIDER_PARSERS = const SERVICE_PROVIDER_PARSERS =
makeStructureNS( makeStructureNS(

View File

@@ -157,7 +157,7 @@ class TopoJSON extends JSONFeature {
/** /**
* @const * @const
* @type {Object.<string, function(TopoJSONGeometry, Array, ...Array): module:ol/geom/Geometry>} * @type {Object<string, function(TopoJSONGeometry, Array, ...Array): module:ol/geom/Geometry>}
*/ */
const GEOMETRY_READERS = { const GEOMETRY_READERS = {
'Point': readPointGeometry, 'Point': readPointGeometry,

View File

@@ -18,7 +18,7 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const FEATURE_COLLECTION_PARSERS = { const FEATURE_COLLECTION_PARSERS = {
'http://www.opengis.net/gml': { 'http://www.opengis.net/gml': {
@@ -30,7 +30,7 @@ const FEATURE_COLLECTION_PARSERS = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TRANSACTION_SUMMARY_PARSERS = { const TRANSACTION_SUMMARY_PARSERS = {
'http://www.opengis.net/wfs': { 'http://www.opengis.net/wfs': {
@@ -43,7 +43,7 @@ const TRANSACTION_SUMMARY_PARSERS = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TRANSACTION_RESPONSE_PARSERS = { const TRANSACTION_RESPONSE_PARSERS = {
'http://www.opengis.net/wfs': { 'http://www.opengis.net/wfs': {
@@ -56,7 +56,7 @@ const TRANSACTION_RESPONSE_PARSERS = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const QUERY_SERIALIZERS = { const QUERY_SERIALIZERS = {
'http://www.opengis.net/wfs': { 'http://www.opengis.net/wfs': {
@@ -66,7 +66,7 @@ const QUERY_SERIALIZERS = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const TRANSACTION_SERIALIZERS = { const TRANSACTION_SERIALIZERS = {
'http://www.opengis.net/wfs': { 'http://www.opengis.net/wfs': {
@@ -81,7 +81,7 @@ const TRANSACTION_SERIALIZERS = {
/** /**
* @typedef {Object} Options * @typedef {Object} Options
* @property {Object.<string, string>|string} [featureNS] The namespace URI used for features. * @property {Object<string, string>|string} [featureNS] The namespace URI used for features.
* @property {Array<string>|string} [featureType] The feature type to parse. Only used for read operations. * @property {Array<string>|string} [featureType] The feature type to parse. Only used for read operations.
* @property {module:ol/format/GMLBase} [gmlFormat] The GML format to use to parse the response. Default is `ol/format/GML3`. * @property {module:ol/format/GMLBase} [gmlFormat] The GML format to use to parse the response. Default is `ol/format/GML3`.
* @property {string} [schemaLocation] Optional schemaLocation to use for serialization, this will override the default. * @property {string} [schemaLocation] Optional schemaLocation to use for serialization, this will override the default.
@@ -178,7 +178,7 @@ const FESNS = 'http://www.opengis.net/fes';
/** /**
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const SCHEMA_LOCATIONS = { const SCHEMA_LOCATIONS = {
'1.1.0': 'http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd', '1.1.0': 'http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd',
@@ -220,7 +220,7 @@ class WFS extends XMLFeature {
/** /**
* @private * @private
* @type {Object.<string, string>|string|undefined} * @type {Object<string, string>|string|undefined}
*/ */
this.featureNS_ = options.featureNS; this.featureNS_ = options.featureNS;
@@ -549,7 +549,7 @@ function readTransactionSummary(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const OGC_FID_PARSERS = { const OGC_FID_PARSERS = {
'http://www.opengis.net/ogc': { 'http://www.opengis.net/ogc': {
@@ -571,7 +571,7 @@ function fidParser(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const INSERT_RESULTS_PARSERS = { const INSERT_RESULTS_PARSERS = {
'http://www.opengis.net/wfs': { 'http://www.opengis.net/wfs': {
@@ -751,7 +751,7 @@ function writeNative(node, nativeElement, objectStack) {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/ */
const GETFEATURE_SERIALIZERS = { const GETFEATURE_SERIALIZERS = {
'http://www.opengis.net/wfs': { 'http://www.opengis.net/wfs': {

View File

@@ -85,7 +85,7 @@ const TokenType = {
/** /**
* @const * @const
* @type {Object.<string, string>} * @type {Object<string, string>}
*/ */
const WKTGeometryType = {}; const WKTGeometryType = {};
for (const type in GeometryType) { for (const type in GeometryType) {
@@ -838,7 +838,7 @@ function encodeGeometryLayout(geom) {
/** /**
* @const * @const
* @type {Object.<string, function(module:ol/geom/Geometry): string>} * @type {Object<string, function(module:ol/geom/Geometry): string>}
*/ */
const GeometryEncoder = { const GeometryEncoder = {
'Point': encodePointGeometry, 'Point': encodePointGeometry,

View File

@@ -20,7 +20,7 @@ const NAMESPACE_URIS = [
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PARSERS = makeStructureNS( const PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -31,7 +31,7 @@ const PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CAPABILITY_PARSERS = makeStructureNS( const CAPABILITY_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -84,7 +84,7 @@ class WMSCapabilities extends XML {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const SERVICE_PARSERS = makeStructureNS( const SERVICE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -104,7 +104,7 @@ const SERVICE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CONTACT_INFORMATION_PARSERS = makeStructureNS( const CONTACT_INFORMATION_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -119,7 +119,7 @@ const CONTACT_INFORMATION_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CONTACT_PERSON_PARSERS = makeStructureNS( const CONTACT_PERSON_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -130,7 +130,7 @@ const CONTACT_PERSON_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CONTACT_ADDRESS_PARSERS = makeStructureNS( const CONTACT_ADDRESS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -145,7 +145,7 @@ const CONTACT_ADDRESS_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const EXCEPTION_PARSERS = makeStructureNS( const EXCEPTION_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -155,7 +155,7 @@ const EXCEPTION_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LAYER_PARSERS = makeStructureNS( const LAYER_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -182,7 +182,7 @@ const LAYER_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const ATTRIBUTION_PARSERS = makeStructureNS( const ATTRIBUTION_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -194,7 +194,7 @@ const ATTRIBUTION_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS = const EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS =
makeStructureNS(NAMESPACE_URIS, { makeStructureNS(NAMESPACE_URIS, {
@@ -207,7 +207,7 @@ const EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const REQUEST_PARSERS = makeStructureNS( const REQUEST_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -219,7 +219,7 @@ const REQUEST_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const OPERATIONTYPE_PARSERS = makeStructureNS( const OPERATIONTYPE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -230,7 +230,7 @@ const OPERATIONTYPE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const DCPTYPE_PARSERS = makeStructureNS( const DCPTYPE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -240,7 +240,7 @@ const DCPTYPE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const HTTP_PARSERS = makeStructureNS( const HTTP_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -251,7 +251,7 @@ const HTTP_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const STYLE_PARSERS = makeStructureNS( const STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -266,7 +266,7 @@ const STYLE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const FORMAT_ONLINERESOURCE_PARSERS = const FORMAT_ONLINERESOURCE_PARSERS =
makeStructureNS(NAMESPACE_URIS, { makeStructureNS(NAMESPACE_URIS, {
@@ -277,7 +277,7 @@ const FORMAT_ONLINERESOURCE_PARSERS =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const KEYWORDLIST_PARSERS = makeStructureNS( const KEYWORDLIST_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -429,7 +429,7 @@ function readCapabilityLayer(node, objectStack) {
* @return {Object|undefined} Layer object. * @return {Object|undefined} Layer object.
*/ */
function readLayer(node, objectStack) { function readLayer(node, objectStack) {
const parentLayerObject = /** @type {!Object.<string,*>} */ (objectStack[objectStack.length - 1]); const parentLayerObject = /** @type {!Object<string,*>} */ (objectStack[objectStack.length - 1]);
const layerObject = pushParseAndPop({}, LAYER_PARSERS, node, objectStack); const layerObject = pushParseAndPop({}, LAYER_PARSERS, node, objectStack);

View File

@@ -32,7 +32,7 @@ const OWS_NAMESPACE_URIS = [
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const PARSERS = makeStructureNS( const PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -87,7 +87,7 @@ class WMTSCapabilities extends XML {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const CONTENTS_PARSERS = makeStructureNS( const CONTENTS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -98,7 +98,7 @@ const CONTENTS_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const LAYER_PARSERS = makeStructureNS( const LAYER_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -117,7 +117,7 @@ const LAYER_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const STYLE_PARSERS = makeStructureNS( const STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -130,7 +130,7 @@ const STYLE_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TMS_LINKS_PARSERS = makeStructureNS( const TMS_LINKS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -140,7 +140,7 @@ const TMS_LINKS_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TMS_LIMITS_LIST_PARSERS = makeStructureNS( const TMS_LIMITS_LIST_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -150,7 +150,7 @@ const TMS_LIMITS_LIST_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TMS_LIMITS_PARSERS = makeStructureNS( const TMS_LIMITS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -164,7 +164,7 @@ const TMS_LIMITS_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const DIMENSION_PARSERS = makeStructureNS( const DIMENSION_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -177,7 +177,7 @@ const DIMENSION_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const WGS84_BBOX_READERS = makeStructureNS( const WGS84_BBOX_READERS = makeStructureNS(
OWS_NAMESPACE_URIS, { OWS_NAMESPACE_URIS, {
@@ -188,7 +188,7 @@ const WGS84_BBOX_READERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TMS_PARSERS = makeStructureNS( const TMS_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {
@@ -202,7 +202,7 @@ const TMS_PARSERS = makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>} * @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/ */
const TM_PARSERS = makeStructureNS( const TM_PARSERS = makeStructureNS(
NAMESPACE_URIS, { NAMESPACE_URIS, {

View File

@@ -47,7 +47,7 @@ class Geometry extends BaseObject {
/** /**
* @protected * @protected
* @type {Object.<string, module:ol/geom/Geometry>} * @type {Object<string, module:ol/geom/Geometry>}
*/ */
this.simplifiedGeometryCache = {}; this.simplifiedGeometryCache = {};

View File

@@ -32,7 +32,7 @@ function line(interpolate, transform, squaredTolerance) {
/** @type {Array<number>} */ /** @type {Array<number>} */
const fractionStack = [1, 0]; const fractionStack = [1, 0];
/** @type {!Object.<string, boolean>} */ /** @type {!Object<string, boolean>} */
const fractions = {}; const fractions = {};
let maxIterations = 1e5; let maxIterations = 1e5;

View File

@@ -203,7 +203,7 @@ class Modify extends PointerInteraction {
/** /**
* Segments intersecting {@link this.vertexFeature_} by segment uid. * Segments intersecting {@link this.vertexFeature_} by segment uid.
* @type {Object.<string, boolean>} * @type {Object<string, boolean>}
* @private * @private
*/ */
this.vertexSegments_ = null; this.vertexSegments_ = null;
@@ -281,7 +281,7 @@ class Modify extends PointerInteraction {
/** /**
* @const * @const
* @private * @private
* @type {!Object.<string, function(module:ol/Feature, module:ol/geom/Geometry)>} * @type {!Object<string, function(module:ol/Feature, module:ol/geom/Geometry)>}
*/ */
this.SEGMENT_WRITERS_ = { this.SEGMENT_WRITERS_ = {
'Point': this.writePointGeometry_, 'Point': this.writePointGeometry_,

View File

@@ -130,7 +130,7 @@ class PointerInteraction extends Interaction {
this.stopDown = options.stopDown ? options.stopDown : stopDown; this.stopDown = options.stopDown ? options.stopDown : stopDown;
/** /**
* @type {!Object.<string, module:ol/pointer/PointerEvent>} * @type {!Object<string, module:ol/pointer/PointerEvent>}
* @private * @private
*/ */
this.trackedPointers_ = {}; this.trackedPointers_ = {};

View File

@@ -251,7 +251,7 @@ class Select extends Interaction {
* An association between selected feature (key) * An association between selected feature (key)
* and layer (value) * and layer (value)
* @private * @private
* @type {Object.<number, module:ol/layer/Layer>} * @type {Object<number, module:ol/layer/Layer>}
*/ */
this.featureLayerAssociation_ = {}; this.featureLayerAssociation_ = {};

View File

@@ -111,7 +111,7 @@ class Snap extends PointerInteraction {
this.featuresListenerKeys_ = []; this.featuresListenerKeys_ = [];
/** /**
* @type {Object.<number, module:ol/events~EventsKey>} * @type {Object<number, module:ol/events~EventsKey>}
* @private * @private
*/ */
this.featureChangeListenerKeys_ = {}; this.featureChangeListenerKeys_ = {};
@@ -119,7 +119,7 @@ class Snap extends PointerInteraction {
/** /**
* Extents are preserved so indexed segment can be quickly removed * Extents are preserved so indexed segment can be quickly removed
* when its feature geometry changes * when its feature geometry changes
* @type {Object.<number, module:ol/extent~Extent>} * @type {Object<number, module:ol/extent~Extent>}
* @private * @private
*/ */
this.indexedFeaturesExtents_ = {}; this.indexedFeaturesExtents_ = {};
@@ -128,7 +128,7 @@ class Snap extends PointerInteraction {
* If a feature geometry changes while a pointer drag|move event occurs, the * If a feature geometry changes while a pointer drag|move event occurs, the
* feature doesn't get updated right away. It will be at the next 'pointerup' * feature doesn't get updated right away. It will be at the next 'pointerup'
* event fired. * event fired.
* @type {!Object.<number, module:ol/Feature>} * @type {!Object<number, module:ol/Feature>}
* @private * @private
*/ */
this.pendingFeatures_ = {}; this.pendingFeatures_ = {};
@@ -165,7 +165,7 @@ class Snap extends PointerInteraction {
/** /**
* @const * @const
* @private * @private
* @type {Object.<string, function(module:ol/Feature, module:ol/geom/Geometry)>} * @type {Object<string, function(module:ol/Feature, module:ol/geom/Geometry)>}
*/ */
this.SEGMENT_WRITERS_ = { this.SEGMENT_WRITERS_ = {
'Point': this.writePointGeometry_, 'Point': this.writePointGeometry_,

View File

@@ -41,7 +41,7 @@ class BaseLayer extends BaseObject {
super(); super();
/** /**
* @type {Object.<string, *>} * @type {Object<string, *>}
*/ */
const properties = assign({}, options); const properties = assign({}, options);
properties[LayerProperty.OPACITY] = properties[LayerProperty.OPACITY] =

View File

@@ -70,7 +70,7 @@ class LayerGroup extends BaseLayer {
/** /**
* @private * @private
* @type {Object.<string, Array<module:ol/events~EventsKey>>} * @type {Object<string, Array<module:ol/events~EventsKey>>}
*/ */
this.listenerKeys_ = {}; this.listenerKeys_ = {};

View File

@@ -6,7 +6,7 @@ class EventSource {
/** /**
* @param {module:ol/pointer/PointerEventHandler} dispatcher Event handler. * @param {module:ol/pointer/PointerEventHandler} dispatcher Event handler.
* @param {!Object.<string, function(Event)>} mapping Event mapping. * @param {!Object<string, function(Event)>} mapping Event mapping.
*/ */
constructor(dispatcher, mapping) { constructor(dispatcher, mapping) {
@@ -18,7 +18,7 @@ class EventSource {
/** /**
* @private * @private
* @const * @const
* @type {!Object.<string, function(Event)>} * @type {!Object<string, function(Event)>}
*/ */
this.mapping_ = mapping; this.mapping_ = mapping;
} }

View File

@@ -148,7 +148,7 @@ class MouseSource extends EventSource {
/** /**
* @const * @const
* @type {!Object.<string, Event|Object>} * @type {!Object<string, Event|Object>}
*/ */
this.pointerMap = dispatcher.pointerMap; this.pointerMap = dispatcher.pointerMap;

View File

@@ -157,7 +157,7 @@ class MsSource extends EventSource {
/** /**
* @const * @const
* @type {!Object.<string, MSPointerEvent|Object>} * @type {!Object<string, MSPointerEvent|Object>}
*/ */
this.pointerMap = dispatcher.pointerMap; this.pointerMap = dispatcher.pointerMap;
} }

View File

@@ -52,7 +52,7 @@ class PointerEvent extends Event {
* *
* @param {string} type The type of the event to create. * @param {string} type The type of the event to create.
* @param {Event} originalEvent The event. * @param {Event} originalEvent The event.
* @param {Object.<string, ?>=} opt_eventDict An optional dictionary of * @param {Object<string, ?>=} opt_eventDict An optional dictionary of
* initial event properties. * initial event properties.
*/ */
constructor(type, originalEvent, opt_eventDict) { constructor(type, originalEvent, opt_eventDict) {
@@ -202,7 +202,7 @@ class PointerEvent extends Event {
/** /**
* @private * @private
* @param {Object.<string, ?>} eventDict The event dictionary. * @param {Object<string, ?>} eventDict The event dictionary.
* @return {number} Button indicator. * @return {number} Button indicator.
*/ */
getButtons_(eventDict) { getButtons_(eventDict) {
@@ -243,7 +243,7 @@ class PointerEvent extends Event {
/** /**
* @private * @private
* @param {Object.<string, ?>} eventDict The event dictionary. * @param {Object<string, ?>} eventDict The event dictionary.
* @param {number} buttons Button indicator. * @param {number} buttons Button indicator.
* @return {number} The pressure. * @return {number} The pressure.
*/ */

View File

@@ -100,12 +100,12 @@ class PointerEventHandler extends EventTarget {
/** /**
* @const * @const
* @type {!Object.<string, Event|Object>} * @type {!Object<string, Event|Object>}
*/ */
this.pointerMap = {}; this.pointerMap = {};
/** /**
* @type {Object.<string, function(Event)>} * @type {Object<string, function(Event)>}
* @private * @private
*/ */
this.eventMap_ = {}; this.eventMap_ = {};

View File

@@ -114,7 +114,7 @@ class TouchSource extends EventSource {
/** /**
* @const * @const
* @type {!Object.<string, Event|Object>} * @type {!Object<string, Event|Object>}
*/ */
this.pointerMap = dispatcher.pointerMap; this.pointerMap = dispatcher.pointerMap;

View File

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

View File

@@ -4,7 +4,7 @@
/** /**
* @type {Object.<string, module:ol/proj/Projection>} * @type {Object<string, module:ol/proj/Projection>}
*/ */
let cache = {}; let cache = {};

View File

@@ -6,7 +6,7 @@ import {isEmpty} from '../obj.js';
/** /**
* @private * @private
* @type {!Object.<string, Object.<string, module:ol/proj~TransformFunction>>} * @type {!Object<string, Object<string, module:ol/proj~TransformFunction>>}
*/ */
let transforms = {}; let transforms = {};

View File

@@ -28,7 +28,7 @@ const tmpTransform = createTransform();
* @param {Array<number>} flatCoordinates Flat coordinates. These always need * @param {Array<number>} flatCoordinates Flat coordinates. These always need
* to be right-handed for polygons. * to be right-handed for polygons.
* @param {Array<number>|Array<Array<number>>} ends Ends or Endss. * @param {Array<number>|Array<Array<number>>} ends Ends or Endss.
* @param {Object.<string, *>} properties Properties. * @param {Object<string, *>} properties Properties.
* @param {number|string|undefined} id Feature id. * @param {number|string|undefined} id Feature id.
*/ */
class RenderFeature { class RenderFeature {
@@ -77,7 +77,7 @@ class RenderFeature {
/** /**
* @private * @private
* @type {Object.<string, *>} * @type {Object<string, *>}
*/ */
this.properties_ = properties; this.properties_ = properties;
@@ -194,7 +194,7 @@ class RenderFeature {
/** /**
* Get the feature properties. * Get the feature properties.
* @return {Object.<string, *>} Feature properties. * @return {Object<string, *>} Feature properties.
* @api * @api
*/ */
getProperties() { getProperties() {

View File

@@ -163,7 +163,7 @@ export const labelCache = new LRUCache();
/** /**
* @type {!Object.<string, number>} * @type {!Object<string, number>}
*/ */
export const checkedFonts = {}; export const checkedFonts = {};
@@ -175,7 +175,7 @@ let measureContext = null;
/** /**
* @type {!Object.<string, number>} * @type {!Object<string, number>}
*/ */
export const textHeights = {}; export const textHeights = {};

View File

@@ -134,7 +134,7 @@ class CanvasReplay extends VectorContext {
/** /**
* @private * @private
* @type {!Object.<number,module:ol/coordinate~Coordinate|Array<module:ol/coordinate~Coordinate>|Array<Array<module:ol/coordinate~Coordinate>>>} * @type {!Object<number,module:ol/coordinate~Coordinate|Array<module:ol/coordinate~Coordinate>|Array<Array<module:ol/coordinate~Coordinate>>>}
*/ */
this.coordinateCache_ = {}; this.coordinateCache_ = {};
@@ -530,7 +530,7 @@ class CanvasReplay extends VectorContext {
* @private * @private
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @param {module:ol/transform~Transform} transform Transform. * @param {module:ol/transform~Transform} transform Transform.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features * @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip. * to skip.
* @param {Array<*>} instructions Instructions array. * @param {Array<*>} instructions Instructions array.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
@@ -851,7 +851,7 @@ class CanvasReplay extends VectorContext {
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @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 * @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip. * to skip.
*/ */
replay(context, transform, viewRotation, skippedFeaturesHash) { replay(context, transform, viewRotation, skippedFeaturesHash) {
@@ -864,7 +864,7 @@ class CanvasReplay extends VectorContext {
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @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 * @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip. * to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T=} opt_featureCallback * @param {function((module:ol/Feature|module:ol/render/Feature)): T=} opt_featureCallback
* Feature callback. * Feature callback.

View File

@@ -19,7 +19,7 @@ import {create as createTransform, compose as composeTransform} from '../../tran
/** /**
* @type {Object.<module:ol/render/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>)>}
*/ */
@@ -104,7 +104,7 @@ class CanvasReplayGroup extends ReplayGroup {
/** /**
* @private * @private
* @type {!Object.<string, !Object.<module:ol/render/ReplayType, module:ol/render/canvas/Replay>>} * @type {!Object<string, !Object<module:ol/render/ReplayType, module:ol/render/canvas/Replay>>}
*/ */
this.replaysByZIndex_ = {}; this.replaysByZIndex_ = {};
@@ -186,9 +186,9 @@ class CanvasReplayGroup extends ReplayGroup {
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @param {number} rotation Rotation. * @param {number} rotation Rotation.
* @param {number} hitTolerance Hit tolerance in pixels. * @param {number} hitTolerance Hit tolerance in pixels.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T} callback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T} callback Feature callback.
* @param {Object.<string, module:ol/render/canvas~DeclutterGroup>} declutterReplays Declutter replays. * @param {Object<string, module:ol/render/canvas~DeclutterGroup>} declutterReplays Declutter replays.
* @return {T|undefined} Callback result. * @return {T|undefined} Callback result.
* @template T * @template T
*/ */
@@ -335,7 +335,7 @@ class CanvasReplayGroup extends ReplayGroup {
} }
/** /**
* @return {Object.<string, Object.<module:ol/render/ReplayType, module:ol/render/canvas/Replay>>} Replays. * @return {Object<string, Object<module:ol/render/ReplayType, module:ol/render/canvas/Replay>>} Replays.
*/ */
getReplays() { getReplays() {
return this.replaysByZIndex_; return this.replaysByZIndex_;
@@ -352,10 +352,10 @@ class CanvasReplayGroup extends ReplayGroup {
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @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>=} 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.
*/ */
replay( replay(
context, context,
@@ -407,7 +407,7 @@ class CanvasReplayGroup extends ReplayGroup {
/** /**
* This cache is used for storing calculated pixel circles for increasing performance. * This cache is used for storing calculated pixel circles for increasing performance.
* It is a static property to allow each Replaygroup to access it. * It is a static property to allow each Replaygroup to access it.
* @type {Object.<number, Array<Array<(boolean|undefined)>>>} * @type {Object<number, Array<Array<(boolean|undefined)>>>}
*/ */
const circleArrayCache = { const circleArrayCache = {
0: [[true]] 0: [[true]]
@@ -483,7 +483,7 @@ export function getCircleArray(radius) {
/** /**
* @param {!Object.<string, Array<*>>} declutterReplays Declutter replays. * @param {!Object<string, Array<*>>} declutterReplays Declutter replays.
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @param {number} rotation Rotation. * @param {number} rotation Rotation.
*/ */

View File

@@ -75,7 +75,7 @@ class CanvasTextReplay extends CanvasReplay {
this.textFillState_ = null; this.textFillState_ = null;
/** /**
* @type {!Object.<string, module:ol/render/canvas~FillState>} * @type {!Object<string, module:ol/render/canvas~FillState>}
*/ */
this.fillStates = {}; this.fillStates = {};
@@ -86,7 +86,7 @@ class CanvasTextReplay extends CanvasReplay {
this.textStrokeState_ = null; this.textStrokeState_ = null;
/** /**
* @type {!Object.<string, module:ol/render/canvas~StrokeState>} * @type {!Object<string, module:ol/render/canvas~StrokeState>}
*/ */
this.strokeStates = {}; this.strokeStates = {};
@@ -97,7 +97,7 @@ class CanvasTextReplay extends CanvasReplay {
this.textState_ = /** @type {module:ol/render/canvas~TextState} */ ({}); this.textState_ = /** @type {module:ol/render/canvas~TextState} */ ({});
/** /**
* @type {!Object.<string, module:ol/render/canvas~TextState>} * @type {!Object<string, module:ol/render/canvas~TextState>}
*/ */
this.textStates = {}; this.textStates = {};
@@ -121,7 +121,7 @@ class CanvasTextReplay extends CanvasReplay {
/** /**
* @private * @private
* @type {Object.<string, Object.<string, number>>} * @type {Object<string, Object<string, number>>}
*/ */
this.widths_ = {}; this.widths_ = {};

View File

@@ -81,7 +81,7 @@ class WebGLImageReplay extends WebGLTextureReplay {
this.indicesBuffer = new WebGLBuffer(indices); this.indicesBuffer = new WebGLBuffer(indices);
// create textures // create textures
/** @type {Object.<string, WebGLTexture>} */ /** @type {Object<string, WebGLTexture>} */
const texturePerImage = {}; const texturePerImage = {};
this.createTextures(this.textures_, this.images_, texturePerImage, gl); this.createTextures(this.textures_, this.images_, texturePerImage, gl);

View File

@@ -160,7 +160,7 @@ class WebGLReplay extends VectorContext {
* @protected * @protected
* @param {WebGLRenderingContext} gl gl. * @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context. * @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {boolean} hitDetection Hit detection mode. * @param {boolean} hitDetection Hit detection mode.
*/ */
drawReplay(gl, context, skippedFeaturesHash, hitDetection) {} drawReplay(gl, context, skippedFeaturesHash, hitDetection) {}
@@ -170,7 +170,7 @@ class WebGLReplay extends VectorContext {
* @protected * @protected
* @param {WebGLRenderingContext} gl gl. * @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context. * @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked. * @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.
* @return {T|undefined} Callback result. * @return {T|undefined} Callback result.
@@ -182,7 +182,7 @@ class WebGLReplay extends VectorContext {
* @protected * @protected
* @param {WebGLRenderingContext} gl gl. * @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context. * @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {boolean} oneByOne Draw features one-by-one for the hit-detecion. * @param {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked. * @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.
@@ -205,7 +205,7 @@ class WebGLReplay extends VectorContext {
* @protected * @protected
* @param {WebGLRenderingContext} gl gl. * @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context. * @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @return {T|undefined} Callback result. * @return {T|undefined} Callback result.
* @template T * @template T
@@ -230,7 +230,7 @@ class WebGLReplay extends VectorContext {
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity. * @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {boolean} oneByOne Draw features one-by-one for the hit-detecion. * @param {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked. * @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.

View File

@@ -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, * @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)>}
*/ */
@@ -61,8 +61,8 @@ class WebGLReplayGroup extends ReplayGroup {
/** /**
* @private * @private
* @type {!Object.<string, * @type {!Object<string,
* Object.<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>} * Object<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>}
*/ */
this.replaysByZIndex_ = {}; this.replaysByZIndex_ = {};
@@ -148,7 +148,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity. * @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
*/ */
replay( replay(
context, context,
@@ -188,7 +188,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity. * @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} featureCallback Feature callback.
* @param {boolean} oneByOne Draw features one-by-one for the hit-detecion. * @param {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting * @param {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting
@@ -242,7 +242,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity. * @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} callback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T|undefined} callback Feature callback.
* @return {T|undefined} Callback result. * @return {T|undefined} Callback result.
* @template T * @template T
@@ -303,7 +303,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {number} opacity Global opacity. * @param {number} opacity Global opacity.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features to skip. * @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @return {boolean} Is there a feature at the given coordinate? * @return {boolean} Is there a feature at the given coordinate?
*/ */
hasFeatureAtCoordinate( hasFeatureAtCoordinate(

View File

@@ -17,7 +17,7 @@ import WebGLBuffer from '../../webgl/Buffer.js';
/** /**
* @typedef {Object} GlyphAtlas * @typedef {Object} GlyphAtlas
* @property {module:ol/style/AtlasManager} atlas * @property {module:ol/style/AtlasManager} atlas
* @property {Object.<string, number>} width * @property {Object<string, number>} width
* @property {number} height * @property {number} height
*/ */
@@ -106,7 +106,7 @@ class WebGLTextReplay extends WebGLTextureReplay {
/** /**
* @private * @private
* @type {Object.<string, module:ol/render/webgl/TextReplay~GlyphAtlas>} * @type {Object<string, module:ol/render/webgl/TextReplay~GlyphAtlas>}
*/ */
this.atlases_ = {}; this.atlases_ = {};
@@ -313,7 +313,7 @@ class WebGLTextReplay extends WebGLTextureReplay {
this.indicesBuffer = new WebGLBuffer(this.indices); this.indicesBuffer = new WebGLBuffer(this.indices);
// create textures // create textures
/** @type {Object.<string, WebGLTexture>} */ /** @type {Object<string, WebGLTexture>} */
const texturePerImage = {}; const texturePerImage = {};
this.createTextures(this.textures_, this.images_, texturePerImage, gl); this.createTextures(this.textures_, this.images_, texturePerImage, gl);

View File

@@ -235,7 +235,7 @@ class WebGLTextureReplay extends WebGLReplay {
* @protected * @protected
* @param {Array<WebGLTexture>} textures Textures. * @param {Array<WebGLTexture>} textures Textures.
* @param {Array<HTMLCanvasElement|HTMLImageElement|HTMLVideoElement>} images Images. * @param {Array<HTMLCanvasElement|HTMLImageElement|HTMLVideoElement>} images Images.
* @param {!Object.<string, WebGLTexture>} texturePerImage Texture cache. * @param {!Object<string, WebGLTexture>} texturePerImage Texture cache.
* @param {WebGLRenderingContext} gl Gl. * @param {WebGLRenderingContext} gl Gl.
*/ */
createTextures(textures, images, texturePerImage, gl) { createTextures(textures, images, texturePerImage, gl) {
@@ -351,7 +351,7 @@ class WebGLTextureReplay extends WebGLReplay {
* @protected * @protected
* @param {WebGLRenderingContext} gl gl. * @param {WebGLRenderingContext} gl gl.
* @param {module:ol/webgl/Context} context Context. * @param {module:ol/webgl/Context} context Context.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features * @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip. * to skip.
* @param {Array<WebGLTexture>} textures Textures. * @param {Array<WebGLTexture>} textures Textures.
* @param {Array<number>} groupIndices Texture group indices. * @param {Array<number>} groupIndices Texture group indices.

View File

@@ -31,7 +31,7 @@ class LayerRenderer extends Observable {
* Create a function that adds loaded tiles to the tile lookup. * Create a function that adds loaded tiles to the tile lookup.
* @param {module:ol/source/Tile} source Tile source. * @param {module:ol/source/Tile} source Tile source.
* @param {module:ol/proj/Projection} projection Projection of the tiles. * @param {module:ol/proj/Projection} projection Projection of the tiles.
* @param {Object.<number, Object.<string, module:ol/Tile>>} tiles Lookup of loaded tiles by zoom level. * @param {Object<number, Object<string, module:ol/Tile>>} tiles Lookup of loaded tiles by zoom level.
* @return {function(number, module:ol/TileRange):boolean} A function that can be * @return {function(number, module:ol/TileRange):boolean} A function that can be
* called with a zoom level and a tile range to add loaded tiles to the lookup. * called with a zoom level and a tile range to add loaded tiles to the lookup.
* @protected * @protected
@@ -130,7 +130,7 @@ class LayerRenderer extends Observable {
} }
/** /**
* @param {!Object.<string, !Object.<string, module:ol/TileRange>>} usedTiles Used tiles. * @param {!Object<string, !Object<string, module:ol/TileRange>>} usedTiles Used tiles.
* @param {module:ol/source/Tile} tileSource Tile source. * @param {module:ol/source/Tile} tileSource Tile source.
* @param {number} z Z. * @param {number} z Z.
* @param {module:ol/TileRange} tileRange Tile range. * @param {module:ol/TileRange} tileRange Tile range.

View File

@@ -28,13 +28,13 @@ class MapRenderer extends Disposable {
/** /**
* @private * @private
* @type {!Object.<string, module:ol/renderer/Layer>} * @type {!Object<string, module:ol/renderer/Layer>}
*/ */
this.layerRenderers_ = {}; this.layerRenderers_ = {};
/** /**
* @private * @private
* @type {Object.<string, module:ol/events~EventsKey>} * @type {Object<string, module:ol/events~EventsKey>}
*/ */
this.layerRendererListeners_ = {}; this.layerRendererListeners_ = {};
@@ -242,7 +242,7 @@ class MapRenderer extends Disposable {
/** /**
* @protected * @protected
* @return {Object.<string, module:ol/renderer/Layer>} Layer renderers. * @return {Object<string, module:ol/renderer/Layer>} Layer renderers.
*/ */
getLayerRenderers() { getLayerRenderers() {
return this.layerRenderers_; return this.layerRenderers_;

View File

@@ -163,7 +163,7 @@ class CanvasTileLayerRenderer extends IntermediateCanvasRenderer {
const tilePixelRatio = tileSource.getTilePixelRatio(pixelRatio); const tilePixelRatio = tileSource.getTilePixelRatio(pixelRatio);
/** /**
* @type {Object.<number, Object.<string, module:ol/Tile>>} * @type {Object<number, Object<string, module:ol/Tile>>}
*/ */
const tilesToDrawByZ = {}; const tilesToDrawByZ = {};
tilesToDrawByZ[z] = {}; tilesToDrawByZ[z] = {};

View File

@@ -234,7 +234,7 @@ class CanvasVectorLayerRenderer extends CanvasLayerRenderer {
const resolution = frameState.viewState.resolution; const resolution = frameState.viewState.resolution;
const rotation = frameState.viewState.rotation; const rotation = frameState.viewState.rotation;
const layer = /** @type {module:ol/layer/Vector} */ (this.getLayer()); const layer = /** @type {module:ol/layer/Vector} */ (this.getLayer());
/** @type {!Object.<string, boolean>} */ /** @type {!Object<string, boolean>} */
const features = {}; const features = {};
const result = this.replayGroup_.forEachFeatureAtCoordinate(coordinate, resolution, rotation, hitTolerance, {}, const result = this.replayGroup_.forEachFeatureAtCoordinate(coordinate, resolution, rotation, hitTolerance, {},
/** /**

View File

@@ -28,7 +28,7 @@ import {
/** /**
* @type {!Object.<string, Array<module:ol/render/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>>} * @type {!Object<string, Array<module:ol/render/ReplayType>>}
*/ */
const VECTOR_REPLAYS = { const VECTOR_REPLAYS = {
'image': [ReplayType.DEFAULT], 'image': [ReplayType.DEFAULT],
@@ -234,7 +234,7 @@ class CanvasVectorTileLayerRenderer extends CanvasTileLayerRenderer {
const rotation = frameState.viewState.rotation; const rotation = frameState.viewState.rotation;
hitTolerance = hitTolerance == undefined ? 0 : hitTolerance; hitTolerance = hitTolerance == undefined ? 0 : hitTolerance;
const layer = this.getLayer(); const layer = this.getLayer();
/** @type {!Object.<string, boolean>} */ /** @type {!Object<string, boolean>} */
const features = {}; const features = {};
/** @type {Array<module:ol/VectorImageTile>} */ /** @type {Array<module:ol/VectorImageTile>} */

View File

@@ -16,7 +16,7 @@ const SIMPLIFY_TOLERANCE = 0.5;
/** /**
* @const * @const
* @type {Object.<module:ol/geom/GeometryType, * @type {Object<module:ol/geom/GeometryType,
* function(module:ol/render/ReplayGroup, module:ol/geom/Geometry, * function(module:ol/render/ReplayGroup, module:ol/geom/Geometry,
* module:ol/style/Style, Object)>} * module:ol/style/Style, Object)>}
*/ */

View File

@@ -214,7 +214,7 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
gl.uniform1i(this.locations_.u_texture, 0); gl.uniform1i(this.locations_.u_texture, 0);
/** /**
* @type {Object.<number, Object.<string, module:ol/Tile>>} * @type {Object<number, Object<string, module:ol/Tile>>}
*/ */
const tilesToDrawByZ = {}; const tilesToDrawByZ = {};
tilesToDrawByZ[z] = {}; tilesToDrawByZ[z] = {};

View File

@@ -117,7 +117,7 @@ class WebGLVectorLayerRenderer extends WebGLLayerRenderer {
const viewState = frameState.viewState; const viewState = frameState.viewState;
const layer = this.getLayer(); const layer = this.getLayer();
const layerState = this.layerState_; const layerState = this.layerState_;
/** @type {!Object.<string, boolean>} */ /** @type {!Object<string, boolean>} */
const features = {}; const features = {};
return this.replayGroup_.forEachFeatureAtCoordinate(coordinate, return this.replayGroup_.forEachFeatureAtCoordinate(coordinate,
context, viewState.center, viewState.resolution, viewState.rotation, context, viewState.center, viewState.resolution, viewState.rotation,

View File

@@ -64,7 +64,7 @@ class Triangulation {
*/ */
this.targetProj_ = targetProj; this.targetProj_ = targetProj;
/** @type {!Object.<string, module:ol/coordinate~Coordinate>} */ /** @type {!Object<string, module:ol/coordinate~Coordinate>} */
let transformInvCache = {}; let transformInvCache = {};
const transformInv = getTransform(this.targetProj_, this.sourceProj_); const transformInv = getTransform(this.targetProj_, this.sourceProj_);

View File

@@ -71,7 +71,7 @@ class CartoDB extends XYZ {
this.config_ = options.config || {}; this.config_ = options.config || {};
/** /**
* @type {!Object.<string, CartoDBLayerInfo>} * @type {!Object<string, CartoDBLayerInfo>}
* @private * @private
*/ */
this.templateCache_ = {}; this.templateCache_ = {};

View File

@@ -159,7 +159,7 @@ class Cluster extends VectorSource {
const features = this.source.getFeatures(); const features = this.source.getFeatures();
/** /**
* @type {!Object.<string, boolean>} * @type {!Object<string, boolean>}
*/ */
const clustered = {}; const clustered = {};

View File

@@ -23,7 +23,7 @@ import {appendParams} from '../uri.js';
* 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
* a URL. * a URL.
* @property {Object.<string,*>} params ArcGIS Rest parameters. This field is optional. Service * @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 * 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

View File

@@ -195,7 +195,7 @@ class ImageMapGuide extends ImageSource {
/** /**
* @param {string} baseUrl The mapagent url. * @param {string} baseUrl The mapagent url.
* @param {Object.<string, string|number>} params Request parameters. * @param {Object<string, string|number>} params Request parameters.
* @param {module:ol/extent~Extent} extent Extent. * @param {module:ol/extent~Extent} extent Extent.
* @param {module:ol/size~Size} size Size. * @param {module:ol/size~Size} size Size.
* @param {module:ol/proj/Projection} projection Projection. * @param {module:ol/proj/Projection} projection Projection.

View File

@@ -37,7 +37,7 @@ const GETFEATUREINFO_IMAGE_SIZE = [101, 101];
* @property {module:ol/source/WMSServerType|string} [serverType] The type of * @property {module:ol/source/WMSServerType|string} [serverType] The type of
* the remote WMS server: `mapserver`, `geoserver` or `qgis`. Only needed if `hidpi` is `true`. * the remote WMS server: `mapserver`, `geoserver` or `qgis`. Only needed if `hidpi` is `true`.
* @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.
* @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`
* and `CRS` (`SRS` for WMS version < 1.3.0) will be set dynamically. * and `CRS` (`SRS` for WMS version < 1.3.0) will be set dynamically.

View File

@@ -180,7 +180,7 @@ class Source extends BaseObject {
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @param {number} rotation Rotation. * @param {number} rotation Rotation.
* @param {number} hitTolerance Hit tolerance in pixels. * @param {number} hitTolerance Hit tolerance in pixels.
* @param {Object.<string, boolean>} skippedFeatureUids Skipped feature uids. * @param {Object<string, boolean>} skippedFeatureUids Skipped feature uids.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T} callback Feature callback. * @param {function((module:ol/Feature|module:ol/render/Feature)): T} callback Feature callback.
* @return {T|undefined} Callback result. * @return {T|undefined} Callback result.
* @template T * @template T

View File

@@ -19,7 +19,7 @@ const ATTRIBUTIONS = [
/** /**
* @type {Object.<string, {extension: string, opaque: boolean}>} * @type {Object<string, {extension: string, opaque: boolean}>}
*/ */
const LayerConfig = { const LayerConfig = {
'terrain': { 'terrain': {
@@ -70,7 +70,7 @@ const LayerConfig = {
/** /**
* @type {Object.<string, {minZoom: number, maxZoom: number}>} * @type {Object<string, {minZoom: number, maxZoom: number}>}
*/ */
const ProviderConfig = { const ProviderConfig = {
'terrain': { 'terrain': {

View File

@@ -102,7 +102,7 @@ class TileSource extends Source {
/** /**
* @param {module:ol/proj/Projection} projection Projection. * @param {module:ol/proj/Projection} projection Projection.
* @param {!Object.<string, module:ol/TileRange>} usedTiles Used tiles. * @param {!Object<string, module:ol/TileRange>} usedTiles Used tiles.
*/ */
expireCache(projection, usedTiles) { expireCache(projection, usedTiles) {
const tileCache = this.getTileCacheForProjection(projection); const tileCache = this.getTileCacheForProjection(projection);

View File

@@ -19,7 +19,7 @@ import {appendParams} from '../uri.js';
* 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
* 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

View File

@@ -102,13 +102,13 @@ class TileImage extends UrlTile {
/** /**
* @protected * @protected
* @type {!Object.<string, module:ol/TileCache>} * @type {!Object<string, module:ol/TileCache>}
*/ */
this.tileCacheForProjection = {}; this.tileCacheForProjection = {};
/** /**
* @protected * @protected
* @type {!Object.<string, module:ol/tilegrid/TileGrid>} * @type {!Object<string, module:ol/tilegrid/TileGrid>}
*/ */
this.tileGridForProjection = {}; this.tileGridForProjection = {};

View File

@@ -25,7 +25,7 @@ import {appendParams} from '../uri.js';
* 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
* 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`
* and `CRS` (`SRS` for WMS version < 1.3.0) will be set dynamically. * and `CRS` (`SRS` for WMS version < 1.3.0) will be set dynamically.

View File

@@ -63,7 +63,7 @@ export class CustomTile extends Tile {
/** /**
* @private * @private
* @type {Object.<string, Object>|undefined} * @type {Object<string, Object>|undefined}
*/ */
this.data_ = null; this.data_ = null;

View File

@@ -82,7 +82,7 @@ class UrlTile extends TileSource {
/** /**
* @private * @private
* @type {!Object.<number, boolean>} * @type {!Object<number, boolean>}
*/ */
this.tileLoadingKeys_ = {}; this.tileLoadingKeys_ = {};

View File

@@ -227,27 +227,27 @@ class VectorSource extends Source {
/** /**
* @private * @private
* @type {!Object.<string, module:ol/Feature>} * @type {!Object<string, module:ol/Feature>}
*/ */
this.nullGeometryFeatures_ = {}; this.nullGeometryFeatures_ = {};
/** /**
* A lookup of features by id (the return from feature.getId()). * A lookup of features by id (the return from feature.getId()).
* @private * @private
* @type {!Object.<string, module:ol/Feature>} * @type {!Object<string, module:ol/Feature>}
*/ */
this.idIndex_ = {}; this.idIndex_ = {};
/** /**
* A lookup of features without id (keyed by getUid(feature)). * A lookup of features without id (keyed by getUid(feature)).
* @private * @private
* @type {!Object.<string, module:ol/Feature>} * @type {!Object<string, module:ol/Feature>}
*/ */
this.undefIdIndex_ = {}; this.undefIdIndex_ = {};
/** /**
* @private * @private
* @type {Object.<string, Array<module:ol/events~EventsKey>>} * @type {Object<string, Array<module:ol/events~EventsKey>>}
*/ */
this.featureChangeKeys_ = {}; this.featureChangeKeys_ = {};

View File

@@ -111,7 +111,7 @@ class VectorTile extends UrlTile {
/** /**
* @private * @private
* @type {Object.<string, module:ol/VectorTile>} * @type {Object<string, module:ol/VectorTile>}
*/ */
this.sourceTiles_ = {}; this.sourceTiles_ = {};
@@ -130,7 +130,7 @@ class VectorTile extends UrlTile {
/** /**
* @private * @private
* @type {Object.<string, module:ol/tilegrid/TileGrid>} * @type {Object<string, module:ol/tilegrid/TileGrid>}
*/ */
this.tileGrids_ = {}; this.tileGrids_ = {};

View File

@@ -47,7 +47,7 @@ class LRUCache extends EventTarget {
/** /**
* @private * @private
* @type {!Object.<string, module:ol/structs/LRUCache~Entry>} * @type {!Object<string, module:ol/structs/LRUCache~Entry>}
*/ */
this.entries_ = {}; this.entries_ = {};

View File

@@ -56,7 +56,7 @@ class PriorityQueue {
this.priorities_ = []; this.priorities_ = [];
/** /**
* @type {!Object.<string, boolean>} * @type {!Object<string, boolean>}
* @private * @private
*/ */
this.queuedElements_ = {}; this.queuedElements_ = {};

View File

@@ -37,7 +37,7 @@ class RBush {
* A mapping between the objects added to this rbush wrapper * A mapping between the objects added to this rbush wrapper
* and the objects that are actually added to the internal rbush. * and the objects that are actually added to the internal rbush.
* @private * @private
* @type {Object.<number, module:ol/structs/RBush~Entry>} * @type {Object<number, module:ol/structs/RBush~Entry>}
*/ */
this.items_ = {}; this.items_ = {};

View File

@@ -64,7 +64,7 @@ class Atlas {
/** /**
* @private * @private
* @type {Object.<string, module:ol/style/Atlas~AtlasInfo>} * @type {Object<string, module:ol/style/Atlas~AtlasInfo>}
*/ */
this.entries_ = {}; this.entries_ = {};

View File

@@ -11,7 +11,7 @@ class IconImageCache {
constructor() { constructor() {
/** /**
* @type {!Object.<string, module:ol/style/IconImage>} * @type {!Object<string, module:ol/style/IconImage>}
* @private * @private
*/ */
this.cache_ = {}; this.cache_ = {};

View File

@@ -466,10 +466,10 @@ export function createDefaultStyle(feature, resolution) {
/** /**
* Default styles for editing features. * Default styles for editing features.
* @return {Object.<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} Styles * @return {Object<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} Styles
*/ */
export function createEditingStyle() { export function createEditingStyle() {
/** @type {Object.<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} */ /** @type {Object<module:ol/geom/GeometryType, Array<module:ol/style/Style>>} */
const styles = {}; const styles = {};
const white = [255, 255, 255, 1]; const white = [255, 255, 255, 1];
const blue = [0, 153, 255, 1]; const blue = [0, 153, 255, 1];

View File

@@ -45,19 +45,19 @@ class WebGLContext extends Disposable {
/** /**
* @private * @private
* @type {!Object.<string, module:ol/webgl/Context~BufferCacheEntry>} * @type {!Object<string, module:ol/webgl/Context~BufferCacheEntry>}
*/ */
this.bufferCache_ = {}; this.bufferCache_ = {};
/** /**
* @private * @private
* @type {!Object.<string, WebGLShader>} * @type {!Object<string, WebGLShader>}
*/ */
this.shaderCache_ = {}; this.shaderCache_ = {};
/** /**
* @private * @private
* @type {!Object.<string, WebGLProgram>} * @type {!Object<string, WebGLProgram>}
*/ */
this.programCache_ = {}; this.programCache_ = {};

View File

@@ -354,7 +354,7 @@ export const OBJECT_PROPERTY_NODE_FACTORY = makeSimpleNodeFactory();
* Create an array of `values` to be used with {@link module:ol/xml~serialize} or * Create an array of `values` to be used with {@link module:ol/xml~serialize} or
* {@link module:ol/xml~pushSerializeAndPop}, where `orderedKeys` has to be provided as * {@link module:ol/xml~pushSerializeAndPop}, where `orderedKeys` has to be provided as
* `opt_key` argument. * `opt_key` argument.
* @param {Object.<string, V>} object Key-value pairs for the sequence. Keys can * @param {Object<string, V>} object Key-value pairs for the sequence. Keys can
* be a subset of the `orderedKeys`. * be a subset of the `orderedKeys`.
* @param {Array<string>} orderedKeys Keys in the order of the sequence. * @param {Array<string>} orderedKeys Keys in the order of the sequence.
* @return {Array<V>} Values in the order of the sequence. The resulting array * @return {Array<V>} Values in the order of the sequence. The resulting array
@@ -378,13 +378,13 @@ export function makeSequence(object, orderedKeys) {
* values are version specific. * values are version specific.
* @param {Array<string>} namespaceURIs Namespace URIs. * @param {Array<string>} namespaceURIs Namespace URIs.
* @param {T} structure Structure. * @param {T} structure Structure.
* @param {Object.<string, T>=} opt_structureNS Namespaced structure to add to. * @param {Object<string, T>=} opt_structureNS Namespaced structure to add to.
* @return {Object.<string, T>} Namespaced structure. * @return {Object<string, T>} Namespaced structure.
* @template T * @template T
*/ */
export function makeStructureNS(namespaceURIs, structure, opt_structureNS) { export function makeStructureNS(namespaceURIs, structure, opt_structureNS) {
/** /**
* @type {Object.<string, T>} * @type {Object<string, T>}
*/ */
const structureNS = opt_structureNS !== undefined ? opt_structureNS : {}; const structureNS = opt_structureNS !== undefined ? opt_structureNS : {};
let i, ii; let i, ii;
@@ -397,7 +397,7 @@ export function makeStructureNS(namespaceURIs, structure, opt_structureNS) {
/** /**
* Parse a node using the parsers and object stack. * Parse a node using the parsers and object stack.
* @param {Object.<string, Object.<string, module:ol/xml~Parser>>} parsersNS * @param {Object<string, Object<string, module:ol/xml~Parser>>} parsersNS
* Parsers by namespace. * Parsers by namespace.
* @param {Node} node Node. * @param {Node} node Node.
* @param {Array<*>} objectStack Object stack. * @param {Array<*>} objectStack Object stack.
@@ -420,7 +420,7 @@ export function parseNode(parsersNS, node, objectStack, opt_this) {
/** /**
* Push an object on top of the stack, parse and return the popped object. * Push an object on top of the stack, parse and return the popped object.
* @param {T} object Object. * @param {T} object Object.
* @param {Object.<string, Object.<string, module:ol/xml~Parser>>} parsersNS * @param {Object<string, Object<string, module:ol/xml~Parser>>} parsersNS
* Parsers by namespace. * Parsers by namespace.
* @param {Node} node Node. * @param {Node} node Node.
* @param {Array<*>} objectStack Object stack. * @param {Array<*>} objectStack Object stack.
@@ -437,7 +437,7 @@ export function pushParseAndPop(object, parsersNS, node, objectStack, opt_this)
/** /**
* Walk through an array of `values` and call a serializer for each value. * Walk through an array of `values` and call a serializer for each value.
* @param {Object.<string, Object.<string, module:ol/xml~Serializer>>} serializersNS * @param {Object<string, Object<string, module:ol/xml~Serializer>>} serializersNS
* Namespaced serializers. * Namespaced serializers.
* @param {function(this: T, *, Array<*>, (string|undefined)): (Node|undefined)} nodeFactory * @param {function(this: T, *, Array<*>, (string|undefined)): (Node|undefined)} nodeFactory
* Node factory. The `nodeFactory` creates the node whose namespace and name * Node factory. The `nodeFactory` creates the node whose namespace and name
@@ -477,7 +477,7 @@ export function serialize(
/** /**
* @param {O} object Object. * @param {O} object Object.
* @param {Object.<string, Object.<string, module:ol/xml~Serializer>>} serializersNS * @param {Object<string, Object<string, module:ol/xml~Serializer>>} serializersNS
* Namespaced serializers. * Namespaced serializers.
* @param {function(this: T, *, Array<*>, (string|undefined)): (Node|undefined)} nodeFactory * @param {function(this: T, *, Array<*>, (string|undefined)): (Node|undefined)} nodeFactory
* Node factory. The `nodeFactory` creates the node whose namespace and name * Node factory. The `nodeFactory` creates the node whose namespace and name

View File

@@ -41,7 +41,7 @@ function getImports(symbols) {
/** /**
* Generate code to export a named symbol. * Generate code to export a named symbol.
* @param {string} name Symbol name. * @param {string} name Symbol name.
* @param {Object.<string, string>} namespaces Already defined namespaces. * @param {Object<string, string>} namespaces Already defined namespaces.
* @return {string} Export code. * @return {string} Export code.
*/ */
function formatSymbolExport(name, namespaces) { function formatSymbolExport(name, namespaces) {
@@ -65,7 +65,7 @@ function formatSymbolExport(name, namespaces) {
/** /**
* Generate export code given a list symbol names. * Generate export code given a list symbol names.
* @param {Array<Object>} symbols List of symbols. * @param {Array<Object>} symbols List of symbols.
* @param {Object.<string, string>} namespaces Already defined namespaces. * @param {Object<string, string>} namespaces Already defined namespaces.
* @param {Array<string>} imports List of all imports. * @param {Array<string>} imports List of all imports.
* @return {string} Export code. * @return {string} Export code.
*/ */

View File

@@ -12,7 +12,7 @@ import TileGrid from '../../../../src/ol/tilegrid/TileGrid.js';
* Tile source for tests that uses a EPSG:4326 based grid with 4 resolutions and * Tile source for tests that uses a EPSG:4326 based grid with 4 resolutions and
* 256x256 tiles. * 256x256 tiles.
* *
* @param {Object.<string, ol.TileState>} tileStates Lookup of tile key to * @param {Object<string, ol.TileState>} tileStates Lookup of tile key to
* tile state. * tile state.
*/ */
class MockTile extends TileSource { class MockTile extends TileSource {