Remove ol.xml.makeParsersNS and use ol.xml.makeStructureNS instead
This commit is contained in:
@@ -286,7 +286,7 @@ ol.format.GPX.FEATURE_READER_ = {
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.GPX_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.GPX_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'rte': ol.xml.makeArrayPusher(ol.format.GPX.readRte_),
|
'rte': ol.xml.makeArrayPusher(ol.format.GPX.readRte_),
|
||||||
'trk': ol.xml.makeArrayPusher(ol.format.GPX.readTrk_),
|
'trk': ol.xml.makeArrayPusher(ol.format.GPX.readTrk_),
|
||||||
@@ -299,7 +299,7 @@ ol.format.GPX.GPX_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.LINK_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.LINK_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'text':
|
'text':
|
||||||
ol.xml.makeObjectPropertySetter(ol.format.XSD.readString, 'linkText'),
|
ol.xml.makeObjectPropertySetter(ol.format.XSD.readString, 'linkText'),
|
||||||
@@ -313,7 +313,7 @@ ol.format.GPX.LINK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.RTE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.RTE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'cmt': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'cmt': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -333,7 +333,7 @@ ol.format.GPX.RTE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.RTEPT_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.RTEPT_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'ele': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
'ele': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
||||||
'time': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDateTime)
|
'time': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDateTime)
|
||||||
@@ -345,7 +345,7 @@ ol.format.GPX.RTEPT_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.TRK_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.TRK_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'cmt': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'cmt': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -365,7 +365,7 @@ ol.format.GPX.TRK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.TRKSEG_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.TRKSEG_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'trkpt': ol.format.GPX.parseTrkPt_
|
'trkpt': ol.format.GPX.parseTrkPt_
|
||||||
});
|
});
|
||||||
@@ -376,7 +376,7 @@ ol.format.GPX.TRKSEG_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.TRKPT_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.TRKPT_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'ele': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
'ele': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
||||||
'time': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDateTime)
|
'time': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDateTime)
|
||||||
@@ -388,7 +388,7 @@ ol.format.GPX.TRKPT_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GPX.WPT_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.GPX.WPT_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.GPX.NAMESPACE_URIS_, {
|
ol.format.GPX.NAMESPACE_URIS_, {
|
||||||
'ele': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
'ele': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
||||||
'time': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDateTime),
|
'time': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDateTime),
|
||||||
|
|||||||
@@ -1310,7 +1310,7 @@ ol.format.KML.whenParser_ = function(node, objectStack) {
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.DATA_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.DATA_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'value': ol.xml.makeReplacer(ol.format.XSD.readString)
|
'value': ol.xml.makeReplacer(ol.format.XSD.readString)
|
||||||
});
|
});
|
||||||
@@ -1321,7 +1321,7 @@ ol.format.KML.DATA_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'Data': ol.format.KML.DataParser_,
|
'Data': ol.format.KML.DataParser_,
|
||||||
'SchemaData': ol.format.KML.SchemaDataParser_
|
'SchemaData': ol.format.KML.SchemaDataParser_
|
||||||
@@ -1333,7 +1333,7 @@ ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.EXTRUDE_AND_ALTITUDE_MODE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.EXTRUDE_AND_ALTITUDE_MODE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'extrude': ol.xml.makeObjectPropertySetter(ol.format.XSD.readBoolean),
|
'extrude': ol.xml.makeObjectPropertySetter(ol.format.XSD.readBoolean),
|
||||||
'altitudeMode': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString)
|
'altitudeMode': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString)
|
||||||
@@ -1345,7 +1345,7 @@ ol.format.KML.EXTRUDE_AND_ALTITUDE_MODE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'coordinates': ol.xml.makeReplacer(ol.format.KML.readFlatCoordinates_)
|
'coordinates': ol.xml.makeReplacer(ol.format.KML.readFlatCoordinates_)
|
||||||
});
|
});
|
||||||
@@ -1356,7 +1356,7 @@ ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'innerBoundaryIs': ol.format.KML.innerBoundaryIsParser_,
|
'innerBoundaryIs': ol.format.KML.innerBoundaryIsParser_,
|
||||||
'outerBoundaryIs': ol.format.KML.outerBoundaryIsParser_
|
'outerBoundaryIs': ol.format.KML.outerBoundaryIsParser_
|
||||||
@@ -1368,10 +1368,10 @@ ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'when': ol.format.KML.whenParser_
|
'when': ol.format.KML.whenParser_
|
||||||
}, ol.xml.makeParsersNS(
|
}, ol.xml.makeStructureNS(
|
||||||
ol.format.KML.GX_NAMESPACE_URIS_, {
|
ol.format.KML.GX_NAMESPACE_URIS_, {
|
||||||
'coord': ol.format.KML.gxCoordParser_
|
'coord': ol.format.KML.gxCoordParser_
|
||||||
}));
|
}));
|
||||||
@@ -1382,7 +1382,7 @@ ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'coordinates': ol.xml.makeReplacer(ol.format.KML.readFlatCoordinates_)
|
'coordinates': ol.xml.makeReplacer(ol.format.KML.readFlatCoordinates_)
|
||||||
});
|
});
|
||||||
@@ -1393,10 +1393,10 @@ ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.ICON_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.ICON_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'href': ol.xml.makeObjectPropertySetter(ol.format.KML.readURI_)
|
'href': ol.xml.makeObjectPropertySetter(ol.format.KML.readURI_)
|
||||||
}, ol.xml.makeParsersNS(
|
}, ol.xml.makeStructureNS(
|
||||||
ol.format.KML.GX_NAMESPACE_URIS_, {
|
ol.format.KML.GX_NAMESPACE_URIS_, {
|
||||||
'x': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
'x': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
||||||
'y': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
'y': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
||||||
@@ -1410,7 +1410,7 @@ ol.format.KML.ICON_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'Icon': ol.xml.makeObjectPropertySetter(ol.format.KML.readIcon_),
|
'Icon': ol.xml.makeObjectPropertySetter(ol.format.KML.readIcon_),
|
||||||
'heading': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
'heading': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal),
|
||||||
@@ -1424,7 +1424,7 @@ ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'LinearRing': ol.xml.makeReplacer(ol.format.KML.readFlatLinearRing_)
|
'LinearRing': ol.xml.makeReplacer(ol.format.KML.readFlatLinearRing_)
|
||||||
});
|
});
|
||||||
@@ -1435,7 +1435,7 @@ ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.LABEL_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.LABEL_STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'color': ol.xml.makeObjectPropertySetter(ol.format.KML.readColor_),
|
'color': ol.xml.makeObjectPropertySetter(ol.format.KML.readColor_),
|
||||||
'scale': ol.xml.makeObjectPropertySetter(ol.format.KML.readScale_)
|
'scale': ol.xml.makeObjectPropertySetter(ol.format.KML.readScale_)
|
||||||
@@ -1447,7 +1447,7 @@ ol.format.KML.LABEL_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'color': ol.xml.makeObjectPropertySetter(ol.format.KML.readColor_),
|
'color': ol.xml.makeObjectPropertySetter(ol.format.KML.readColor_),
|
||||||
'width': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal)
|
'width': ol.xml.makeObjectPropertySetter(ol.format.XSD.readDecimal)
|
||||||
@@ -1459,7 +1459,7 @@ ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'LineString': ol.xml.makeArrayPusher(ol.format.KML.readLineString_),
|
'LineString': ol.xml.makeArrayPusher(ol.format.KML.readLineString_),
|
||||||
'LinearRing': ol.xml.makeArrayPusher(ol.format.KML.readLinearRing_),
|
'LinearRing': ol.xml.makeArrayPusher(ol.format.KML.readLinearRing_),
|
||||||
@@ -1474,7 +1474,7 @@ ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.GX_NAMESPACE_URIS_, {
|
ol.format.KML.GX_NAMESPACE_URIS_, {
|
||||||
'Track': ol.xml.makeArrayPusher(ol.format.KML.readGxTrack_)
|
'Track': ol.xml.makeArrayPusher(ol.format.KML.readGxTrack_)
|
||||||
});
|
});
|
||||||
@@ -1485,7 +1485,7 @@ ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.NETWORK_LINK_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.NETWORK_LINK_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'ExtendedData': ol.format.KML.ExtendedDataParser_,
|
'ExtendedData': ol.format.KML.ExtendedDataParser_,
|
||||||
'Link': ol.format.KML.LinkParser_,
|
'Link': ol.format.KML.LinkParser_,
|
||||||
@@ -1503,7 +1503,7 @@ ol.format.KML.NETWORK_LINK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.LINK_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.LINK_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'href': ol.xml.makeObjectPropertySetter(ol.format.KML.readURI_)
|
'href': ol.xml.makeObjectPropertySetter(ol.format.KML.readURI_)
|
||||||
});
|
});
|
||||||
@@ -1514,7 +1514,7 @@ ol.format.KML.LINK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'LinearRing': ol.xml.makeReplacer(ol.format.KML.readFlatLinearRing_)
|
'LinearRing': ol.xml.makeReplacer(ol.format.KML.readFlatLinearRing_)
|
||||||
});
|
});
|
||||||
@@ -1525,7 +1525,7 @@ ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.PAIR_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.PAIR_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'Style': ol.xml.makeObjectPropertySetter(ol.format.KML.readStyle_),
|
'Style': ol.xml.makeObjectPropertySetter(ol.format.KML.readStyle_),
|
||||||
'key': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'key': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -1538,7 +1538,7 @@ ol.format.KML.PAIR_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'ExtendedData': ol.format.KML.ExtendedDataParser_,
|
'ExtendedData': ol.format.KML.ExtendedDataParser_,
|
||||||
'MultiGeometry': ol.xml.makeObjectPropertySetter(
|
'MultiGeometry': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -1560,7 +1560,7 @@ ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
'phoneNumber': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'phoneNumber': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'styleUrl': ol.xml.makeObjectPropertySetter(ol.format.KML.readURI_),
|
'styleUrl': ol.xml.makeObjectPropertySetter(ol.format.KML.readURI_),
|
||||||
'visibility': ol.xml.makeObjectPropertySetter(ol.format.XSD.readBoolean)
|
'visibility': ol.xml.makeObjectPropertySetter(ol.format.XSD.readBoolean)
|
||||||
}, ol.xml.makeParsersNS(
|
}, ol.xml.makeStructureNS(
|
||||||
ol.format.KML.GX_NAMESPACE_URIS_, {
|
ol.format.KML.GX_NAMESPACE_URIS_, {
|
||||||
'MultiTrack': ol.xml.makeObjectPropertySetter(
|
'MultiTrack': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.KML.readGxMultiTrack_, 'geometry'),
|
ol.format.KML.readGxMultiTrack_, 'geometry'),
|
||||||
@@ -1575,7 +1575,7 @@ ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'color': ol.xml.makeObjectPropertySetter(ol.format.KML.readColor_),
|
'color': ol.xml.makeObjectPropertySetter(ol.format.KML.readColor_),
|
||||||
'fill': ol.xml.makeObjectPropertySetter(ol.format.XSD.readBoolean),
|
'fill': ol.xml.makeObjectPropertySetter(ol.format.XSD.readBoolean),
|
||||||
@@ -1588,7 +1588,7 @@ ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'SimpleData': ol.format.KML.SimpleDataParser_
|
'SimpleData': ol.format.KML.SimpleDataParser_
|
||||||
});
|
});
|
||||||
@@ -1599,7 +1599,7 @@ ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'IconStyle': ol.format.KML.IconStyleParser_,
|
'IconStyle': ol.format.KML.IconStyleParser_,
|
||||||
'LabelStyle': ol.format.KML.LabelStyleParser_,
|
'LabelStyle': ol.format.KML.LabelStyleParser_,
|
||||||
@@ -1613,7 +1613,7 @@ ol.format.KML.STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.KML.STYLE_MAP_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.KML.STYLE_MAP_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'Pair': ol.format.KML.PairDataParser_
|
'Pair': ol.format.KML.PairDataParser_
|
||||||
});
|
});
|
||||||
@@ -1640,7 +1640,7 @@ ol.format.KML.prototype.readDocumentOrFolder_ = function(node, objectStack) {
|
|||||||
goog.asserts.assert(localName == 'Document' || localName == 'Folder',
|
goog.asserts.assert(localName == 'Document' || localName == 'Folder',
|
||||||
'localName should be Document or Folder');
|
'localName should be Document or Folder');
|
||||||
// FIXME use scope somehow
|
// FIXME use scope somehow
|
||||||
var parsersNS = ol.xml.makeParsersNS(
|
var parsersNS = ol.xml.makeStructureNS(
|
||||||
ol.format.KML.NAMESPACE_URIS_, {
|
ol.format.KML.NAMESPACE_URIS_, {
|
||||||
'Folder': ol.xml.makeArrayExtender(this.readDocumentOrFolder_, this),
|
'Folder': ol.xml.makeArrayExtender(this.readDocumentOrFolder_, this),
|
||||||
'Placemark': ol.xml.makeArrayPusher(this.readPlacemark_, this),
|
'Placemark': ol.xml.makeArrayPusher(this.readPlacemark_, this),
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ ol.format.OSMXML.NAMESPACE_URIS_ = [
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OSMXML.WAY_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OSMXML.WAY_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OSMXML.NAMESPACE_URIS_, {
|
ol.format.OSMXML.NAMESPACE_URIS_, {
|
||||||
'nd': ol.format.OSMXML.readNd_,
|
'nd': ol.format.OSMXML.readNd_,
|
||||||
'tag': ol.format.OSMXML.readTag_
|
'tag': ol.format.OSMXML.readTag_
|
||||||
@@ -181,7 +181,7 @@ ol.format.OSMXML.WAY_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OSMXML.PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OSMXML.PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OSMXML.NAMESPACE_URIS_, {
|
ol.format.OSMXML.NAMESPACE_URIS_, {
|
||||||
'node': ol.format.OSMXML.readNode_,
|
'node': ol.format.OSMXML.readNode_,
|
||||||
'way': ol.format.OSMXML.readWay_
|
'way': ol.format.OSMXML.readWay_
|
||||||
@@ -193,7 +193,7 @@ ol.format.OSMXML.PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OSMXML.NAMESPACE_URIS_, {
|
ol.format.OSMXML.NAMESPACE_URIS_, {
|
||||||
'tag': ol.format.OSMXML.readTag_
|
'tag': ol.format.OSMXML.readTag_
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ ol.format.OWS.NAMESPACE_URIS_ = [
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'ServiceIdentification': ol.xml.makeObjectPropertySetter(
|
'ServiceIdentification': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.OWS.readServiceIdentification_),
|
ol.format.OWS.readServiceIdentification_),
|
||||||
@@ -322,7 +322,7 @@ ol.format.OWS.PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.ADDRESS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.ADDRESS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'DeliveryPoint': ol.xml.makeObjectPropertySetter(
|
'DeliveryPoint': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
@@ -341,7 +341,7 @@ ol.format.OWS.ADDRESS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.ALLOWED_VALUES_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.ALLOWED_VALUES_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Value': ol.xml.makeObjectPropertyPusher(ol.format.OWS.readValue_)
|
'Value': ol.xml.makeObjectPropertyPusher(ol.format.OWS.readValue_)
|
||||||
});
|
});
|
||||||
@@ -352,7 +352,7 @@ ol.format.OWS.ALLOWED_VALUES_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.CONSTRAINT_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.CONSTRAINT_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'AllowedValues': ol.xml.makeObjectPropertySetter(
|
'AllowedValues': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.OWS.readAllowedValues_)
|
ol.format.OWS.readAllowedValues_)
|
||||||
@@ -364,7 +364,7 @@ ol.format.OWS.CONSTRAINT_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.CONTACT_INFO_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.CONTACT_INFO_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Phone': ol.xml.makeObjectPropertySetter(ol.format.OWS.readPhone_),
|
'Phone': ol.xml.makeObjectPropertySetter(ol.format.OWS.readPhone_),
|
||||||
'Address': ol.xml.makeObjectPropertySetter(ol.format.OWS.readAddress_)
|
'Address': ol.xml.makeObjectPropertySetter(ol.format.OWS.readAddress_)
|
||||||
@@ -376,7 +376,7 @@ ol.format.OWS.CONTACT_INFO_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.DCP_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.DCP_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'HTTP': ol.xml.makeObjectPropertySetter(ol.format.OWS.readHttp_)
|
'HTTP': ol.xml.makeObjectPropertySetter(ol.format.OWS.readHttp_)
|
||||||
});
|
});
|
||||||
@@ -387,7 +387,7 @@ ol.format.OWS.DCP_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.HTTP_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.HTTP_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Get': ol.xml.makeObjectPropertyPusher(ol.format.OWS.readGet_),
|
'Get': ol.xml.makeObjectPropertyPusher(ol.format.OWS.readGet_),
|
||||||
'Post': undefined // TODO
|
'Post': undefined // TODO
|
||||||
@@ -399,7 +399,7 @@ ol.format.OWS.HTTP_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.OPERATION_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.OPERATION_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'DCP': ol.xml.makeObjectPropertySetter(ol.format.OWS.readDcp_)
|
'DCP': ol.xml.makeObjectPropertySetter(ol.format.OWS.readDcp_)
|
||||||
});
|
});
|
||||||
@@ -410,7 +410,7 @@ ol.format.OWS.OPERATION_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.OPERATIONS_METADATA_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.OPERATIONS_METADATA_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Operation': ol.format.OWS.readOperation_
|
'Operation': ol.format.OWS.readOperation_
|
||||||
});
|
});
|
||||||
@@ -421,7 +421,7 @@ ol.format.OWS.OPERATIONS_METADATA_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.PHONE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.PHONE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Voice': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Voice': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'Facsimile': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString)
|
'Facsimile': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString)
|
||||||
@@ -433,7 +433,7 @@ ol.format.OWS.PHONE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.REQUEST_METHOD_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.OWS.REQUEST_METHOD_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Constraint': ol.xml.makeObjectPropertyPusher(
|
'Constraint': ol.xml.makeObjectPropertyPusher(
|
||||||
ol.format.OWS.readConstraint_)
|
ol.format.OWS.readConstraint_)
|
||||||
@@ -446,7 +446,7 @@ ol.format.OWS.REQUEST_METHOD_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.SERVICE_CONTACT_PARSERS_ =
|
ol.format.OWS.SERVICE_CONTACT_PARSERS_ =
|
||||||
ol.xml.makeParsersNS(
|
ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'IndividualName': ol.xml.makeObjectPropertySetter(
|
'IndividualName': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
@@ -462,7 +462,7 @@ ol.format.OWS.SERVICE_CONTACT_PARSERS_ =
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
|
ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
|
||||||
ol.xml.makeParsersNS(
|
ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'ServiceTypeVersion': ol.xml.makeObjectPropertySetter(
|
'ServiceTypeVersion': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -477,7 +477,7 @@ ol.format.OWS.SERVICE_IDENTIFICATION_PARSERS_ =
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.OWS.SERVICE_PROVIDER_PARSERS_ =
|
ol.format.OWS.SERVICE_PROVIDER_PARSERS_ =
|
||||||
ol.xml.makeParsersNS(
|
ol.xml.makeStructureNS(
|
||||||
ol.format.OWS.NAMESPACE_URIS_, {
|
ol.format.OWS.NAMESPACE_URIS_, {
|
||||||
'ProviderName': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'ProviderName': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'ProviderSite': ol.xml.makeObjectPropertySetter(ol.format.XLink.readHref),
|
'ProviderSite': ol.xml.makeObjectPropertySetter(ol.format.XLink.readHref),
|
||||||
|
|||||||
@@ -583,7 +583,7 @@ ol.format.WMSCapabilities.NAMESPACE_URIS_ = [
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Service': ol.xml.makeObjectPropertySetter(
|
'Service': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMSCapabilities.readService_),
|
ol.format.WMSCapabilities.readService_),
|
||||||
@@ -597,7 +597,7 @@ ol.format.WMSCapabilities.PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.CAPABILITY_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.CAPABILITY_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Request': ol.xml.makeObjectPropertySetter(
|
'Request': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMSCapabilities.readRequest_),
|
ol.format.WMSCapabilities.readRequest_),
|
||||||
@@ -613,7 +613,7 @@ ol.format.WMSCapabilities.CAPABILITY_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.SERVICE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.SERVICE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -641,7 +641,7 @@ ol.format.WMSCapabilities.SERVICE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.CONTACT_INFORMATION_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.CONTACT_INFORMATION_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'ContactPersonPrimary': ol.xml.makeObjectPropertySetter(
|
'ContactPersonPrimary': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMSCapabilities.readContactPersonPrimary_),
|
ol.format.WMSCapabilities.readContactPersonPrimary_),
|
||||||
@@ -663,7 +663,7 @@ ol.format.WMSCapabilities.CONTACT_INFORMATION_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.CONTACT_PERSON_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.CONTACT_PERSON_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'ContactPerson': ol.xml.makeObjectPropertySetter(
|
'ContactPerson': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
@@ -677,7 +677,7 @@ ol.format.WMSCapabilities.CONTACT_PERSON_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.CONTACT_ADDRESS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.CONTACT_ADDRESS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'AddressType': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'AddressType': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'Address': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Address': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -694,7 +694,7 @@ ol.format.WMSCapabilities.CONTACT_ADDRESS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.EXCEPTION_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.EXCEPTION_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Format': ol.xml.makeArrayPusher(ol.format.XSD.readString)
|
'Format': ol.xml.makeArrayPusher(ol.format.XSD.readString)
|
||||||
});
|
});
|
||||||
@@ -705,7 +705,7 @@ ol.format.WMSCapabilities.EXCEPTION_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.LAYER_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -746,7 +746,7 @@ ol.format.WMSCapabilities.LAYER_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.ATTRIBUTION_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.ATTRIBUTION_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'OnlineResource': ol.xml.makeObjectPropertySetter(
|
'OnlineResource': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -762,7 +762,7 @@ ol.format.WMSCapabilities.ATTRIBUTION_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_ =
|
ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_ =
|
||||||
ol.xml.makeParsersNS(ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.xml.makeStructureNS(ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'westBoundLongitude': ol.xml.makeObjectPropertySetter(
|
'westBoundLongitude': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readDecimal),
|
ol.format.XSD.readDecimal),
|
||||||
'eastBoundLongitude': ol.xml.makeObjectPropertySetter(
|
'eastBoundLongitude': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -779,7 +779,7 @@ ol.format.WMSCapabilities.EX_GEOGRAPHIC_BOUNDING_BOX_PARSERS_ =
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.REQUEST_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.REQUEST_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'GetCapabilities': ol.xml.makeObjectPropertySetter(
|
'GetCapabilities': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMSCapabilities.readOperationType_),
|
ol.format.WMSCapabilities.readOperationType_),
|
||||||
@@ -795,7 +795,7 @@ ol.format.WMSCapabilities.REQUEST_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.OPERATIONTYPE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.OPERATIONTYPE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Format': ol.xml.makeObjectPropertyPusher(ol.format.XSD.readString),
|
'Format': ol.xml.makeObjectPropertyPusher(ol.format.XSD.readString),
|
||||||
'DCPType': ol.xml.makeObjectPropertyPusher(
|
'DCPType': ol.xml.makeObjectPropertyPusher(
|
||||||
@@ -808,7 +808,7 @@ ol.format.WMSCapabilities.OPERATIONTYPE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.DCPTYPE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.DCPTYPE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'HTTP': ol.xml.makeObjectPropertySetter(
|
'HTTP': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMSCapabilities.readHTTP_)
|
ol.format.WMSCapabilities.readHTTP_)
|
||||||
@@ -820,7 +820,7 @@ ol.format.WMSCapabilities.DCPTYPE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.HTTP_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.HTTP_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Get': ol.xml.makeObjectPropertySetter(
|
'Get': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMSCapabilities.readFormatOnlineresource_),
|
ol.format.WMSCapabilities.readFormatOnlineresource_),
|
||||||
@@ -834,7 +834,7 @@ ol.format.WMSCapabilities.HTTP_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Name': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Title': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
@@ -853,8 +853,8 @@ ol.format.WMSCapabilities.STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.FORMAT_ONLINERESOURCE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.FORMAT_ONLINERESOURCE_PARSERS_ =
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.xml.makeStructureNS(ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Format': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
'Format': ol.xml.makeObjectPropertySetter(ol.format.XSD.readString),
|
||||||
'OnlineResource': ol.xml.makeObjectPropertySetter(
|
'OnlineResource': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XLink.readHref)
|
ol.format.XLink.readHref)
|
||||||
@@ -866,7 +866,7 @@ ol.format.WMSCapabilities.FORMAT_ONLINERESOURCE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMSCapabilities.KEYWORDLIST_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMSCapabilities.KEYWORDLIST_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Keyword': ol.xml.makeArrayPusher(ol.format.XSD.readString)
|
'Keyword': ol.xml.makeArrayPusher(ol.format.XSD.readString)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ ol.format.WMSGetFeatureInfo.prototype.readFeatures_ =
|
|||||||
var parsers = {};
|
var parsers = {};
|
||||||
parsers[featureType] = ol.xml.makeArrayPusher(
|
parsers[featureType] = ol.xml.makeArrayPusher(
|
||||||
this.gmlFormat_.readFeatureElement, this.gmlFormat_);
|
this.gmlFormat_.readFeatureElement, this.gmlFormat_);
|
||||||
var parsersNS = ol.xml.makeParsersNS(
|
var parsersNS = ol.xml.makeStructureNS(
|
||||||
[context['featureNS'], null], parsers);
|
[context['featureNS'], null], parsers);
|
||||||
layer.namespaceURI = this.featureNS_;
|
layer.namespaceURI = this.featureNS_;
|
||||||
var layerFeatures = ol.xml.pushParseAndPop(
|
var layerFeatures = ol.xml.pushParseAndPop(
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_ = [
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Contents': ol.xml.makeObjectPropertySetter(
|
'Contents': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMTSCapabilities.readContents_)
|
ol.format.WMTSCapabilities.readContents_)
|
||||||
@@ -283,7 +283,7 @@ ol.format.WMTSCapabilities.PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.CONTENTS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.CONTENTS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Layer': ol.xml.makeObjectPropertyPusher(
|
'Layer': ol.xml.makeObjectPropertyPusher(
|
||||||
ol.format.WMTSCapabilities.readLayer_),
|
ol.format.WMTSCapabilities.readLayer_),
|
||||||
@@ -297,7 +297,7 @@ ol.format.WMTSCapabilities.CONTENTS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'Style': ol.xml.makeObjectPropertyPusher(
|
'Style': ol.xml.makeObjectPropertyPusher(
|
||||||
ol.format.WMTSCapabilities.readStyle_),
|
ol.format.WMTSCapabilities.readStyle_),
|
||||||
@@ -307,7 +307,7 @@ ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
ol.format.WMTSCapabilities.readTileMatrixSetLink_),
|
ol.format.WMTSCapabilities.readTileMatrixSetLink_),
|
||||||
'ResourceURL': ol.xml.makeObjectPropertyPusher(
|
'ResourceURL': ol.xml.makeObjectPropertyPusher(
|
||||||
ol.format.WMTSCapabilities.readResourceUrl_)
|
ol.format.WMTSCapabilities.readResourceUrl_)
|
||||||
}, ol.xml.makeParsersNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
}, ol.xml.makeStructureNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
||||||
'Title': ol.xml.makeObjectPropertySetter(
|
'Title': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
'Abstract': ol.xml.makeObjectPropertySetter(
|
'Abstract': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -324,11 +324,11 @@ ol.format.WMTSCapabilities.LAYER_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.STYLE_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'LegendURL': ol.xml.makeObjectPropertyPusher(
|
'LegendURL': ol.xml.makeObjectPropertyPusher(
|
||||||
ol.format.WMTSCapabilities.readLegendUrl_)
|
ol.format.WMTSCapabilities.readLegendUrl_)
|
||||||
}, ol.xml.makeParsersNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
}, ol.xml.makeStructureNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
||||||
'Title': ol.xml.makeObjectPropertySetter(
|
'Title': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
'Identifier': ol.xml.makeObjectPropertySetter(
|
'Identifier': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -341,7 +341,7 @@ ol.format.WMTSCapabilities.STYLE_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.TMS_LINKS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.TMS_LINKS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'TileMatrixSet': ol.xml.makeObjectPropertySetter(
|
'TileMatrixSet': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString)
|
ol.format.XSD.readString)
|
||||||
@@ -353,7 +353,7 @@ ol.format.WMTSCapabilities.TMS_LINKS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.WGS84_BBOX_READERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.WGS84_BBOX_READERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
||||||
'LowerCorner': ol.xml.makeArrayPusher(
|
'LowerCorner': ol.xml.makeArrayPusher(
|
||||||
ol.format.WMTSCapabilities.readCoordinates_),
|
ol.format.WMTSCapabilities.readCoordinates_),
|
||||||
@@ -367,13 +367,13 @@ ol.format.WMTSCapabilities.WGS84_BBOX_READERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.TMS_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.TMS_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'WellKnownScaleSet': ol.xml.makeObjectPropertySetter(
|
'WellKnownScaleSet': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
'TileMatrix': ol.xml.makeObjectPropertyPusher(
|
'TileMatrix': ol.xml.makeObjectPropertyPusher(
|
||||||
ol.format.WMTSCapabilities.readTileMatrix_)
|
ol.format.WMTSCapabilities.readTileMatrix_)
|
||||||
}, ol.xml.makeParsersNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
}, ol.xml.makeStructureNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
||||||
'SupportedCRS': ol.xml.makeObjectPropertySetter(
|
'SupportedCRS': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString),
|
ol.format.XSD.readString),
|
||||||
'Identifier': ol.xml.makeObjectPropertySetter(
|
'Identifier': ol.xml.makeObjectPropertySetter(
|
||||||
@@ -386,7 +386,7 @@ ol.format.WMTSCapabilities.TMS_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.WMTSCapabilities.TM_PARSERS_ = ol.xml.makeParsersNS(
|
ol.format.WMTSCapabilities.TM_PARSERS_ = ol.xml.makeStructureNS(
|
||||||
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
ol.format.WMTSCapabilities.NAMESPACE_URIS_, {
|
||||||
'TopLeftCorner': ol.xml.makeObjectPropertySetter(
|
'TopLeftCorner': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.WMTSCapabilities.readCoordinates_),
|
ol.format.WMTSCapabilities.readCoordinates_),
|
||||||
@@ -400,7 +400,7 @@ ol.format.WMTSCapabilities.TM_PARSERS_ = ol.xml.makeParsersNS(
|
|||||||
ol.format.XSD.readNonNegativeInteger),
|
ol.format.XSD.readNonNegativeInteger),
|
||||||
'MatrixHeight': ol.xml.makeObjectPropertySetter(
|
'MatrixHeight': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readNonNegativeInteger)
|
ol.format.XSD.readNonNegativeInteger)
|
||||||
}, ol.xml.makeParsersNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
}, ol.xml.makeStructureNS(ol.format.WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
||||||
'Identifier': ol.xml.makeObjectPropertySetter(
|
'Identifier': ol.xml.makeObjectPropertySetter(
|
||||||
ol.format.XSD.readString)
|
ol.format.XSD.readString)
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// FIXME Remove ol.xml.makeParsersNS, and use ol.xml.makeStructureNS instead.
|
|
||||||
|
|
||||||
goog.provide('ol.xml');
|
goog.provide('ol.xml');
|
||||||
|
|
||||||
goog.require('goog.array');
|
goog.require('goog.array');
|
||||||
@@ -497,20 +495,6 @@ ol.xml.makeObjectPropertySetter =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Make a parserNS hash.
|
|
||||||
* @param {Array.<string>} namespaceURIs Namespace URIs.
|
|
||||||
* @param {Object.<string, ol.xml.Parser>} parsers Parsers.
|
|
||||||
* @param {Object.<string, Object.<string, ol.xml.Parser>>=} opt_parsersNS
|
|
||||||
* ParsersNS.
|
|
||||||
* @return {Object.<string, Object.<string, ol.xml.Parser>>} Parsers NS.
|
|
||||||
*/
|
|
||||||
ol.xml.makeParsersNS = function(namespaceURIs, parsers, opt_parsersNS) {
|
|
||||||
return /** @type {Object.<string, Object.<string, ol.xml.Parser>>} */ (
|
|
||||||
ol.xml.makeStructureNS(namespaceURIs, parsers, opt_parsersNS));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
|||||||
Reference in New Issue
Block a user