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 {
/**
* @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
* properties. If you pass an object literal, you may include a Geometry
* associated with a `geometry` key.
@@ -104,7 +104,7 @@ class Feature extends BaseObject {
const geometry = opt_geometryOrProperties;
this.setGeometry(geometry);
} else {
/** @type {Object.<string, *>} */
/** @type {Object<string, *>} */
const properties = opt_geometryOrProperties;
this.setProperties(properties);
}

View File

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

View File

@@ -88,7 +88,7 @@ class ObjectEvent extends Event {
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) {
super();
@@ -101,7 +101,7 @@ class BaseObject extends Observable {
/**
* @private
* @type {!Object.<string, *>}
* @type {!Object<string, *>}
*/
this.values_ = {};
@@ -135,7 +135,7 @@ class BaseObject extends Observable {
/**
* Get an object of all property names and values.
* @return {Object.<string, *>} Object.
* @return {Object<string, *>} Object.
* @api
*/
getProperties() {
@@ -176,7 +176,7 @@ class BaseObject extends Observable {
/**
* 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).
* @param {Object.<string, *>} values Values.
* @param {Object<string, *>} values Values.
* @param {boolean=} opt_silent Update without triggering an event.
* @api
*/
@@ -205,7 +205,7 @@ class BaseObject extends Observable {
/**
* @type {Object.<string, string>}
* @type {Object<string, string>}
*/
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 {module:ol/coordinate~Coordinate} focus
* @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 {module:ol/transform~Transform} pixelToCoordinateTransform
* @property {Array<module:ol/PluggableMap~PostRenderFunction>} postRenderFunctions
* @property {module:ol/size~Size} size
* @property {!Object.<string, boolean>} skippedFeatureUids
* @property {!Object<string, boolean>} skippedFeatureUids
* @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 {!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 {HTMLElement|Document} keyboardEventTarget
* @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.
* @private
* @type {Object.<string, module:ol/Overlay>}
* @type {Object<string, module:ol/Overlay>}
*/
this.overlayIdIndex_ = {};
@@ -368,7 +368,7 @@ class PluggableMap extends BaseObject {
/**
* Uids of features to skip at rendering time.
* @type {Object.<string, boolean>}
* @type {Object<string, boolean>}
* @private
*/
this.skippedFeatureUids_ = {};
@@ -1356,7 +1356,7 @@ function createOptionsInternal(options) {
}
/**
* @type {Object.<string, *>}
* @type {Object<string, *>}
*/
const values = {};

View File

@@ -93,7 +93,7 @@ class Tile extends EventTarget {
/**
* Lookup of start times for rendering transitions. If the start time is
* equal to -1, the transition is complete.
* @type {Object.<number, number>}
* @type {Object<number, number>}
*/
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) {
while (this.canExpireCache()) {

View File

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

View File

@@ -33,7 +33,7 @@ class VectorImageTile extends Tile {
* @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} 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 {module:ol/proj/Projection} projection Projection.
* @param {function(new: module:ol/VectorTile, module:ol/tilecoord~TileCoord, module:ol/TileState, string,
@@ -51,7 +51,7 @@ class VectorImageTile extends Tile {
/**
* @private
* @type {!Object.<string, CanvasRenderingContext2D>}
* @type {!Object<string, CanvasRenderingContext2D>}
*/
this.context_ = {};
@@ -63,13 +63,13 @@ class VectorImageTile extends Tile {
/**
* @private
* @type {!Object.<string, module:ol/VectorImageTile~ReplayState>}
* @type {!Object<string, module:ol/VectorImageTile~ReplayState>}
*/
this.replayState_ = {};
/**
* @private
* @type {Object.<string, module:ol/VectorTile>}
* @type {Object<string, module:ol/VectorTile>}
*/
this.sourceTiles_ = sourceTiles;

View File

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

View File

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

View File

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

View File

@@ -153,7 +153,7 @@ class Attribution extends Control {
getSourceAttributions_(frameState) {
/**
* Used to determine if an attribution already exists.
* @type {!Object.<string, boolean>}
* @type {!Object<string, boolean>}
*/
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
* for font families that have commas in them.
* @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() {
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
* created.
* @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.
*/
function getListenerMap(target) {

View File

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

View File

@@ -23,7 +23,7 @@ import {get as getProjection} from '../proj.js';
/**
* @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 = {};
GEOMETRY_READERS[GeometryType.POINT] = readPointGeometry;
@@ -36,7 +36,7 @@ GEOMETRY_READERS[GeometryType.MULTI_POLYGON] = readMultiPolygonGeometry;
/**
* @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 = {};
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
* @type {Object.<string, string>}
* @type {Object<string, string>}
*/
const MULTIGEOMETRY_TO_MEMBER_NODENAME = {
'MultiLineString': 'lineStringMember',
@@ -587,7 +587,7 @@ class GML2 extends GMLBase {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
@@ -598,7 +598,7 @@ GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
@@ -610,7 +610,7 @@ GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML2.prototype.BOX_PARSERS_ = {
@@ -622,7 +622,7 @@ GML2.prototype.BOX_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML2.prototype.GEOMETRY_PARSERS_ = {
@@ -645,7 +645,7 @@ GML2.prototype.GEOMETRY_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private
*/
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
*/
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
*/
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
*/
GML2.prototype.POINTMEMBER_SERIALIZERS_ = {
@@ -713,7 +713,7 @@ GML2.prototype.POINTMEMBER_SERIALIZERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
* @private
*/
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
*/
GML2.prototype.ENVELOPE_SERIALIZERS_ = {

View File

@@ -31,7 +31,7 @@ const schemaLocation = GMLNS +
/**
* @const
* @type {Object.<string, string>}
* @type {Object<string, string>}
*/
const MULTIGEOMETRY_TO_MEMBER_NODENAME = {
'MultiLineString': 'lineStringMember',
@@ -920,7 +920,7 @@ class GML3 extends GMLBase {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
@@ -933,7 +933,7 @@ GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
@@ -946,7 +946,7 @@ GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.GEOMETRY_PARSERS_ = {
@@ -976,7 +976,7 @@ GML3.prototype.GEOMETRY_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.MULTICURVE_PARSERS_ = {
@@ -991,7 +991,7 @@ GML3.prototype.MULTICURVE_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.MULTISURFACE_PARSERS_ = {
@@ -1006,7 +1006,7 @@ GML3.prototype.MULTISURFACE_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.CURVEMEMBER_PARSERS_ = {
@@ -1020,7 +1020,7 @@ GML3.prototype.CURVEMEMBER_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.SURFACEMEMBER_PARSERS_ = {
@@ -1033,7 +1033,7 @@ GML3.prototype.SURFACEMEMBER_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.SURFACE_PARSERS_ = {
@@ -1045,7 +1045,7 @@ GML3.prototype.SURFACE_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.CURVE_PARSERS_ = {
@@ -1057,7 +1057,7 @@ GML3.prototype.CURVE_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.ENVELOPE_PARSERS_ = {
@@ -1072,7 +1072,7 @@ GML3.prototype.ENVELOPE_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
GML3.prototype.PATCHES_PARSERS_ = {
@@ -1085,7 +1085,7 @@ GML3.prototype.PATCHES_PARSERS_ = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
* @private
*/
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
*/
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
*/
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
*/
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
*/
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
*/
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
*/
GML3.prototype.GEOMETRY_SERIALIZERS_ = {

View File

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

View File

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

View File

@@ -231,7 +231,7 @@ class GeoJSON extends JSONFeature {
/**
* @const
* @type {Object.<string, function(GeoJSONObject): module:ol/geom/Geometry>}
* @type {Object<string, function(GeoJSONObject): module:ol/geom/Geometry>}
*/
const GEOMETRY_READERS = {
'Point': readPointGeometry,
@@ -246,7 +246,7 @@ const GEOMETRY_READERS = {
/**
* @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 = {
'Point': writePointGeometry,

View File

@@ -94,7 +94,7 @@ class IGC extends TextFeature {
readFeatureFromText(text, opt_options) {
const altitudeMode = this.altitudeMode_;
const lines = text.split(NEWLINE_RE);
/** @type {Object.<string, string>} */
/** @type {Object<string, string>} */
const properties = {};
const flatCoordinates = [];
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 = {
'fraction': IconAnchorUnits.FRACTION,
@@ -89,7 +89,7 @@ const ICON_ANCHOR_UNITS_MAP = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const PLACEMARK_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -126,7 +126,7 @@ const PLACEMARK_PARSERS = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const NETWORK_LINK_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -144,7 +144,7 @@ const NETWORK_LINK_PARSERS = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const LINK_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -154,7 +154,7 @@ const LINK_PARSERS = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const REGION_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -165,7 +165,7 @@ const REGION_PARSERS = makeStructureNS(
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const KML_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -175,7 +175,7 @@ const KML_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const KML_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -441,7 +441,7 @@ class KML extends XMLFeature {
/**
* @private
* @type {!Object.<string, (Array<module:ol/style/Style>|string)>}
* @type {!Object<string, (Array<module:ol/style/Style>|string)>}
*/
this.sharedStyles_ = {};
@@ -905,7 +905,7 @@ function createNameStyleFunction(foundStyle, name) {
* @param {Array<module:ol/style/Style>|undefined} style Style.
* @param {string} styleUrl Style URL.
* @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.
* @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>} 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.
* @return {Array<module:ol/style/Style>} Style.
*/
@@ -1094,7 +1094,7 @@ function readScale(node) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const STYLE_MAP_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1115,7 +1115,7 @@ function readStyleMapValue(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const ICON_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1231,7 +1231,7 @@ function iconStyleParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const LABEL_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1266,7 +1266,7 @@ function labelStyleParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const LINE_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1302,7 +1302,7 @@ function lineStyleParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const POLY_STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1342,7 +1342,7 @@ function polyStyleParser(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -1386,7 +1386,7 @@ function gxCoordParser(node, objectStack) {
/**
* @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(
GX_NAMESPACE_URIS, {
@@ -1411,7 +1411,7 @@ function readGxMultiTrack(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const GX_TRACK_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1447,7 +1447,7 @@ function readGxTrack(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const ICON_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1479,7 +1479,7 @@ function readIcon(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -1500,7 +1500,7 @@ function readFlatCoordinatesFromNode(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -1554,7 +1554,7 @@ function readLinearRing(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const MULTI_GEOMETRY_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1648,7 +1648,7 @@ function readPoint(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -1686,7 +1686,7 @@ function readPolygon(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const STYLE_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1778,7 +1778,7 @@ function setCommonGeometryProperties(multiGeometry, geometries) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const DATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1806,7 +1806,7 @@ function dataParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const EXTENDED_DATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1833,7 +1833,7 @@ function regionParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const PAIR_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1892,7 +1892,7 @@ function placemarkStyleMapParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const SCHEMA_DATA_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1925,7 +1925,7 @@ function simpleDataParser(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -1964,7 +1964,7 @@ function latLonAltBoxParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const LOD_PARSERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -1994,7 +1994,7 @@ function lodParser(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -2020,7 +2020,7 @@ function innerBoundaryIsParser(node, objectStack) {
/**
* @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(
NAMESPACE_URIS, {
@@ -2125,7 +2125,7 @@ function writeCoordinatesTextNode(node, coordinates, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const EXTENDEDDATA_NODE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2182,7 +2182,7 @@ function writeDataNodeValue(node, value) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const DOCUMENT_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2245,7 +2245,7 @@ function writeExtendedData(node, namesAndValues, objectStack) {
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const ICON_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2258,7 +2258,7 @@ const ICON_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const ICON_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2308,7 +2308,7 @@ function writeIcon(node, icon, objectStack) {
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const ICON_STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2318,7 +2318,7 @@ const ICON_STYLE_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const ICON_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2388,7 +2388,7 @@ function writeIconStyle(node, style, objectStack) {
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const LABEL_STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2398,7 +2398,7 @@ const LABEL_STYLE_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const LABEL_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2434,7 +2434,7 @@ function writeLabelStyle(node, style, objectStack) {
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const LINE_STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2444,7 +2444,7 @@ const LINE_STYLE_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const LINE_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2474,7 +2474,7 @@ function writeLineStyle(node, style, objectStack) {
/**
* @const
* @type {Object.<string, string>}
* @type {Object<string, string>}
*/
const GEOMETRY_TYPE_TO_NODENAME = {
'Point': 'Point',
@@ -2538,7 +2538,7 @@ const POLYGON_NODE_FACTORY = makeSimpleNodeFactory('Polygon');
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const MULTI_GEOMETRY_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2590,7 +2590,7 @@ function writeMultiGeometry(node, geometry, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const BOUNDARY_IS_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2614,7 +2614,7 @@ function writeBoundaryIs(node, linearRing, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const PLACEMARK_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2637,7 +2637,7 @@ const PLACEMARK_SERIALIZERS = makeStructureNS(
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const PLACEMARK_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2723,7 +2723,7 @@ function writePlacemark(node, feature, objectStack) {
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const PRIMITIVE_GEOMETRY_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2733,7 +2733,7 @@ const PRIMITIVE_GEOMETRY_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const PRIMITIVE_GEOMETRY_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2769,7 +2769,7 @@ function writePrimitiveGeometry(node, geometry, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const POLYGON_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2820,7 +2820,7 @@ function writePolygon(node, polygon, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const POLY_STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {
@@ -2861,7 +2861,7 @@ function writeScaleTextNode(node, scale) {
/**
* @const
* @type {Object.<string, Array<string>>}
* @type {Object<string, Array<string>>}
*/
const STYLE_SEQUENCE = makeStructureNS(
NAMESPACE_URIS, [
@@ -2871,7 +2871,7 @@ const STYLE_SEQUENCE = makeStructureNS(
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>}
* @type {Object<string, Object<string, module:ol/xml~Serializer>>}
*/
const STYLE_SERIALIZERS = makeStructureNS(
NAMESPACE_URIS, {

View File

@@ -23,7 +23,7 @@ import RenderFeature from '../render/Feature.js';
/**
* @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
* {@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},
@@ -64,9 +64,9 @@ class MVT extends FeatureFormat {
/**
* @private
* @type {function((module:ol/geom/Geometry|Object.<string,*>)=)|
* @type {function((module:ol/geom/Geometry|Object<string,*>)=)|
* 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 ?
options.featureClass : RenderFeature;

View File

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

View File

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

View File

@@ -157,7 +157,7 @@ class TopoJSON extends JSONFeature {
/**
* @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 = {
'Point': readPointGeometry,

View File

@@ -18,7 +18,7 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender,
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const FEATURE_COLLECTION_PARSERS = {
'http://www.opengis.net/gml': {
@@ -30,7 +30,7 @@ const FEATURE_COLLECTION_PARSERS = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const TRANSACTION_SUMMARY_PARSERS = {
'http://www.opengis.net/wfs': {
@@ -43,7 +43,7 @@ const TRANSACTION_SUMMARY_PARSERS = {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const TRANSACTION_RESPONSE_PARSERS = {
'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 = {
'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 = {
'http://www.opengis.net/wfs': {
@@ -81,7 +81,7 @@ const TRANSACTION_SERIALIZERS = {
/**
* @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 {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.
@@ -178,7 +178,7 @@ const FESNS = 'http://www.opengis.net/fes';
/**
* @type {Object.<string, string>}
* @type {Object<string, string>}
*/
const SCHEMA_LOCATIONS = {
'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
* @type {Object.<string, string>|string|undefined}
* @type {Object<string, string>|string|undefined}
*/
this.featureNS_ = options.featureNS;
@@ -549,7 +549,7 @@ function readTransactionSummary(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const OGC_FID_PARSERS = {
'http://www.opengis.net/ogc': {
@@ -571,7 +571,7 @@ function fidParser(node, objectStack) {
/**
* @const
* @type {Object.<string, Object.<string, module:ol/xml~Parser>>}
* @type {Object<string, Object<string, module:ol/xml~Parser>>}
*/
const INSERT_RESULTS_PARSERS = {
'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 = {
'http://www.opengis.net/wfs': {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -203,7 +203,7 @@ class Modify extends PointerInteraction {
/**
* Segments intersecting {@link this.vertexFeature_} by segment uid.
* @type {Object.<string, boolean>}
* @type {Object<string, boolean>}
* @private
*/
this.vertexSegments_ = null;
@@ -281,7 +281,7 @@ class Modify extends PointerInteraction {
/**
* @const
* @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_ = {
'Point': this.writePointGeometry_,

View File

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

View File

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

View File

@@ -111,7 +111,7 @@ class Snap extends PointerInteraction {
this.featuresListenerKeys_ = [];
/**
* @type {Object.<number, module:ol/events~EventsKey>}
* @type {Object<number, module:ol/events~EventsKey>}
* @private
*/
this.featureChangeListenerKeys_ = {};
@@ -119,7 +119,7 @@ class Snap extends PointerInteraction {
/**
* Extents are preserved so indexed segment can be quickly removed
* when its feature geometry changes
* @type {Object.<number, module:ol/extent~Extent>}
* @type {Object<number, module:ol/extent~Extent>}
* @private
*/
this.indexedFeaturesExtents_ = {};
@@ -128,7 +128,7 @@ class Snap extends PointerInteraction {
* 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'
* event fired.
* @type {!Object.<number, module:ol/Feature>}
* @type {!Object<number, module:ol/Feature>}
* @private
*/
this.pendingFeatures_ = {};
@@ -165,7 +165,7 @@ class Snap extends PointerInteraction {
/**
* @const
* @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_ = {
'Point': this.writePointGeometry_,

View File

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

View File

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

View File

@@ -6,7 +6,7 @@ class EventSource {
/**
* @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) {
@@ -18,7 +18,7 @@ class EventSource {
/**
* @private
* @const
* @type {!Object.<string, function(Event)>}
* @type {!Object<string, function(Event)>}
*/
this.mapping_ = mapping;
}

View File

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

View File

@@ -157,7 +157,7 @@ class MsSource extends EventSource {
/**
* @const
* @type {!Object.<string, MSPointerEvent|Object>}
* @type {!Object<string, MSPointerEvent|Object>}
*/
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 {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.
*/
constructor(type, originalEvent, opt_eventDict) {
@@ -202,7 +202,7 @@ class PointerEvent extends Event {
/**
* @private
* @param {Object.<string, ?>} eventDict The event dictionary.
* @param {Object<string, ?>} eventDict The event dictionary.
* @return {number} Button indicator.
*/
getButtons_(eventDict) {
@@ -243,7 +243,7 @@ class PointerEvent extends Event {
/**
* @private
* @param {Object.<string, ?>} eventDict The event dictionary.
* @param {Object<string, ?>} eventDict The event dictionary.
* @param {number} buttons Button indicator.
* @return {number} The pressure.
*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -134,7 +134,7 @@ class CanvasReplay extends VectorContext {
/**
* @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_ = {};
@@ -530,7 +530,7 @@ class CanvasReplay extends VectorContext {
* @private
* @param {CanvasRenderingContext2D} context Context.
* @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.
* @param {Array<*>} instructions Instructions array.
* @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 {module:ol/transform~Transform} transform Transform.
* @param {number} viewRotation View rotation.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip.
*/
replay(context, transform, viewRotation, skippedFeaturesHash) {
@@ -864,7 +864,7 @@ class CanvasReplay extends VectorContext {
* @param {CanvasRenderingContext2D} context Context.
* @param {module:ol/transform~Transform} transform Transform.
* @param {number} viewRotation View rotation.
* @param {Object.<string, boolean>} skippedFeaturesHash Ids of features
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features
* to skip.
* @param {function((module:ol/Feature|module:ol/render/Feature)): T=} opt_featureCallback
* 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,
* number, number, boolean, Array<module:ol/render/canvas~DeclutterGroup>)>}
*/
@@ -104,7 +104,7 @@ class CanvasReplayGroup extends ReplayGroup {
/**
* @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_ = {};
@@ -186,9 +186,9 @@ class CanvasReplayGroup extends ReplayGroup {
* @param {number} resolution Resolution.
* @param {number} rotation Rotation.
* @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 {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.
* @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() {
return this.replaysByZIndex_;
@@ -352,10 +352,10 @@ class CanvasReplayGroup extends ReplayGroup {
* @param {CanvasRenderingContext2D} context Context.
* @param {module:ol/transform~Transform} transform Transform.
* @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.
* 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(
context,
@@ -407,7 +407,7 @@ class CanvasReplayGroup extends ReplayGroup {
/**
* This cache is used for storing calculated pixel circles for increasing performance.
* 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 = {
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 {number} rotation Rotation.
*/

View File

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

View File

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

View File

@@ -160,7 +160,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @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.
*/
drawReplay(gl, context, skippedFeaturesHash, hitDetection) {}
@@ -170,7 +170,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @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 {module:ol/extent~Extent=} opt_hitExtent Hit extent: Only features intersecting this extent are checked.
* @return {T|undefined} Callback result.
@@ -182,7 +182,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @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 {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.
@@ -205,7 +205,7 @@ class WebGLReplay extends VectorContext {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @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.
* @return {T|undefined} Callback result.
* @template T
@@ -230,7 +230,7 @@ class WebGLReplay extends VectorContext {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @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 {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.

View File

@@ -19,7 +19,7 @@ import WebGLTextReplay from '../webgl/TextReplay.js';
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,
* module:ol/extent~Extent)>}
*/
@@ -61,8 +61,8 @@ class WebGLReplayGroup extends ReplayGroup {
/**
* @private
* @type {!Object.<string,
* Object.<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>}
* @type {!Object<string,
* Object<module:ol/render/ReplayType, module:ol/render/webgl/Replay>>}
*/
this.replaysByZIndex_ = {};
@@ -148,7 +148,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @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(
context,
@@ -188,7 +188,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @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 {boolean} oneByOne Draw features one-by-one for the hit-detecion.
* @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 {number} pixelRatio Pixel ratio.
* @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.
* @return {T|undefined} Callback result.
* @template T
@@ -303,7 +303,7 @@ class WebGLReplayGroup extends ReplayGroup {
* @param {module:ol/size~Size} size Size.
* @param {number} pixelRatio Pixel ratio.
* @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?
*/
hasFeatureAtCoordinate(

View File

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

View File

@@ -235,7 +235,7 @@ class WebGLTextureReplay extends WebGLReplay {
* @protected
* @param {Array<WebGLTexture>} textures Textures.
* @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.
*/
createTextures(textures, images, texturePerImage, gl) {
@@ -351,7 +351,7 @@ class WebGLTextureReplay extends WebGLReplay {
* @protected
* @param {WebGLRenderingContext} gl gl.
* @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.
* @param {Array<WebGLTexture>} textures Textures.
* @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.
* @param {module:ol/source/Tile} source Tile source.
* @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
* called with a zoom level and a tile range to add loaded tiles to the lookup.
* @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 {number} z Z.
* @param {module:ol/TileRange} tileRange Tile range.

View File

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

View File

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

View File

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

View File

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

View File

@@ -214,7 +214,7 @@ class WebGLTileLayerRenderer extends WebGLLayerRenderer {
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 = {};
tilesToDrawByZ[z] = {};

View File

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

View File

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

View File

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

View File

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

View File

@@ -23,7 +23,7 @@ import {appendParams} from '../uri.js';
* the remote server.
* @property {module:ol/Image~LoadFunction} [imageLoadFunction] Optional function to load an image given
* 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
* `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

View File

@@ -195,7 +195,7 @@ class ImageMapGuide extends ImageSource {
/**
* @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/size~Size} size Size.
* @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
* 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 {Object.<string,*>} params WMS request parameters.
* @property {Object<string,*>} params WMS request parameters.
* At least a `LAYERS` param is required. `STYLES` is
* `''` 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.

View File

@@ -180,7 +180,7 @@ class Source extends BaseObject {
* @param {number} resolution Resolution.
* @param {number} rotation Rotation.
* @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.
* @return {T|undefined} Callback result.
* @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 = {
'terrain': {
@@ -70,7 +70,7 @@ const LayerConfig = {
/**
* @type {Object.<string, {minZoom: number, maxZoom: number}>}
* @type {Object<string, {minZoom: number, maxZoom: number}>}
*/
const ProviderConfig = {
'terrain': {

View File

@@ -102,7 +102,7 @@ class TileSource extends Source {
/**
* @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) {
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
* https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image
* 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
* default. `TRANSPARENT` is `true` by default. `BBOX, `SIZE`, `BBOXSR`,
* and `IMAGESR` will be set dynamically. Set `LAYERS` to

View File

@@ -102,13 +102,13 @@ class TileImage extends UrlTile {
/**
* @protected
* @type {!Object.<string, module:ol/TileCache>}
* @type {!Object<string, module:ol/TileCache>}
*/
this.tileCacheForProjection = {};
/**
* @protected
* @type {!Object.<string, module:ol/tilegrid/TileGrid>}
* @type {!Object<string, module:ol/tilegrid/TileGrid>}
*/
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
* access pixel data with the Canvas renderer. See
* 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
* `''` 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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -466,10 +466,10 @@ export function createDefaultStyle(feature, resolution) {
/**
* 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() {
/** @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 white = [255, 255, 255, 1];
const blue = [0, 153, 255, 1];

View File

@@ -45,19 +45,19 @@ class WebGLContext extends Disposable {
/**
* @private
* @type {!Object.<string, module:ol/webgl/Context~BufferCacheEntry>}
* @type {!Object<string, module:ol/webgl/Context~BufferCacheEntry>}
*/
this.bufferCache_ = {};
/**
* @private
* @type {!Object.<string, WebGLShader>}
* @type {!Object<string, WebGLShader>}
*/
this.shaderCache_ = {};
/**
* @private
* @type {!Object.<string, WebGLProgram>}
* @type {!Object<string, WebGLProgram>}
*/
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
* {@link module:ol/xml~pushSerializeAndPop}, where `orderedKeys` has to be provided as
* `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`.
* @param {Array<string>} orderedKeys Keys in the order of the sequence.
* @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.
* @param {Array<string>} namespaceURIs Namespace URIs.
* @param {T} structure Structure.
* @param {Object.<string, T>=} opt_structureNS Namespaced structure to add to.
* @return {Object.<string, T>} Namespaced structure.
* @param {Object<string, T>=} opt_structureNS Namespaced structure to add to.
* @return {Object<string, T>} Namespaced structure.
* @template T
*/
export function makeStructureNS(namespaceURIs, structure, opt_structureNS) {
/**
* @type {Object.<string, T>}
* @type {Object<string, T>}
*/
const structureNS = opt_structureNS !== undefined ? opt_structureNS : {};
let i, ii;
@@ -397,7 +397,7 @@ export function makeStructureNS(namespaceURIs, structure, opt_structureNS) {
/**
* 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.
* @param {Node} node Node.
* @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.
* @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.
* @param {Node} node Node.
* @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.
* @param {Object.<string, Object.<string, module:ol/xml~Serializer>>} serializersNS
* @param {Object<string, Object<string, module:ol/xml~Serializer>>} serializersNS
* Namespaced serializers.
* @param {function(this: T, *, Array<*>, (string|undefined)): (Node|undefined)} nodeFactory
* Node factory. The `nodeFactory` creates the node whose namespace and name
@@ -477,7 +477,7 @@ export function serialize(
/**
* @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.
* @param {function(this: T, *, Array<*>, (string|undefined)): (Node|undefined)} nodeFactory
* 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.
* @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.
*/
function formatSymbolExport(name, namespaces) {
@@ -65,7 +65,7 @@ function formatSymbolExport(name, namespaces) {
/**
* Generate export code given a list symbol names.
* @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.
* @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
* 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.
*/
class MockTile extends TileSource {