Use {} instead of Object
We probably have these to trick the compiler but it's not needed anymore
This commit is contained in:
@@ -453,12 +453,12 @@ ol.format.GML3.prototype.readFlatPosList_ = function(node, objectStack) {
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'pos': ol.xml.makeReplacer(ol.format.GML3.prototype.readFlatPos_),
|
||||
'posList': ol.xml.makeReplacer(ol.format.GML3.prototype.readFlatPosList_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -466,12 +466,12 @@ ol.format.GML3.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'interior': ol.format.GML3.prototype.interiorParser_,
|
||||
'exterior': ol.format.GML3.prototype.exteriorParser_
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -479,7 +479,7 @@ ol.format.GML3.prototype.FLAT_LINEAR_RINGS_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.GEOMETRY_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.GEOMETRY_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'Point': ol.xml.makeReplacer(ol.format.GMLBase.prototype.readPoint),
|
||||
'MultiPoint': ol.xml.makeReplacer(
|
||||
@@ -501,7 +501,7 @@ ol.format.GML3.prototype.GEOMETRY_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.readMultiCurve_),
|
||||
'Envelope': ol.xml.makeReplacer(ol.format.GML3.prototype.readEnvelope_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -509,14 +509,14 @@ ol.format.GML3.prototype.GEOMETRY_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.MULTICURVE_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.MULTICURVE_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'curveMember': ol.xml.makeArrayPusher(
|
||||
ol.format.GML3.prototype.curveMemberParser_),
|
||||
'curveMembers': ol.xml.makeArrayPusher(
|
||||
ol.format.GML3.prototype.curveMemberParser_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -524,14 +524,14 @@ ol.format.GML3.prototype.MULTICURVE_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.MULTISURFACE_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.MULTISURFACE_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'surfaceMember': ol.xml.makeArrayPusher(
|
||||
ol.format.GML3.prototype.surfaceMemberParser_),
|
||||
'surfaceMembers': ol.xml.makeArrayPusher(
|
||||
ol.format.GML3.prototype.surfaceMemberParser_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -539,13 +539,13 @@ ol.format.GML3.prototype.MULTISURFACE_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.CURVEMEMBER_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.CURVEMEMBER_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'LineString': ol.xml.makeArrayPusher(
|
||||
ol.format.GMLBase.prototype.readLineString),
|
||||
'Curve': ol.xml.makeArrayPusher(ol.format.GML3.prototype.readCurve_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -553,12 +553,12 @@ ol.format.GML3.prototype.CURVEMEMBER_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.SURFACEMEMBER_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.SURFACEMEMBER_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'Polygon': ol.xml.makeArrayPusher(ol.format.GMLBase.prototype.readPolygon),
|
||||
'Surface': ol.xml.makeArrayPusher(ol.format.GML3.prototype.readSurface_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -566,11 +566,11 @@ ol.format.GML3.prototype.SURFACEMEMBER_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.SURFACE_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.SURFACE_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'patches': ol.xml.makeReplacer(ol.format.GML3.prototype.readPatch_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -578,11 +578,11 @@ ol.format.GML3.prototype.SURFACE_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.CURVE_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.CURVE_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'segments': ol.xml.makeReplacer(ol.format.GML3.prototype.readSegment_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -590,14 +590,14 @@ ol.format.GML3.prototype.CURVE_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.ENVELOPE_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.ENVELOPE_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'lowerCorner': ol.xml.makeArrayPusher(
|
||||
ol.format.GML3.prototype.readFlatPosList_),
|
||||
'upperCorner': ol.xml.makeArrayPusher(
|
||||
ol.format.GML3.prototype.readFlatPosList_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -605,12 +605,12 @@ ol.format.GML3.prototype.ENVELOPE_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.PATCHES_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.PATCHES_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'PolygonPatch': ol.xml.makeReplacer(
|
||||
ol.format.GML3.prototype.readPolygonPatch_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -618,12 +618,12 @@ ol.format.GML3.prototype.PATCHES_PARSERS_ = Object({
|
||||
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.GML3.prototype.SEGMENTS_PARSERS_ = Object({
|
||||
ol.format.GML3.prototype.SEGMENTS_PARSERS_ = {
|
||||
'http://www.opengis.net/gml' : {
|
||||
'LineStringSegment': ol.xml.makeReplacer(
|
||||
ol.format.GML3.prototype.readLineStringSegment_)
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user