Rename non-api sub-namespace typedefs

This commit is contained in:
Peter Robins
2016-05-13 09:58:25 +00:00
parent 4626554a18
commit 176ddd3403
36 changed files with 315 additions and 324 deletions

View File

@@ -7480,8 +7480,8 @@ olx.view.FitOptions.prototype.maxZoom;
* extent: (null|ol.Extent), * extent: (null|ol.Extent),
* focus: ol.Coordinate, * focus: ol.Coordinate,
* index: number, * index: number,
* layerStates: Object.<number, ol.layer.LayerState>, * layerStates: Object.<number, ol.LayerState>,
* layerStatesArray: Array.<ol.layer.LayerState>, * layerStatesArray: Array.<ol.LayerState>,
* logos: Object.<string, (string|Element)>, * logos: Object.<string, (string|Element)>,
* pixelRatio: number, * pixelRatio: number,
* pixelToCoordinateMatrix: ol.vec.Mat4.Number, * pixelToCoordinateMatrix: ol.vec.Mat4.Number,

View File

@@ -166,7 +166,7 @@ ol.format.GML2.prototype.outerBoundaryIsParser_ = function(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = { ol.format.GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
@@ -179,7 +179,7 @@ ol.format.GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = { ol.format.GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
@@ -192,7 +192,7 @@ ol.format.GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML2.prototype.BOX_PARSERS_ = { ol.format.GML2.prototype.BOX_PARSERS_ = {
@@ -205,7 +205,7 @@ ol.format.GML2.prototype.BOX_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML2.prototype.GEOMETRY_PARSERS_ = { ol.format.GML2.prototype.GEOMETRY_PARSERS_ = {

View File

@@ -450,7 +450,7 @@ ol.format.GML3.prototype.readFlatPosList_ = function(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = { ol.format.GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
@@ -463,7 +463,7 @@ ol.format.GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = { ol.format.GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
@@ -476,7 +476,7 @@ ol.format.GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.GEOMETRY_PARSERS_ = { ol.format.GML3.prototype.GEOMETRY_PARSERS_ = {
@@ -506,7 +506,7 @@ ol.format.GML3.prototype.GEOMETRY_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.MULTICURVE_PARSERS_ = { ol.format.GML3.prototype.MULTICURVE_PARSERS_ = {
@@ -521,7 +521,7 @@ ol.format.GML3.prototype.MULTICURVE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.MULTISURFACE_PARSERS_ = { ol.format.GML3.prototype.MULTISURFACE_PARSERS_ = {
@@ -536,7 +536,7 @@ ol.format.GML3.prototype.MULTISURFACE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.CURVEMEMBER_PARSERS_ = { ol.format.GML3.prototype.CURVEMEMBER_PARSERS_ = {
@@ -550,7 +550,7 @@ ol.format.GML3.prototype.CURVEMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.SURFACEMEMBER_PARSERS_ = { ol.format.GML3.prototype.SURFACEMEMBER_PARSERS_ = {
@@ -563,7 +563,7 @@ ol.format.GML3.prototype.SURFACEMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.SURFACE_PARSERS_ = { ol.format.GML3.prototype.SURFACE_PARSERS_ = {
@@ -575,7 +575,7 @@ ol.format.GML3.prototype.SURFACE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.CURVE_PARSERS_ = { ol.format.GML3.prototype.CURVE_PARSERS_ = {
@@ -587,7 +587,7 @@ ol.format.GML3.prototype.CURVE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.ENVELOPE_PARSERS_ = { ol.format.GML3.prototype.ENVELOPE_PARSERS_ = {
@@ -602,7 +602,7 @@ ol.format.GML3.prototype.ENVELOPE_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.PATCHES_PARSERS_ = { ol.format.GML3.prototype.PATCHES_PARSERS_ = {
@@ -615,7 +615,7 @@ ol.format.GML3.prototype.PATCHES_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GML3.prototype.SEGMENTS_PARSERS_ = { ol.format.GML3.prototype.SEGMENTS_PARSERS_ = {
@@ -712,7 +712,7 @@ ol.format.GML3.prototype.writePoint_ = function(node, geometry, objectStack) {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GML3.ENVELOPE_SERIALIZERS_ = { ol.format.GML3.ENVELOPE_SERIALIZERS_ = {
@@ -738,7 +738,7 @@ ol.format.GML3.prototype.writeEnvelope = function(node, extent, objectStack) {
} }
var keys = ['lowerCorner', 'upperCorner']; var keys = ['lowerCorner', 'upperCorner'];
var values = [extent[0] + ' ' + extent[1], extent[2] + ' ' + extent[3]]; var values = [extent[0] + ' ' + extent[1], extent[2] + ' ' + extent[3]];
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */
({node: node}), ol.format.GML3.ENVELOPE_SERIALIZERS_, ({node: node}), ol.format.GML3.ENVELOPE_SERIALIZERS_,
ol.xml.OBJECT_PROPERTY_NODE_FACTORY, ol.xml.OBJECT_PROPERTY_NODE_FACTORY,
values, values,
@@ -1019,7 +1019,7 @@ ol.format.GML3.prototype.writeGeometryElement = function(node, geometry, objectS
value = value =
ol.format.Feature.transformWithOptions(geometry, true, context); ol.format.Feature.transformWithOptions(geometry, true, context);
} }
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */
(item), ol.format.GML3.GEOMETRY_SERIALIZERS_, (item), ol.format.GML3.GEOMETRY_SERIALIZERS_,
this.GEOMETRY_NODE_FACTORY_, [value], this.GEOMETRY_NODE_FACTORY_, [value],
objectStack, undefined, this); objectStack, undefined, this);
@@ -1066,7 +1066,7 @@ ol.format.GML3.prototype.writeFeatureElement = function(node, feature, objectSta
} }
var item = ol.object.assign({}, context); var item = ol.object.assign({}, context);
item.node = node; item.node = node;
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */
(item), context.serializers, (item), context.serializers,
ol.xml.makeSimpleNodeFactory(undefined, featureNS), ol.xml.makeSimpleNodeFactory(undefined, featureNS),
values, values,
@@ -1091,7 +1091,7 @@ ol.format.GML3.prototype.writeFeatureMembers_ = function(node, features, objectS
this.writeFeatureElement, this); this.writeFeatureElement, this);
var item = ol.object.assign({}, context); var item = ol.object.assign({}, context);
item.node = node; item.node = node;
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */
(item), (item),
serializers, serializers,
ol.xml.makeSimpleNodeFactory(featureType, featureNS), features, ol.xml.makeSimpleNodeFactory(featureType, featureNS), features,
@@ -1100,7 +1100,7 @@ ol.format.GML3.prototype.writeFeatureMembers_ = function(node, features, objectS
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GML3.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = { ol.format.GML3.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
@@ -1114,7 +1114,7 @@ ol.format.GML3.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GML3.POINTMEMBER_SERIALIZERS_ = { ol.format.GML3.POINTMEMBER_SERIALIZERS_ = {
@@ -1126,7 +1126,7 @@ ol.format.GML3.POINTMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GML3.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = { ol.format.GML3.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
@@ -1140,7 +1140,7 @@ ol.format.GML3.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GML3.RING_SERIALIZERS_ = { ol.format.GML3.RING_SERIALIZERS_ = {
@@ -1152,7 +1152,7 @@ ol.format.GML3.RING_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GML3.GEOMETRY_SERIALIZERS_ = { ol.format.GML3.GEOMETRY_SERIALIZERS_ = {

View File

@@ -500,7 +500,7 @@ ol.format.GMLBase.prototype.readFlatCoordinatesFromNode_ = function(node, object
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GMLBase.prototype.MULTIPOINT_PARSERS_ = { ol.format.GMLBase.prototype.MULTIPOINT_PARSERS_ = {
@@ -515,7 +515,7 @@ ol.format.GMLBase.prototype.MULTIPOINT_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GMLBase.prototype.MULTILINESTRING_PARSERS_ = { ol.format.GMLBase.prototype.MULTILINESTRING_PARSERS_ = {
@@ -530,7 +530,7 @@ ol.format.GMLBase.prototype.MULTILINESTRING_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GMLBase.prototype.MULTIPOLYGON_PARSERS_ = { ol.format.GMLBase.prototype.MULTIPOLYGON_PARSERS_ = {
@@ -545,7 +545,7 @@ ol.format.GMLBase.prototype.MULTIPOLYGON_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GMLBase.prototype.POINTMEMBER_PARSERS_ = { ol.format.GMLBase.prototype.POINTMEMBER_PARSERS_ = {
@@ -558,7 +558,7 @@ ol.format.GMLBase.prototype.POINTMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GMLBase.prototype.LINESTRINGMEMBER_PARSERS_ = { ol.format.GMLBase.prototype.LINESTRINGMEMBER_PARSERS_ = {
@@ -571,7 +571,7 @@ ol.format.GMLBase.prototype.LINESTRINGMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GMLBase.prototype.POLYGONMEMBER_PARSERS_ = { ol.format.GMLBase.prototype.POLYGONMEMBER_PARSERS_ = {
@@ -584,7 +584,7 @@ ol.format.GMLBase.prototype.POLYGONMEMBER_PARSERS_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @protected * @protected
*/ */
ol.format.GMLBase.prototype.RING_PARSERS = { ol.format.GMLBase.prototype.RING_PARSERS = {

View File

@@ -279,7 +279,7 @@ ol.format.GPX.FEATURE_READER_ = {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.GPX_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.GPX_PARSERS_ = ol.xml.makeStructureNS(
@@ -292,7 +292,7 @@ ol.format.GPX.GPX_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.LINK_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.LINK_PARSERS_ = ol.xml.makeStructureNS(
@@ -306,7 +306,7 @@ ol.format.GPX.LINK_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.RTE_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.RTE_PARSERS_ = ol.xml.makeStructureNS(
@@ -326,7 +326,7 @@ ol.format.GPX.RTE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.RTEPT_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.RTEPT_PARSERS_ = ol.xml.makeStructureNS(
@@ -338,7 +338,7 @@ ol.format.GPX.RTEPT_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.TRK_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.TRK_PARSERS_ = ol.xml.makeStructureNS(
@@ -358,7 +358,7 @@ ol.format.GPX.TRK_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.TRKSEG_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.TRKSEG_PARSERS_ = ol.xml.makeStructureNS(
@@ -369,7 +369,7 @@ ol.format.GPX.TRKSEG_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.TRKPT_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.TRKPT_PARSERS_ = ol.xml.makeStructureNS(
@@ -381,7 +381,7 @@ ol.format.GPX.TRKPT_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.GPX.WPT_PARSERS_ = ol.xml.makeStructureNS( ol.format.GPX.WPT_PARSERS_ = ol.xml.makeStructureNS(
@@ -526,7 +526,7 @@ ol.format.GPX.writeLink_ = function(node, value, objectStack) {
properties['linkText'], properties['linkText'],
properties['linkType'] properties['linkType']
]; ];
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ({node: node}), ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */ ({node: node}),
ol.format.GPX.LINK_SERIALIZERS_, ol.xml.OBJECT_PROPERTY_NODE_FACTORY, ol.format.GPX.LINK_SERIALIZERS_, ol.xml.OBJECT_PROPERTY_NODE_FACTORY,
link, objectStack, ol.format.GPX.LINK_SEQUENCE_); link, objectStack, ol.format.GPX.LINK_SEQUENCE_);
}; };
@@ -571,7 +571,7 @@ ol.format.GPX.writeWptType_ = function(node, coordinate, objectStack) {
} }
var orderedKeys = ol.format.GPX.WPT_TYPE_SEQUENCE_[namespaceURI]; var orderedKeys = ol.format.GPX.WPT_TYPE_SEQUENCE_[namespaceURI];
var values = ol.xml.makeSequence(properties, orderedKeys); var values = ol.xml.makeSequence(properties, orderedKeys);
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */
({node: node, 'properties': properties}), ({node: node, 'properties': properties}),
ol.format.GPX.WPT_TYPE_SERIALIZERS_, ol.xml.OBJECT_PROPERTY_NODE_FACTORY, ol.format.GPX.WPT_TYPE_SERIALIZERS_, ol.xml.OBJECT_PROPERTY_NODE_FACTORY,
values, objectStack, orderedKeys); values, objectStack, orderedKeys);
@@ -615,7 +615,7 @@ ol.format.GPX.writeRte_ = function(node, feature, objectStack) {
ol.format.GPX.writeTrk_ = function(node, feature, objectStack) { ol.format.GPX.writeTrk_ = function(node, feature, objectStack) {
var options = /** @type {olx.format.WriteOptions} */ (objectStack[0]); var options = /** @type {olx.format.WriteOptions} */ (objectStack[0]);
var properties = feature.getProperties(); var properties = feature.getProperties();
/** @type {ol.xml.NodeStackItem} */ /** @type {ol.xmlNodeStackItem} */
var context = {node: node, 'properties': properties}; var context = {node: node, 'properties': properties};
var geometry = feature.getGeometry(); var geometry = feature.getGeometry();
if (geometry) { if (geometry) {
@@ -641,7 +641,7 @@ ol.format.GPX.writeTrk_ = function(node, feature, objectStack) {
* @private * @private
*/ */
ol.format.GPX.writeTrkSeg_ = function(node, lineString, objectStack) { ol.format.GPX.writeTrkSeg_ = function(node, lineString, objectStack) {
/** @type {ol.xml.NodeStackItem} */ /** @type {ol.xmlNodeStackItem} */
var context = {node: node, 'geometryLayout': lineString.getLayout(), var context = {node: node, 'geometryLayout': lineString.getLayout(),
'properties': {}}; 'properties': {}};
ol.xml.pushSerializeAndPop(context, ol.xml.pushSerializeAndPop(context,
@@ -682,7 +682,7 @@ ol.format.GPX.LINK_SEQUENCE_ = ['text', 'type'];
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GPX.LINK_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.GPX.LINK_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -705,7 +705,7 @@ ol.format.GPX.RTE_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GPX.RTE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.GPX.RTE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -736,7 +736,7 @@ ol.format.GPX.TRK_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GPX.TRK_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.GPX.TRK_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -764,7 +764,7 @@ ol.format.GPX.TRKSEG_NODE_FACTORY_ = ol.xml.makeSimpleNodeFactory('trkpt');
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GPX.TRKSEG_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.GPX.TRKSEG_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -787,7 +787,7 @@ ol.format.GPX.WPT_TYPE_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GPX.WPT_TYPE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.GPX.WPT_TYPE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -855,7 +855,7 @@ ol.format.GPX.GPX_NODE_FACTORY_ = function(value, objectStack, opt_nodeName) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.GPX.GPX_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.GPX.GPX_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -895,7 +895,7 @@ ol.format.GPX.prototype.writeFeaturesNode = function(features, opt_options) {
//FIXME Serialize metadata //FIXME Serialize metadata
var gpx = ol.xml.createElementNS('http://www.topografix.com/GPX/1/1', 'gpx'); var gpx = ol.xml.createElementNS('http://www.topografix.com/GPX/1/1', 'gpx');
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */ ol.xml.pushSerializeAndPop(/** @type {ol.xmlNodeStackItem} */
({node: gpx}), ol.format.GPX.GPX_SERIALIZERS_, ({node: gpx}), ol.format.GPX.GPX_SERIALIZERS_,
ol.format.GPX.GPX_NODE_FACTORY_, features, [opt_options]); ol.format.GPX.GPX_NODE_FACTORY_, features, [opt_options]);
return gpx; return gpx;

View File

@@ -514,7 +514,7 @@ ol.format.KML.readURI_ = function(node) {
/** /**
* @param {Node} node Node. * @param {Node} node Node.
* @private * @private
* @return {ol.format.KMLVec2_} Vec2. * @return {ol.KMLVec2_} Vec2.
*/ */
ol.format.KML.readVec2_ = function(node) { ol.format.KML.readVec2_ = function(node) {
var xunits = node.getAttribute('xunits'); var xunits = node.getAttribute('xunits');
@@ -589,7 +589,7 @@ ol.format.KML.IconStyleParser_ = function(node, objectStack) {
src = ol.format.KML.DEFAULT_IMAGE_STYLE_SRC_; src = ol.format.KML.DEFAULT_IMAGE_STYLE_SRC_;
} }
var anchor, anchorXUnits, anchorYUnits; var anchor, anchorXUnits, anchorYUnits;
var hotSpot = /** @type {ol.format.KMLVec2_|undefined} */ var hotSpot = /** @type {ol.KMLVec2_|undefined} */
(object['hotSpot']); (object['hotSpot']);
if (hotSpot) { if (hotSpot) {
anchor = [hotSpot.x, hotSpot.y]; anchor = [hotSpot.x, hotSpot.y];
@@ -783,7 +783,7 @@ ol.format.KML.gxCoordParser_ = function(node, objectStack) {
ol.format.KML.GX_NAMESPACE_URIS_, node.namespaceURI), ol.format.KML.GX_NAMESPACE_URIS_, node.namespaceURI),
'namespaceURI of the node should be known to the KML parser'); 'namespaceURI of the node should be known to the KML parser');
goog.asserts.assert(node.localName == 'coord', 'localName should be coord'); goog.asserts.assert(node.localName == 'coord', 'localName should be coord');
var gxTrackObject = /** @type {ol.format.KMLGxTrackObject_} */ var gxTrackObject = /** @type {ol.KMLGxTrackObject_} */
(objectStack[objectStack.length - 1]); (objectStack[objectStack.length - 1]);
goog.asserts.assert(goog.isObject(gxTrackObject), goog.asserts.assert(goog.isObject(gxTrackObject),
'gxTrackObject should be an Object'); 'gxTrackObject should be an Object');
@@ -842,7 +842,7 @@ ol.format.KML.readGxTrack_ = function(node, objectStack) {
'namespaceURI of the node should be known to the KML parser'); 'namespaceURI of the node should be known to the KML parser');
goog.asserts.assert(node.localName == 'Track', 'localName should be Track'); goog.asserts.assert(node.localName == 'Track', 'localName should be Track');
var gxTrackObject = ol.xml.pushParseAndPop( var gxTrackObject = ol.xml.pushParseAndPop(
/** @type {ol.format.KMLGxTrackObject_} */ ({ /** @type {ol.KMLGxTrackObject_} */ ({
flatCoordinates: [], flatCoordinates: [],
whens: [] whens: []
}), ol.format.KML.GX_TRACK_PARSERS_, node, objectStack); }), ol.format.KML.GX_TRACK_PARSERS_, node, objectStack);
@@ -1368,7 +1368,7 @@ ol.format.KML.whenParser_ = function(node, objectStack) {
goog.asserts.assert(node.nodeType == goog.dom.NodeType.ELEMENT, goog.asserts.assert(node.nodeType == goog.dom.NodeType.ELEMENT,
'node.nodeType should be ELEMENT'); 'node.nodeType should be ELEMENT');
goog.asserts.assert(node.localName == 'when', 'localName should be when'); goog.asserts.assert(node.localName == 'when', 'localName should be when');
var gxTrackObject = /** @type {ol.format.KMLGxTrackObject_} */ var gxTrackObject = /** @type {ol.KMLGxTrackObject_} */
(objectStack[objectStack.length - 1]); (objectStack[objectStack.length - 1]);
goog.asserts.assert(goog.isObject(gxTrackObject), goog.asserts.assert(goog.isObject(gxTrackObject),
'gxTrackObject should be an Object'); 'gxTrackObject should be an Object');
@@ -1401,7 +1401,7 @@ ol.format.KML.whenParser_ = function(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.DATA_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.DATA_PARSERS_ = ol.xml.makeStructureNS(
@@ -1412,7 +1412,7 @@ ol.format.KML.DATA_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeStructureNS(
@@ -1424,7 +1424,7 @@ ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.EXTRUDE_AND_ALTITUDE_MODE_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.EXTRUDE_AND_ALTITUDE_MODE_PARSERS_ = ol.xml.makeStructureNS(
@@ -1436,7 +1436,7 @@ ol.format.KML.EXTRUDE_AND_ALTITUDE_MODE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeStructureNS(
@@ -1447,7 +1447,7 @@ ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeStructureNS(
@@ -1459,7 +1459,7 @@ ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeStructureNS(
@@ -1473,7 +1473,7 @@ ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeStructureNS(
@@ -1484,7 +1484,7 @@ ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.ICON_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.ICON_PARSERS_ = ol.xml.makeStructureNS(
@@ -1501,7 +1501,7 @@ ol.format.KML.ICON_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -1515,7 +1515,7 @@ ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS(
@@ -1526,7 +1526,7 @@ ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.LABEL_STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.LABEL_STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -1538,7 +1538,7 @@ ol.format.KML.LABEL_STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -1550,7 +1550,7 @@ ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS(
@@ -1565,7 +1565,7 @@ ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS(
@@ -1576,7 +1576,7 @@ ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.NETWORK_LINK_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.NETWORK_LINK_PARSERS_ = ol.xml.makeStructureNS(
@@ -1594,7 +1594,7 @@ ol.format.KML.NETWORK_LINK_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.LINK_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.LINK_PARSERS_ = ol.xml.makeStructureNS(
@@ -1605,7 +1605,7 @@ ol.format.KML.LINK_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS(
@@ -1616,7 +1616,7 @@ ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.PAIR_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.PAIR_PARSERS_ = ol.xml.makeStructureNS(
@@ -1629,7 +1629,7 @@ ol.format.KML.PAIR_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeStructureNS(
@@ -1666,7 +1666,7 @@ ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -1679,7 +1679,7 @@ ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeStructureNS(
@@ -1690,7 +1690,7 @@ ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -1704,7 +1704,7 @@ ol.format.KML.STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.KML.STYLE_MAP_PARSERS_ = ol.xml.makeStructureNS( ol.format.KML.STYLE_MAP_PARSERS_ = ol.xml.makeStructureNS(
@@ -2161,7 +2161,7 @@ ol.format.KML.writeCoordinatesTextNode_ = function(node, coordinates, objectStac
* @private * @private
*/ */
ol.format.KML.writeDocument_ = function(node, features, objectStack) { ol.format.KML.writeDocument_ = function(node, features, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
ol.xml.pushSerializeAndPop(context, ol.format.KML.DOCUMENT_SERIALIZERS_, ol.xml.pushSerializeAndPop(context, ol.format.KML.DOCUMENT_SERIALIZERS_,
ol.format.KML.DOCUMENT_NODE_FACTORY_, features, objectStack, undefined, ol.format.KML.DOCUMENT_NODE_FACTORY_, features, objectStack, undefined,
this); this);
@@ -2175,7 +2175,7 @@ ol.format.KML.writeDocument_ = function(node, features, objectStack) {
* @private * @private
*/ */
ol.format.KML.writeIcon_ = function(node, icon, objectStack) { ol.format.KML.writeIcon_ = function(node, icon, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
var parentNode = objectStack[objectStack.length - 1].node; var parentNode = objectStack[objectStack.length - 1].node;
var orderedKeys = ol.format.KML.ICON_SEQUENCE_[parentNode.namespaceURI]; var orderedKeys = ol.format.KML.ICON_SEQUENCE_[parentNode.namespaceURI];
var values = ol.xml.makeSequence(icon, orderedKeys); var values = ol.xml.makeSequence(icon, orderedKeys);
@@ -2197,7 +2197,7 @@ ol.format.KML.writeIcon_ = function(node, icon, objectStack) {
* @private * @private
*/ */
ol.format.KML.writeIconStyle_ = function(node, style, objectStack) { ol.format.KML.writeIconStyle_ = function(node, style, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
var properties = {}; var properties = {};
var src = style.getSrc(); var src = style.getSrc();
var size = style.getSize(); var size = style.getSize();
@@ -2218,7 +2218,7 @@ ol.format.KML.writeIconStyle_ = function(node, style, objectStack) {
} }
if (anchor && anchor[0] !== 0 && anchor[1] !== size[1]) { if (anchor && anchor[0] !== 0 && anchor[1] !== size[1]) {
var /** @type {ol.format.KMLVec2_} */ hotSpot = { var /** @type {ol.KMLVec2_} */ hotSpot = {
x: anchor[0], x: anchor[0],
xunits: ol.style.IconAnchorUnits.PIXELS, xunits: ol.style.IconAnchorUnits.PIXELS,
y: size[1] - anchor[1], y: size[1] - anchor[1],
@@ -2255,7 +2255,7 @@ ol.format.KML.writeIconStyle_ = function(node, style, objectStack) {
* @private * @private
*/ */
ol.format.KML.writeLabelStyle_ = function(node, style, objectStack) { ol.format.KML.writeLabelStyle_ = function(node, style, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
var properties = {}; var properties = {};
var fill = style.getFill(); var fill = style.getFill();
if (fill) { if (fill) {
@@ -2281,7 +2281,7 @@ ol.format.KML.writeLabelStyle_ = function(node, style, objectStack) {
* @private * @private
*/ */
ol.format.KML.writeLineStyle_ = function(node, style, objectStack) { ol.format.KML.writeLineStyle_ = function(node, style, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
var properties = { var properties = {
'color': style.getColor(), 'color': style.getColor(),
'width': style.getWidth() 'width': style.getWidth()
@@ -2308,7 +2308,7 @@ ol.format.KML.writeMultiGeometry_ = function(node, geometry, objectStack) {
(geometry instanceof ol.geom.MultiPolygon), (geometry instanceof ol.geom.MultiPolygon),
'geometry should be one of: ol.geom.GeometryCollection, ' + 'geometry should be one of: ol.geom.GeometryCollection, ' +
'ol.geom.MultiPoint, ol.geom.MultiLineString or ol.geom.MultiPolygon'); 'ol.geom.MultiPoint, ol.geom.MultiLineString or ol.geom.MultiPolygon');
/** @type {ol.xml.NodeStackItem} */ /** @type {ol.xmlNodeStackItem} */
var context = {node: node}; var context = {node: node};
var type = geometry.getType(); var type = geometry.getType();
/** @type {Array.<ol.geom.Geometry>} */ /** @type {Array.<ol.geom.Geometry>} */
@@ -2346,7 +2346,7 @@ ol.format.KML.writeMultiGeometry_ = function(node, geometry, objectStack) {
* @private * @private
*/ */
ol.format.KML.writeBoundaryIs_ = function(node, linearRing, objectStack) { ol.format.KML.writeBoundaryIs_ = function(node, linearRing, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
ol.xml.pushSerializeAndPop(context, ol.xml.pushSerializeAndPop(context,
ol.format.KML.BOUNDARY_IS_SERIALIZERS_, ol.format.KML.BOUNDARY_IS_SERIALIZERS_,
ol.format.KML.LINEAR_RING_NODE_FACTORY_, [linearRing], objectStack); ol.format.KML.LINEAR_RING_NODE_FACTORY_, [linearRing], objectStack);
@@ -2363,7 +2363,7 @@ ol.format.KML.writeBoundaryIs_ = function(node, linearRing, objectStack) {
* @private * @private
*/ */
ol.format.KML.writePlacemark_ = function(node, feature, objectStack) { ol.format.KML.writePlacemark_ = function(node, feature, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
// set id // set id
if (feature.getId()) { if (feature.getId()) {
@@ -2421,7 +2421,7 @@ ol.format.KML.writePrimitiveGeometry_ = function(node, geometry, objectStack) {
'geometry should be one of ol.geom.Point, ol.geom.LineString ' + 'geometry should be one of ol.geom.Point, ol.geom.LineString ' +
'or ol.geom.LinearRing'); 'or ol.geom.LinearRing');
var flatCoordinates = geometry.getFlatCoordinates(); var flatCoordinates = geometry.getFlatCoordinates();
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
context['layout'] = geometry.getLayout(); context['layout'] = geometry.getLayout();
context['stride'] = geometry.getStride(); context['stride'] = geometry.getStride();
ol.xml.pushSerializeAndPop(context, ol.xml.pushSerializeAndPop(context,
@@ -2444,7 +2444,7 @@ ol.format.KML.writePolygon_ = function(node, polygon, objectStack) {
goog.asserts.assert(linearRings.length > 0, goog.asserts.assert(linearRings.length > 0,
'linearRings should not be empty'); 'linearRings should not be empty');
var outerRing = linearRings.shift(); var outerRing = linearRings.shift();
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
// inner rings // inner rings
ol.xml.pushSerializeAndPop(context, ol.xml.pushSerializeAndPop(context,
ol.format.KML.POLYGON_SERIALIZERS_, ol.format.KML.POLYGON_SERIALIZERS_,
@@ -2465,7 +2465,7 @@ ol.format.KML.writePolygon_ = function(node, polygon, objectStack) {
* @private * @private
*/ */
ol.format.KML.writePolyStyle_ = function(node, style, objectStack) { ol.format.KML.writePolyStyle_ = function(node, style, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
ol.xml.pushSerializeAndPop(context, ol.format.KML.POLY_STYLE_SERIALIZERS_, ol.xml.pushSerializeAndPop(context, ol.format.KML.POLY_STYLE_SERIALIZERS_,
ol.format.KML.COLOR_NODE_FACTORY_, [style.getColor()], objectStack); ol.format.KML.COLOR_NODE_FACTORY_, [style.getColor()], objectStack);
}; };
@@ -2490,7 +2490,7 @@ ol.format.KML.writeScaleTextNode_ = function(node, scale) {
* @private * @private
*/ */
ol.format.KML.writeStyle_ = function(node, style, objectStack) { ol.format.KML.writeStyle_ = function(node, style, objectStack) {
var /** @type {ol.xml.NodeStackItem} */ context = {node: node}; var /** @type {ol.xmlNodeStackItem} */ context = {node: node};
var properties = {}; var properties = {};
var fillStyle = style.getFill(); var fillStyle = style.getFill();
var strokeStyle = style.getStroke(); var strokeStyle = style.getStroke();
@@ -2518,7 +2518,7 @@ ol.format.KML.writeStyle_ = function(node, style, objectStack) {
/** /**
* @param {Node} node Node to append a TextNode with the Vec2 to. * @param {Node} node Node to append a TextNode with the Vec2 to.
* @param {ol.format.KMLVec2_} vec2 Vec2. * @param {ol.KMLVec2_} vec2 Vec2.
* @private * @private
*/ */
ol.format.KML.writeVec2_ = function(node, vec2) { ol.format.KML.writeVec2_ = function(node, vec2) {
@@ -2542,7 +2542,7 @@ ol.format.KML.KML_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.KML_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.KML_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2554,7 +2554,7 @@ ol.format.KML.KML_SERIALIZERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.DOCUMENT_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.DOCUMENT_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2596,7 +2596,7 @@ ol.format.KML.ICON_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.ICON_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.ICON_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2624,7 +2624,7 @@ ol.format.KML.ICON_STYLE_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.ICON_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.ICON_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2649,7 +2649,7 @@ ol.format.KML.LABEL_STYLE_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.LABEL_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.LABEL_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2672,7 +2672,7 @@ ol.format.KML.LINE_STYLE_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.LINE_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.LINE_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2684,7 +2684,7 @@ ol.format.KML.LINE_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.BOUNDARY_IS_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.BOUNDARY_IS_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2696,7 +2696,7 @@ ol.format.KML.BOUNDARY_IS_SERIALIZERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.MULTI_GEOMETRY_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.MULTI_GEOMETRY_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2725,7 +2725,7 @@ ol.format.KML.PLACEMARK_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.PLACEMARK_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.PLACEMARK_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2755,7 +2755,7 @@ ol.format.KML.PLACEMARK_SERIALIZERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.PRIMITIVE_GEOMETRY_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.PRIMITIVE_GEOMETRY_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2767,7 +2767,7 @@ ol.format.KML.PRIMITIVE_GEOMETRY_SERIALIZERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.POLYGON_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.POLYGON_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2781,7 +2781,7 @@ ol.format.KML.POLYGON_SERIALIZERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.POLY_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.POLY_STYLE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2803,7 +2803,7 @@ ol.format.KML.STYLE_SEQUENCE_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.KML.STYLE_SERIALIZERS_ = ol.xml.makeStructureNS( ol.format.KML.STYLE_SERIALIZERS_ = ol.xml.makeStructureNS(
@@ -2982,7 +2982,7 @@ ol.format.KML.prototype.writeFeaturesNode = function(features, opt_options) {
ol.xml.setAttributeNS(kml, xmlSchemaInstanceUri, 'xsi:schemaLocation', ol.xml.setAttributeNS(kml, xmlSchemaInstanceUri, 'xsi:schemaLocation',
ol.format.KML.SCHEMA_LOCATION_); ol.format.KML.SCHEMA_LOCATION_);
var /** @type {ol.xml.NodeStackItem} */ context = {node: kml}; var /** @type {ol.xmlNodeStackItem} */ context = {node: kml};
var properties = {}; var properties = {};
if (features.length > 1) { if (features.length > 1) {
properties['Document'] = features; properties['Document'] = features;

View File

@@ -165,7 +165,7 @@ ol.format.OSMXML.NAMESPACE_URIS_ = [
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OSMXML.WAY_PARSERS_ = ol.xml.makeStructureNS( ol.format.OSMXML.WAY_PARSERS_ = ol.xml.makeStructureNS(
@@ -177,7 +177,7 @@ ol.format.OSMXML.WAY_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OSMXML.PARSERS_ = ol.xml.makeStructureNS( ol.format.OSMXML.PARSERS_ = ol.xml.makeStructureNS(
@@ -189,7 +189,7 @@ ol.format.OSMXML.PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeStructureNS( ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeStructureNS(

View File

@@ -302,7 +302,7 @@ ol.format.OWS.NAMESPACE_URIS_ = [
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.PARSERS_ = ol.xml.makeStructureNS(
@@ -318,7 +318,7 @@ ol.format.OWS.PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.ADDRESS_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.ADDRESS_PARSERS_ = ol.xml.makeStructureNS(
@@ -337,7 +337,7 @@ ol.format.OWS.ADDRESS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.ALLOWED_VALUES_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.ALLOWED_VALUES_PARSERS_ = ol.xml.makeStructureNS(
@@ -348,7 +348,7 @@ ol.format.OWS.ALLOWED_VALUES_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.CONSTRAINT_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.CONSTRAINT_PARSERS_ = ol.xml.makeStructureNS(
@@ -360,7 +360,7 @@ ol.format.OWS.CONSTRAINT_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.CONTACT_INFO_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.CONTACT_INFO_PARSERS_ = ol.xml.makeStructureNS(
@@ -372,7 +372,7 @@ ol.format.OWS.CONTACT_INFO_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.DCP_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.DCP_PARSERS_ = ol.xml.makeStructureNS(
@@ -383,7 +383,7 @@ ol.format.OWS.DCP_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.HTTP_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.HTTP_PARSERS_ = ol.xml.makeStructureNS(
@@ -395,7 +395,7 @@ ol.format.OWS.HTTP_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.OPERATION_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.OPERATION_PARSERS_ = ol.xml.makeStructureNS(
@@ -406,7 +406,7 @@ ol.format.OWS.OPERATION_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.OPERATIONS_METADATA_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.OPERATIONS_METADATA_PARSERS_ = ol.xml.makeStructureNS(
@@ -417,7 +417,7 @@ ol.format.OWS.OPERATIONS_METADATA_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.PHONE_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.PHONE_PARSERS_ = ol.xml.makeStructureNS(
@@ -429,7 +429,7 @@ ol.format.OWS.PHONE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.REQUEST_METHOD_PARSERS_ = ol.xml.makeStructureNS( ol.format.OWS.REQUEST_METHOD_PARSERS_ = ol.xml.makeStructureNS(
@@ -441,7 +441,7 @@ ol.format.OWS.REQUEST_METHOD_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.SERVICE_CONTACT_PARSERS_ = ol.format.OWS.SERVICE_CONTACT_PARSERS_ =
@@ -457,7 +457,7 @@ ol.format.OWS.SERVICE_CONTACT_PARSERS_ =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ = ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
@@ -472,7 +472,7 @@ ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.OWS.SERVICE_PROVIDER_PARSERS_ = ol.format.OWS.SERVICE_PROVIDER_PARSERS_ =

View File

@@ -193,7 +193,7 @@ ol.format.WFS.prototype.readFeatureCollectionMetadataFromDocument = function(doc
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WFS.FEATURE_COLLECTION_PARSERS_ = { ol.format.WFS.FEATURE_COLLECTION_PARSERS_ = {
@@ -226,7 +226,7 @@ ol.format.WFS.prototype.readFeatureCollectionMetadataFromNode = function(node) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WFS.TRANSACTION_SUMMARY_PARSERS_ = { ol.format.WFS.TRANSACTION_SUMMARY_PARSERS_ = {
@@ -255,7 +255,7 @@ ol.format.WFS.readTransactionSummary_ = function(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WFS.OGC_FID_PARSERS_ = { ol.format.WFS.OGC_FID_PARSERS_ = {
@@ -279,7 +279,7 @@ ol.format.WFS.fidParser_ = function(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WFS.INSERT_RESULTS_PARSERS_ = { ol.format.WFS.INSERT_RESULTS_PARSERS_ = {
@@ -303,7 +303,7 @@ ol.format.WFS.readInsertResults_ = function(node, objectStack) {
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WFS.TRANSACTION_RESPONSE_PARSERS_ = { ol.format.WFS.TRANSACTION_RESPONSE_PARSERS_ = {
@@ -348,7 +348,7 @@ ol.format.WFS.prototype.readTransactionResponseFromNode = function(node) {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.WFS.QUERY_SERIALIZERS_ = { ol.format.WFS.QUERY_SERIALIZERS_ = {
@@ -497,7 +497,7 @@ ol.format.WFS.writeNative_ = function(node, nativeElement, objectStack) {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.WFS.TRANSACTION_SERIALIZERS_ = { ol.format.WFS.TRANSACTION_SERIALIZERS_ = {
@@ -722,7 +722,7 @@ ol.format.WFS.writeOgcLiteral_ = function(node, value) {
/** /**
* @type {Object.<string, Object.<string, ol.xml.Serializer>>} * @type {Object.<string, Object.<string, ol.xmlSerializer>>}
* @private * @private
*/ */
ol.format.WFS.GETFEATURE_SERIALIZERS_ = { ol.format.WFS.GETFEATURE_SERIALIZERS_ = {

View File

@@ -445,7 +445,7 @@ ol.format.WKT.Lexer.prototype.nextChar_ = function() {
/** /**
* Fetch and return the next token. * Fetch and return the next token.
* @return {!ol.format.WKTToken} Next string token. * @return {!ol.WKTToken} Next string token.
*/ */
ol.format.WKT.Lexer.prototype.nextToken = function() { ol.format.WKT.Lexer.prototype.nextToken = function() {
var c = this.nextChar_(); var c = this.nextChar_();
@@ -531,7 +531,7 @@ ol.format.WKT.Parser = function(lexer) {
this.lexer_ = lexer; this.lexer_ = lexer;
/** /**
* @type {ol.format.WKTToken} * @type {ol.WKTToken}
* @private * @private
*/ */
this.token_; this.token_;

View File

@@ -568,7 +568,7 @@ ol.format.WMSCapabilities.NAMESPACE_URIS_ = [
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.PARSERS_ = ol.xml.makeStructureNS(
@@ -582,7 +582,7 @@ ol.format.WMSCapabilities.PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.CAPABILITY_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.CAPABILITY_PARSERS_ = ol.xml.makeStructureNS(
@@ -598,7 +598,7 @@ ol.format.WMSCapabilities.CAPABILITY_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.SERVICE_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.SERVICE_PARSERS_ = ol.xml.makeStructureNS(
@@ -626,7 +626,7 @@ ol.format.WMSCapabilities.SERVICE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.CONTACT_INFORMATION_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.CONTACT_INFORMATION_PARSERS_ = ol.xml.makeStructureNS(
@@ -648,7 +648,7 @@ ol.format.WMSCapabilities.CONTACT_INFORMATION_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.CONTACT_PERSON_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.CONTACT_PERSON_PARSERS_ = ol.xml.makeStructureNS(
@@ -662,7 +662,7 @@ ol.format.WMSCapabilities.CONTACT_PERSON_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.CONTACT_ADDRESS_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.CONTACT_ADDRESS_PARSERS_ = ol.xml.makeStructureNS(
@@ -679,7 +679,7 @@ ol.format.WMSCapabilities.CONTACT_ADDRESS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.EXCEPTION_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.EXCEPTION_PARSERS_ = ol.xml.makeStructureNS(
@@ -690,7 +690,7 @@ ol.format.WMSCapabilities.EXCEPTION_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS(
@@ -731,7 +731,7 @@ ol.format.WMSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.ATTRIBUTION_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.ATTRIBUTION_PARSERS_ = ol.xml.makeStructureNS(
@@ -746,7 +746,7 @@ ol.format.WMSCapabilities.ATTRIBUTION_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_ = ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_ =
@@ -764,7 +764,7 @@ ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_ =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.REQUEST_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.REQUEST_PARSERS_ = ol.xml.makeStructureNS(
@@ -780,7 +780,7 @@ ol.format.WMSCapabilities.REQUEST_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.OPERATIONTYPE_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.OPERATIONTYPE_PARSERS_ = ol.xml.makeStructureNS(
@@ -793,7 +793,7 @@ ol.format.WMSCapabilities.OPERATIONTYPE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.DCPTYPE_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.DCPTYPE_PARSERS_ = ol.xml.makeStructureNS(
@@ -805,7 +805,7 @@ ol.format.WMSCapabilities.DCPTYPE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.HTTP_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.HTTP_PARSERS_ = ol.xml.makeStructureNS(
@@ -819,7 +819,7 @@ ol.format.WMSCapabilities.HTTP_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -838,7 +838,7 @@ ol.format.WMSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.FORMAT_ONLINERESOURCE_PARSERS_ = ol.format.WMSCapabilities.FORMAT_ONLINERESOURCE_PARSERS_ =
@@ -851,7 +851,7 @@ ol.format.WMSCapabilities.FORMAT_ONLINERESOURCE_PARSERS_ =
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMSCapabilities.KEYWORDLIST_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMSCapabilities.KEYWORDLIST_PARSERS_ = ol.xml.makeStructureNS(

View File

@@ -277,7 +277,7 @@ ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_ = [
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.PARSERS_ = ol.xml.makeStructureNS(
@@ -289,7 +289,7 @@ ol.format.WMTSCapabilities.PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.CONTENTS_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.CONTENTS_PARSERS_ = ol.xml.makeStructureNS(
@@ -303,7 +303,7 @@ ol.format.WMTSCapabilities.CONTENTS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS(
@@ -332,7 +332,7 @@ ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS(
@@ -349,7 +349,7 @@ ol.format.WMTSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.TMS_LINKS_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.TMS_LINKS_PARSERS_ = ol.xml.makeStructureNS(
@@ -361,7 +361,7 @@ ol.format.WMTSCapabilities.TMS_LINKS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.DIMENSION_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.DIMENSION_PARSERS_ = ol.xml.makeStructureNS(
@@ -378,7 +378,7 @@ ol.format.WMTSCapabilities.DIMENSION_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.WGS84_BBOX_READERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.WGS84_BBOX_READERS_ = ol.xml.makeStructureNS(
@@ -392,7 +392,7 @@ ol.format.WMTSCapabilities.WGS84_BBOX_READERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.TMS_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.TMS_PARSERS_ = ol.xml.makeStructureNS(
@@ -411,7 +411,7 @@ ol.format.WMTSCapabilities.TMS_PARSERS_ = ol.xml.makeStructureNS(
/** /**
* @const * @const
* @type {Object.<string, Object.<string, ol.xml.Parser>>} * @type {Object.<string, Object.<string, ol.xmlParser>>}
* @private * @private
*/ */
ol.format.WMTSCapabilities.TM_PARSERS_ = ol.xml.makeStructureNS( ol.format.WMTSCapabilities.TM_PARSERS_ = ol.xml.makeStructureNS(

View File

@@ -75,7 +75,7 @@ goog.inherits(ol.layer.Layer, ol.layer.Base);
* Return `true` if the layer is visible, and if the passed resolution is * Return `true` if the layer is visible, and if the passed resolution is
* between the layer's minResolution and maxResolution. The comparison is * between the layer's minResolution and maxResolution. The comparison is
* inclusive for `minResolution` and exclusive for `maxResolution`. * inclusive for `minResolution` and exclusive for `maxResolution`.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @param {number} resolution Resolution. * @param {number} resolution Resolution.
* @return {boolean} The layer is visible at the given resolution. * @return {boolean} The layer is visible at the given resolution.
*/ */

View File

@@ -60,7 +60,7 @@ goog.inherits(ol.layer.Base, ol.Object);
/** /**
* @return {ol.layer.LayerState} Layer state. * @return {ol.LayerState} Layer state.
*/ */
ol.layer.Base.prototype.getLayerState = function() { ol.layer.Base.prototype.getLayerState = function() {
var opacity = this.getOpacity(); var opacity = this.getOpacity();
@@ -93,9 +93,9 @@ ol.layer.Base.prototype.getLayersArray = goog.abstractMethod;
/** /**
* @param {Array.<ol.layer.LayerState>=} opt_states Optional list of layer * @param {Array.<ol.LayerState>=} opt_states Optional list of layer
* states (to be modified in place). * states (to be modified in place).
* @return {Array.<ol.layer.LayerState>} List of layer states. * @return {Array.<ol.LayerState>} List of layer states.
*/ */
ol.layer.Base.prototype.getLayerStatesArray = goog.abstractMethod; ol.layer.Base.prototype.getLayerStatesArray = goog.abstractMethod;

View File

@@ -71,31 +71,31 @@ ol.render.canvas.Immediate = function(context, pixelRatio, extent, transform, vi
/** /**
* @private * @private
* @type {?ol.render.canvasFillState} * @type {?ol.canvasFillState}
*/ */
this.contextFillState_ = null; this.contextFillState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasStrokeState} * @type {?ol.canvasStrokeState}
*/ */
this.contextStrokeState_ = null; this.contextStrokeState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasTextState} * @type {?ol.canvasTextState}
*/ */
this.contextTextState_ = null; this.contextTextState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasFillState} * @type {?ol.canvasFillState}
*/ */
this.fillState_ = null; this.fillState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasStrokeState} * @type {?ol.canvasStrokeState}
*/ */
this.strokeState_ = null; this.strokeState_ = null;
@@ -203,19 +203,19 @@ ol.render.canvas.Immediate = function(context, pixelRatio, extent, transform, vi
/** /**
* @private * @private
* @type {?ol.render.canvasFillState} * @type {?ol.canvasFillState}
*/ */
this.textFillState_ = null; this.textFillState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasStrokeState} * @type {?ol.canvasStrokeState}
*/ */
this.textStrokeState_ = null; this.textStrokeState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasTextState} * @type {?ol.canvasTextState}
*/ */
this.textState_ = null; this.textState_ = null;
@@ -700,7 +700,7 @@ ol.render.canvas.Immediate.prototype.drawMultiPolygon = function(geometry) {
/** /**
* @param {ol.render.canvasFillState} fillState Fill state. * @param {ol.canvasFillState} fillState Fill state.
* @private * @private
*/ */
ol.render.canvas.Immediate.prototype.setContextFillState_ = function(fillState) { ol.render.canvas.Immediate.prototype.setContextFillState_ = function(fillState) {
@@ -720,7 +720,7 @@ ol.render.canvas.Immediate.prototype.setContextFillState_ = function(fillState)
/** /**
* @param {ol.render.canvasStrokeState} strokeState Stroke state. * @param {ol.canvasStrokeState} strokeState Stroke state.
* @private * @private
*/ */
ol.render.canvas.Immediate.prototype.setContextStrokeState_ = function(strokeState) { ol.render.canvas.Immediate.prototype.setContextStrokeState_ = function(strokeState) {
@@ -772,7 +772,7 @@ ol.render.canvas.Immediate.prototype.setContextStrokeState_ = function(strokeSta
/** /**
* @param {ol.render.canvasTextState} textState Text state. * @param {ol.canvasTextState} textState Text state.
* @private * @private
*/ */
ol.render.canvas.Immediate.prototype.setContextTextState_ = function(textState) { ol.render.canvas.Immediate.prototype.setContextTextState_ = function(textState) {

View File

@@ -1538,19 +1538,19 @@ ol.render.canvas.TextReplay = function(tolerance, maxExtent, resolution) {
/** /**
* @private * @private
* @type {?ol.render.canvasFillState} * @type {?ol.canvasFillState}
*/ */
this.replayFillState_ = null; this.replayFillState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasStrokeState} * @type {?ol.canvasStrokeState}
*/ */
this.replayStrokeState_ = null; this.replayStrokeState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasTextState} * @type {?ol.canvasTextState}
*/ */
this.replayTextState_ = null; this.replayTextState_ = null;
@@ -1586,19 +1586,19 @@ ol.render.canvas.TextReplay = function(tolerance, maxExtent, resolution) {
/** /**
* @private * @private
* @type {?ol.render.canvasFillState} * @type {?ol.canvasFillState}
*/ */
this.textFillState_ = null; this.textFillState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasStrokeState} * @type {?ol.canvasStrokeState}
*/ */
this.textStrokeState_ = null; this.textStrokeState_ = null;
/** /**
* @private * @private
* @type {?ol.render.canvasTextState} * @type {?ol.canvasTextState}
*/ */
this.textState_ = null; this.textState_ = null;
@@ -1638,7 +1638,7 @@ ol.render.canvas.TextReplay.prototype.drawText = function(flatCoordinates, offse
/** /**
* @param {ol.render.canvasFillState} fillState Fill state. * @param {ol.canvasFillState} fillState Fill state.
* @private * @private
*/ */
ol.render.canvas.TextReplay.prototype.setReplayFillState_ = function(fillState) { ol.render.canvas.TextReplay.prototype.setReplayFillState_ = function(fillState) {
@@ -1662,7 +1662,7 @@ ol.render.canvas.TextReplay.prototype.setReplayFillState_ = function(fillState)
/** /**
* @param {ol.render.canvasStrokeState} strokeState Stroke state. * @param {ol.canvasStrokeState} strokeState Stroke state.
* @private * @private
*/ */
ol.render.canvas.TextReplay.prototype.setReplayStrokeState_ = function(strokeState) { ol.render.canvas.TextReplay.prototype.setReplayStrokeState_ = function(strokeState) {
@@ -1704,7 +1704,7 @@ ol.render.canvas.TextReplay.prototype.setReplayStrokeState_ = function(strokeSta
/** /**
* @param {ol.render.canvasTextState} textState Text state. * @param {ol.canvasTextState} textState Text state.
* @private * @private
*/ */
ol.render.canvas.TextReplay.prototype.setReplayTextState_ = function(textState) { ol.render.canvas.TextReplay.prototype.setReplayTextState_ = function(textState) {

View File

@@ -33,7 +33,7 @@ goog.inherits(ol.renderer.canvas.Layer, ol.renderer.Layer);
/** /**
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
*/ */
ol.renderer.canvas.Layer.prototype.composeFrame = function(frameState, layerState, context) { ol.renderer.canvas.Layer.prototype.composeFrame = function(frameState, layerState, context) {
@@ -202,7 +202,7 @@ ol.renderer.canvas.Layer.prototype.getTransform = function(frameState, offsetX)
/** /**
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @return {boolean} whether composeFrame should be called. * @return {boolean} whether composeFrame should be called.
*/ */
ol.renderer.canvas.Layer.prototype.prepareFrame = goog.abstractMethod; ol.renderer.canvas.Layer.prototype.prepareFrame = goog.abstractMethod;

View File

@@ -216,7 +216,7 @@ ol.renderer.canvas.TileLayer.prototype.forEachLayerAtPixel = function(
/** /**
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @protected * @protected
*/ */
ol.renderer.canvas.TileLayer.prototype.renderTileImages = function(context, frameState, layerState) { ol.renderer.canvas.TileLayer.prototype.renderTileImages = function(context, frameState, layerState) {

View File

@@ -90,7 +90,7 @@ ol.renderer.canvas.VectorTileLayer.prototype.composeFrame = function(
/** /**
* @param {CanvasRenderingContext2D} context Context. * @param {CanvasRenderingContext2D} context Context.
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @private * @private
*/ */
ol.renderer.canvas.VectorTileLayer.prototype.renderTileReplays_ = function( ol.renderer.canvas.VectorTileLayer.prototype.renderTileReplays_ = function(
@@ -387,7 +387,7 @@ ol.renderer.canvas.VectorTileLayer.prototype.renderFeature = function(feature, s
/** /**
* @param {ol.VectorTile} tile Tile. * @param {ol.VectorTile} tile Tile.
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @param {Array.<string>} skippedFeatures Skipped features. * @param {Array.<string>} skippedFeatures Skipped features.
* @private * @private
*/ */

View File

@@ -33,7 +33,7 @@ ol.renderer.dom.Layer.prototype.clearFrame = ol.nullFunction;
/** /**
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
*/ */
ol.renderer.dom.Layer.prototype.composeFrame = ol.nullFunction; ol.renderer.dom.Layer.prototype.composeFrame = ol.nullFunction;
@@ -48,7 +48,7 @@ ol.renderer.dom.Layer.prototype.getTarget = function() {
/** /**
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @return {boolean} whether composeFrame should be called. * @return {boolean} whether composeFrame should be called.
*/ */
ol.renderer.dom.Layer.prototype.prepareFrame = goog.abstractMethod; ol.renderer.dom.Layer.prototype.prepareFrame = goog.abstractMethod;

View File

@@ -373,8 +373,8 @@ ol.renderer.Map.prototype.scheduleRemoveUnusedLayerRenderers = function(frameSta
/** /**
* @param {ol.layer.LayerState} state1 First layer state. * @param {ol.LayerState} state1 First layer state.
* @param {ol.layer.LayerState} state2 Second layer state. * @param {ol.LayerState} state2 Second layer state.
* @return {number} The zIndex difference. * @return {number} The zIndex difference.
*/ */
ol.renderer.Map.sortByZIndex = function(state1, state2) { ol.renderer.Map.sortByZIndex = function(state1, state2) {

View File

@@ -130,7 +130,7 @@ ol.renderer.webgl.Layer.prototype.bindFramebuffer = function(frameState, framebu
/** /**
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @param {ol.webgl.Context} context Context. * @param {ol.webgl.Context} context Context.
*/ */
ol.renderer.webgl.Layer.prototype.composeFrame = function(frameState, layerState, context) { ol.renderer.webgl.Layer.prototype.composeFrame = function(frameState, layerState, context) {
@@ -243,7 +243,7 @@ ol.renderer.webgl.Layer.prototype.handleWebGLContextLost = function() {
/** /**
* @param {olx.FrameState} frameState Frame state. * @param {olx.FrameState} frameState Frame state.
* @param {ol.layer.LayerState} layerState Layer state. * @param {ol.LayerState} layerState Layer state.
* @param {ol.webgl.Context} context Context. * @param {ol.webgl.Context} context Context.
* @return {boolean} whether composeFrame should be called. * @return {boolean} whether composeFrame should be called.
*/ */

View File

@@ -104,7 +104,7 @@ ol.renderer.webgl.Map = function(container, map) {
/** /**
* @private * @private
* @type {ol.structs.LRUCache.<ol.renderer.webglTextureCacheEntry|null>} * @type {ol.structs.LRUCache.<ol.webglTextureCacheEntry|null>}
*/ */
this.textureCache_ = new ol.structs.LRUCache(); this.textureCache_ = new ol.structs.LRUCache();
@@ -294,7 +294,7 @@ ol.renderer.webgl.Map.prototype.disposeInternal = function() {
if (!gl.isContextLost()) { if (!gl.isContextLost()) {
this.textureCache_.forEach( this.textureCache_.forEach(
/** /**
* @param {?ol.renderer.webglTextureCacheEntry} textureCacheEntry * @param {?ol.webglTextureCacheEntry} textureCacheEntry
* Texture cache entry. * Texture cache entry.
*/ */
function(textureCacheEntry) { function(textureCacheEntry) {
@@ -443,7 +443,7 @@ ol.renderer.webgl.Map.prototype.renderFrame = function(frameState) {
this.dispatchComposeEvent_(ol.render.EventType.PRECOMPOSE, frameState); this.dispatchComposeEvent_(ol.render.EventType.PRECOMPOSE, frameState);
/** @type {Array.<ol.layer.LayerState>} */ /** @type {Array.<ol.LayerState>} */
var layerStatesToDraw = []; var layerStatesToDraw = [];
var layerStatesArray = frameState.layerStatesArray; var layerStatesArray = frameState.layerStatesArray;
ol.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex); ol.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex);

View File

@@ -60,7 +60,7 @@ ol.renderer.webgl.VectorLayer = function(mapRenderer, vectorLayer) {
/** /**
* The last layer state. * The last layer state.
* @private * @private
* @type {?ol.layer.LayerState} * @type {?ol.LayerState}
*/ */
this.layerState_ = null; this.layerState_ = null;

View File

@@ -23,7 +23,7 @@ goog.require('ol.reproj.Triangulation');
* @param {ol.Extent} targetExtent Target extent. * @param {ol.Extent} targetExtent Target extent.
* @param {number} targetResolution Target resolution. * @param {number} targetResolution Target resolution.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {ol.reproj.ImageFunctionType} getImageFunction * @param {ol.reprojImageFunctionType} getImageFunction
* Function returning source images (extent, resolution, pixelRatio). * Function returning source images (extent, resolution, pixelRatio).
*/ */
ol.reproj.Image = function(sourceProj, targetProj, ol.reproj.Image = function(sourceProj, targetProj,

View File

@@ -28,7 +28,7 @@ goog.require('ol.reproj.Triangulation');
* @param {ol.TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X. * @param {ol.TileCoord} wrappedTileCoord Coordinate of the tile wrapped in X.
* @param {number} pixelRatio Pixel ratio. * @param {number} pixelRatio Pixel ratio.
* @param {number} gutter Gutter of the source tiles. * @param {number} gutter Gutter of the source tiles.
* @param {ol.reproj.TileFunctionType} getTileFunction * @param {ol.reprojTileFunctionType} getTileFunction
* Function returning source tiles (z, x, y, pixelRatio). * Function returning source tiles (z, x, y, pixelRatio).
* @param {number=} opt_errorThreshold Acceptable reprojection error (in px). * @param {number=} opt_errorThreshold Acceptable reprojection error (in px).
* @param {boolean=} opt_renderEdges Render reprojection edges. * @param {boolean=} opt_renderEdges Render reprojection edges.

View File

@@ -63,7 +63,7 @@ ol.reproj.Triangulation = function(sourceProj, targetProj, targetExtent,
this.errorThresholdSquared_ = errorThreshold * errorThreshold; this.errorThresholdSquared_ = errorThreshold * errorThreshold;
/** /**
* @type {Array.<ol.reproj.Triangle>} * @type {Array.<ol.reprojTriangle>}
* @private * @private
*/ */
this.triangles_ = []; this.triangles_ = [];
@@ -324,7 +324,7 @@ ol.reproj.Triangulation.prototype.calculateSourceExtent = function() {
/** /**
* @return {Array.<ol.reproj.Triangle>} Array of the calculated triangles. * @return {Array.<ol.reprojTriangle>} Array of the calculated triangles.
*/ */
ol.reproj.Triangulation.prototype.getTriangles = function() { ol.reproj.Triangulation.prototype.getTriangles = function() {
return this.triangles_; return this.triangles_;

View File

@@ -19,7 +19,7 @@ goog.require('ol.source.Source');
* *
* @constructor * @constructor
* @extends {ol.source.Source} * @extends {ol.source.Source}
* @param {ol.source.ImageOptions} options Single image source options. * @param {ol.sourceImageOptions} options Single image source options.
* @api * @api
*/ */
ol.source.Image = function(options) { ol.source.Image = function(options) {

View File

@@ -91,7 +91,7 @@ ol.source.Raster = function(options) {
/** /**
* The most recently rendered state. * The most recently rendered state.
* @type {?ol.source.RasterRenderedState} * @type {?ol.sourceRasterRenderedState}
* @private * @private
*/ */
this.renderedState_ = null; this.renderedState_ = null;
@@ -340,7 +340,7 @@ ol.source.Raster.prototype.onWorkerComplete_ = function(frameState, callback, er
* Get image data from a renderer. * Get image data from a renderer.
* @param {ol.renderer.canvas.Layer} renderer Layer renderer. * @param {ol.renderer.canvas.Layer} renderer Layer renderer.
* @param {olx.FrameState} frameState The frame state. * @param {olx.FrameState} frameState The frame state.
* @param {ol.layer.LayerState} layerState The layer state. * @param {ol.LayerState} layerState The layer state.
* @return {ImageData} The image data. * @return {ImageData} The image data.
* @private * @private
*/ */
@@ -376,7 +376,7 @@ ol.source.Raster.context_ = null;
/** /**
* Get a list of layer states from a list of renderers. * Get a list of layer states from a list of renderers.
* @param {Array.<ol.renderer.canvas.Layer>} renderers Layer renderers. * @param {Array.<ol.renderer.canvas.Layer>} renderers Layer renderers.
* @return {Array.<ol.layer.LayerState>} The layer states. * @return {Array.<ol.LayerState>} The layer states.
* @private * @private
*/ */
ol.source.Raster.getLayerStatesArray_ = function(renderers) { ol.source.Raster.getLayerStatesArray_ = function(renderers) {

View File

@@ -30,7 +30,7 @@ ol.source.State = {
* *
* @constructor * @constructor
* @extends {ol.Object} * @extends {ol.Object}
* @param {ol.source.SourceOptions} options Source options. * @param {ol.sourceSourceOptions} options Source options.
* @api stable * @api stable
*/ */
ol.source.Source = function(options) { ol.source.Source = function(options) {

View File

@@ -22,7 +22,7 @@ goog.require('ol.tilegrid.TileGrid');
* *
* @constructor * @constructor
* @extends {ol.source.Source} * @extends {ol.source.Source}
* @param {ol.source.TileOptions} options Tile source options. * @param {ol.sourceTileOptions} options Tile source options.
* @api * @api
*/ */
ol.source.Tile = function(options) { ol.source.Tile = function(options) {

View File

@@ -14,7 +14,7 @@ goog.require('ol.source.TileEvent');
* @constructor * @constructor
* @fires ol.source.TileEvent * @fires ol.source.TileEvent
* @extends {ol.source.Tile} * @extends {ol.source.Tile}
* @param {ol.source.UrlTileOptions} options Image tile options. * @param {ol.sourceUrlTileOptions} options Image tile options.
*/ */
ol.source.UrlTile = function(options) { ol.source.UrlTile = function(options) {

View File

@@ -22,19 +22,19 @@ ol.structs.LRUCache = function() {
/** /**
* @private * @private
* @type {!Object.<string, ol.structs.LRUCacheEntry>} * @type {!Object.<string, ol.LRUCacheEntry>}
*/ */
this.entries_ = {}; this.entries_ = {};
/** /**
* @private * @private
* @type {?ol.structs.LRUCacheEntry} * @type {?ol.LRUCacheEntry}
*/ */
this.oldest_ = null; this.oldest_ = null;
/** /**
* @private * @private
* @type {?ol.structs.LRUCacheEntry} * @type {?ol.LRUCacheEntry}
*/ */
this.newest_ = null; this.newest_ = null;

View File

@@ -27,19 +27,10 @@
goog.provide('ol.Extent'); goog.provide('ol.Extent');
goog.provide('ol.events.EventTargetLike'); goog.provide('ol.events.EventTargetLike');
goog.provide('ol.format.KMLVec2_');
goog.provide('ol.interaction.DragBoxEndConditionType'); goog.provide('ol.interaction.DragBoxEndConditionType');
goog.provide('ol.layer.LayerState');
goog.provide('ol.proj.ProjectionLike'); goog.provide('ol.proj.ProjectionLike');
goog.provide('ol.raster.Operation'); goog.provide('ol.raster.Operation');
goog.provide('ol.render.canvas.FillState');
goog.provide('ol.renderer.webgl.TextureCacheEntry');
goog.provide('ol.reproj.ImageFunctionType');
goog.provide('ol.source.ImageOptions');
goog.provide('ol.structs.LRUCacheEntry');
goog.provide('ol.style.AtlasBlock'); goog.provide('ol.style.AtlasBlock');
goog.provide('ol.webgl.BufferCacheEntry');
goog.provide('ol.xml.NodeStackItem');
/** /**
@@ -193,6 +184,34 @@ ol.ImageCanvasLoader;
ol.ImageLoadFunctionType; ol.ImageLoadFunctionType;
/**
* @typedef {{x: number, xunits: (ol.style.IconAnchorUnits|undefined),
* y: number, yunits: (ol.style.IconAnchorUnits|undefined)}}
*/
ol.KMLVec2_;
/**
* @typedef {{flatCoordinates: Array.<number>,
* whens: Array.<number>}}
*/
ol.KMLGxTrackObject_;
/**
* @typedef {{layer: ol.layer.Layer,
* opacity: number,
* sourceState: ol.source.State,
* visible: boolean,
* managed: boolean,
* extent: (ol.Extent|undefined),
* zIndex: number,
* maxResolution: number,
* minResolution: number}}
*/
ol.LayerState;
/** /**
* One of `all`, `bbox`, `tile`. * One of `all`, `bbox`, `tile`.
* *
@@ -202,6 +221,15 @@ ol.ImageLoadFunctionType;
ol.LoadingStrategy; ol.LoadingStrategy;
/**
* @typedef {{key_: string,
* newer: ol.LRUCacheEntry,
* older: ol.LRUCacheEntry,
* value_: *}}
*/
ol.LRUCacheEntry;
/** /**
* @typedef {{controls: ol.Collection.<ol.control.Control>, * @typedef {{controls: ol.Collection.<ol.control.Control>,
* interactions: ol.Collection.<ol.interaction.Interaction>, * interactions: ol.Collection.<ol.interaction.Interaction>,
@@ -327,6 +355,37 @@ ol.TileUrlFunctionType;
ol.TransformFunction; ol.TransformFunction;
/**
* @typedef {{type: number, value: (number|string|undefined), position: number}}
*/
ol.WKTToken;
/**
* @typedef {{fillStyle: ol.ColorLike}}
*/
ol.canvasFillState;
/**
* @typedef {{lineCap: string,
* lineDash: Array.<number>,
* lineJoin: string,
* lineWidth: number,
* miterLimit: number,
* strokeStyle: string}}
*/
ol.canvasStrokeState;
/**
* @typedef {{font: string,
* textAlign: string,
* textBaseline: string}}
*/
ol.canvasTextState;
/** /**
* A function that takes an {@link ol.MapBrowserEvent} and returns a * A function that takes an {@link ol.MapBrowserEvent} and returns a
* `{boolean}`. If the condition is met, true should be returned. * `{boolean}`. If the condition is met, true should be returned.
@@ -371,26 +430,6 @@ ol.events.Key;
ol.events.ListenerFunctionType; ol.events.ListenerFunctionType;
/**
* @typedef {{x: number, xunits: (ol.style.IconAnchorUnits|undefined),
* y: number, yunits: (ol.style.IconAnchorUnits|undefined)}}
*/
ol.format.KMLVec2_;
/**
* @typedef {{flatCoordinates: Array.<number>,
* whens: Array.<number>}}
*/
ol.format.KMLGxTrackObject_;
/**
* @typedef {{type: number, value: (number|string|undefined), position: number}}
*/
ol.format.WKTToken;
/** /**
* A function that takes a {@link ol.MapBrowserEvent} and two * A function that takes a {@link ol.MapBrowserEvent} and two
* {@link ol.Pixel}s and returns a `{boolean}`. If the condition is met, * {@link ol.Pixel}s and returns a `{boolean}`. If the condition is met,
@@ -454,20 +493,6 @@ ol.interaction.SnapResultType;
ol.interaction.SnapSegmentDataType; ol.interaction.SnapSegmentDataType;
/**
* @typedef {{layer: ol.layer.Layer,
* opacity: number,
* sourceState: ol.source.State,
* visible: boolean,
* managed: boolean,
* extent: (ol.Extent|undefined),
* zIndex: number,
* maxResolution: number,
* minResolution: number}}
*/
ol.layer.LayerState;
/** /**
* A projection as {@link ol.proj.Projection}, SRS identifier string or * A projection as {@link ol.proj.Projection}, SRS identifier string or
* undefined. * undefined.
@@ -504,47 +529,16 @@ ol.raster.Operation;
ol.raster.Pixel; ol.raster.Pixel;
/**
* @typedef {{fillStyle: ol.ColorLike}}
*/
ol.render.canvasFillState;
/**
* @typedef {{lineCap: string,
* lineDash: Array.<number>,
* lineJoin: string,
* lineWidth: number,
* miterLimit: number,
* strokeStyle: string}}
*/
ol.render.canvasStrokeState;
/**
* @typedef {{font: string,
* textAlign: string,
* textBaseline: string}}
*/
ol.render.canvasTextState;
/**
* @typedef {{magFilter: number, minFilter: number, texture: WebGLTexture}}
*/
ol.renderer.webglTextureCacheEntry;
/** /**
* @typedef {function(ol.Extent, number, number) : ol.ImageBase} * @typedef {function(ol.Extent, number, number) : ol.ImageBase}
*/ */
ol.reproj.ImageFunctionType; ol.reprojImageFunctionType;
/** /**
* @typedef {function(number, number, number, number) : ol.Tile} * @typedef {function(number, number, number, number) : ol.Tile}
*/ */
ol.reproj.TileFunctionType; ol.reprojTileFunctionType;
/** /**
@@ -553,7 +547,7 @@ ol.reproj.TileFunctionType;
* @typedef {{source: Array.<ol.Coordinate>, * @typedef {{source: Array.<ol.Coordinate>,
* target: Array.<ol.Coordinate>}} * target: Array.<ol.Coordinate>}}
*/ */
ol.reproj.Triangle; ol.reprojTriangle;
/** /**
@@ -564,7 +558,7 @@ ol.reproj.Triangle;
* resolutions: (Array.<number>|undefined), * resolutions: (Array.<number>|undefined),
* state: (ol.source.State|undefined)}} * state: (ol.source.State|undefined)}}
*/ */
ol.source.ImageOptions; ol.sourceImageOptions;
/** /**
@@ -572,7 +566,7 @@ ol.source.ImageOptions;
* resolution: number, * resolution: number,
* extent: ol.Extent}} * extent: ol.Extent}}
*/ */
ol.source.RasterRenderedState; ol.sourceRasterRenderedState;
/** /**
@@ -582,7 +576,7 @@ ol.source.RasterRenderedState;
* state: (ol.source.State|undefined), * state: (ol.source.State|undefined),
* wrapX: (boolean|undefined)}} * wrapX: (boolean|undefined)}}
*/ */
ol.source.SourceOptions; ol.sourceSourceOptions;
/** /**
@@ -597,7 +591,7 @@ ol.source.SourceOptions;
* tileGrid: (ol.tilegrid.TileGrid|undefined), * tileGrid: (ol.tilegrid.TileGrid|undefined),
* wrapX: (boolean|undefined)}} * wrapX: (boolean|undefined)}}
*/ */
ol.source.TileOptions; ol.sourceTileOptions;
/** /**
@@ -616,16 +610,7 @@ ol.source.TileOptions;
* urls: (Array.<string>|undefined), * urls: (Array.<string>|undefined),
* wrapX: (boolean|undefined)}} * wrapX: (boolean|undefined)}}
*/ */
ol.source.UrlTileOptions; ol.sourceUrlTileOptions;
/**
* @typedef {{key_: string,
* newer: ol.structs.LRUCacheEntry,
* older: ol.structs.LRUCacheEntry,
* value_: *}}
*/
ol.structs.LRUCacheEntry;
/** /**
@@ -712,7 +697,13 @@ ol.style.StyleFunction;
* @typedef {{buf: ol.webgl.Buffer, * @typedef {{buf: ol.webgl.Buffer,
* buffer: WebGLBuffer}} * buffer: WebGLBuffer}}
*/ */
ol.webgl.BufferCacheEntry; ol.webglBufferCacheEntry;
/**
* @typedef {{magFilter: number, minFilter: number, texture: WebGLTexture}}
*/
ol.webglTextureCacheEntry;
/** /**
@@ -721,16 +712,16 @@ ol.webgl.BufferCacheEntry;
* have this structure. * have this structure.
* @typedef {{node:Node}} * @typedef {{node:Node}}
*/ */
ol.xml.NodeStackItem; ol.xmlNodeStackItem;
/** /**
* @typedef {function(Node, Array.<*>)} * @typedef {function(Node, Array.<*>)}
*/ */
ol.xml.Parser; ol.xmlParser;
/** /**
* @typedef {function(Node, *, Array.<*>)} * @typedef {function(Node, *, Array.<*>)}
*/ */
ol.xml.Serializer; ol.xmlSerializer;

View File

@@ -35,7 +35,7 @@ ol.webgl.Context = function(canvas, gl) {
/** /**
* @private * @private
* @type {Object.<string, ol.webgl.BufferCacheEntry>} * @type {Object.<string, ol.webglBufferCacheEntry>}
*/ */
this.bufferCache_ = {}; this.bufferCache_ = {};

View File

@@ -123,7 +123,7 @@ ol.xml.parse = function(xml) {
* @param {function(this: T, Node, Array.<*>): (Array.<*>|undefined)} * @param {function(this: T, Node, Array.<*>): (Array.<*>|undefined)}
* valueReader Value reader. * valueReader Value reader.
* @param {T=} opt_this The object to use as `this` in `valueReader`. * @param {T=} opt_this The object to use as `this` in `valueReader`.
* @return {ol.xml.Parser} Parser. * @return {ol.xmlParser} Parser.
* @template T * @template T
*/ */
ol.xml.makeArrayExtender = function(valueReader, opt_this) { ol.xml.makeArrayExtender = function(valueReader, opt_this) {
@@ -152,7 +152,7 @@ ol.xml.makeArrayExtender = function(valueReader, opt_this) {
* object stack. * object stack.
* @param {function(this: T, Node, Array.<*>): *} valueReader Value reader. * @param {function(this: T, Node, Array.<*>): *} valueReader Value reader.
* @param {T=} opt_this The object to use as `this` in `valueReader`. * @param {T=} opt_this The object to use as `this` in `valueReader`.
* @return {ol.xml.Parser} Parser. * @return {ol.xmlParser} Parser.
* @template T * @template T
*/ */
ol.xml.makeArrayPusher = function(valueReader, opt_this) { ol.xml.makeArrayPusher = function(valueReader, opt_this) {
@@ -179,7 +179,7 @@ ol.xml.makeArrayPusher = function(valueReader, opt_this) {
* top of the stack. * top of the stack.
* @param {function(this: T, Node, Array.<*>): *} valueReader Value reader. * @param {function(this: T, Node, Array.<*>): *} valueReader Value reader.
* @param {T=} opt_this The object to use as `this` in `valueReader`. * @param {T=} opt_this The object to use as `this` in `valueReader`.
* @return {ol.xml.Parser} Parser. * @return {ol.xmlParser} Parser.
* @template T * @template T
*/ */
ol.xml.makeReplacer = function(valueReader, opt_this) { ol.xml.makeReplacer = function(valueReader, opt_this) {
@@ -204,7 +204,7 @@ ol.xml.makeReplacer = function(valueReader, opt_this) {
* @param {function(this: T, Node, Array.<*>): *} valueReader Value reader. * @param {function(this: T, Node, Array.<*>): *} valueReader Value reader.
* @param {string=} opt_property Property. * @param {string=} opt_property Property.
* @param {T=} opt_this The object to use as `this` in `valueReader`. * @param {T=} opt_this The object to use as `this` in `valueReader`.
* @return {ol.xml.Parser} Parser. * @return {ol.xmlParser} Parser.
* @template T * @template T
*/ */
ol.xml.makeObjectPropertyPusher = function(valueReader, opt_property, opt_this) { ol.xml.makeObjectPropertyPusher = function(valueReader, opt_property, opt_this) {
@@ -242,7 +242,7 @@ ol.xml.makeObjectPropertyPusher = function(valueReader, opt_property, opt_this)
* @param {function(this: T, Node, Array.<*>): *} valueReader Value reader. * @param {function(this: T, Node, Array.<*>): *} valueReader Value reader.
* @param {string=} opt_property Property. * @param {string=} opt_property Property.
* @param {T=} opt_this The object to use as `this` in `valueReader`. * @param {T=} opt_this The object to use as `this` in `valueReader`.
* @return {ol.xml.Parser} Parser. * @return {ol.xmlParser} Parser.
* @template T * @template T
*/ */
ol.xml.makeObjectPropertySetter = function(valueReader, opt_property, opt_this) { ol.xml.makeObjectPropertySetter = function(valueReader, opt_property, opt_this) {
@@ -272,11 +272,11 @@ ol.xml.makeObjectPropertySetter = function(valueReader, opt_property, opt_this)
/** /**
* Create a serializer that appends nodes written by its `nodeWriter` to its * Create a serializer that appends nodes written by its `nodeWriter` to its
* designated parent. The parent is the `node` of the * designated parent. The parent is the `node` of the
* {@link ol.xml.NodeStackItem} at the top of the `objectStack`. * {@link ol.xmlNodeStackItem} at the top of the `objectStack`.
* @param {function(this: T, Node, V, Array.<*>)} * @param {function(this: T, Node, V, Array.<*>)}
* nodeWriter Node writer. * nodeWriter Node writer.
* @param {T=} opt_this The object to use as `this` in `nodeWriter`. * @param {T=} opt_this The object to use as `this` in `nodeWriter`.
* @return {ol.xml.Serializer} Serializer. * @return {ol.xmlSerializer} Serializer.
* @template T, V * @template T, V
*/ */
ol.xml.makeChildAppender = function(nodeWriter, opt_this) { ol.xml.makeChildAppender = function(nodeWriter, opt_this) {
@@ -305,7 +305,7 @@ ol.xml.makeChildAppender = function(nodeWriter, opt_this) {
* @param {function(this: T, Node, V, Array.<*>)} * @param {function(this: T, Node, V, Array.<*>)}
* nodeWriter Node writer. * nodeWriter Node writer.
* @param {T=} opt_this The object to use as `this` in `nodeWriter`. * @param {T=} opt_this The object to use as `this` in `nodeWriter`.
* @return {ol.xml.Serializer} Serializer. * @return {ol.xmlSerializer} Serializer.
* @template T, V * @template T, V
*/ */
ol.xml.makeArraySerializer = function(nodeWriter, opt_this) { ol.xml.makeArraySerializer = function(nodeWriter, opt_this) {
@@ -422,7 +422,7 @@ ol.xml.makeStructureNS = function(namespaceURIs, structure, opt_structureNS) {
/** /**
* Parse a node using the parsers and object stack. * Parse a node using the parsers and object stack.
* @param {Object.<string, Object.<string, ol.xml.Parser>>} parsersNS * @param {Object.<string, Object.<string, ol.xmlParser>>} parsersNS
* Parsers by namespace. * Parsers by namespace.
* @param {Node} node Node. * @param {Node} node Node.
* @param {Array.<*>} objectStack Object stack. * @param {Array.<*>} objectStack Object stack.
@@ -445,7 +445,7 @@ ol.xml.parseNode = function(parsersNS, node, objectStack, opt_this) {
/** /**
* Push an object on top of the stack, parse and return the popped object. * Push an object on top of the stack, parse and return the popped object.
* @param {T} object Object. * @param {T} object Object.
* @param {Object.<string, Object.<string, ol.xml.Parser>>} parsersNS * @param {Object.<string, Object.<string, ol.xmlParser>>} parsersNS
* Parsers by namespace. * Parsers by namespace.
* @param {Node} node Node. * @param {Node} node Node.
* @param {Array.<*>} objectStack Object stack. * @param {Array.<*>} objectStack Object stack.
@@ -463,7 +463,7 @@ ol.xml.pushParseAndPop = function(
/** /**
* Walk through an array of `values` and call a serializer for each value. * Walk through an array of `values` and call a serializer for each value.
* @param {Object.<string, Object.<string, ol.xml.Serializer>>} serializersNS * @param {Object.<string, Object.<string, ol.xmlSerializer>>} serializersNS
* Namespaced serializers. * Namespaced serializers.
* @param {function(this: T, *, Array.<*>, (string|undefined)): (Node|undefined)} nodeFactory * @param {function(this: T, *, Array.<*>, (string|undefined)): (Node|undefined)} nodeFactory
* Node factory. The `nodeFactory` creates the node whose namespace and name * Node factory. The `nodeFactory` creates the node whose namespace and name
@@ -503,7 +503,7 @@ ol.xml.serialize = function(
/** /**
* @param {O} object Object. * @param {O} object Object.
* @param {Object.<string, Object.<string, ol.xml.Serializer>>} serializersNS * @param {Object.<string, Object.<string, ol.xmlSerializer>>} serializersNS
* Namespaced serializers. * Namespaced serializers.
* @param {function(this: T, *, Array.<*>, (string|undefined)): (Node|undefined)} nodeFactory * @param {function(this: T, *, Array.<*>, (string|undefined)): (Node|undefined)} nodeFactory
* Node factory. The `nodeFactory` creates the node whose namespace and name * Node factory. The `nodeFactory` creates the node whose namespace and name