Merge pull request #2629 from elemoine/apistable-format

Add @api stable annotations to ol.format
This commit is contained in:
Éric Lemoine
2014-08-28 17:37:06 +02:00
11 changed files with 85 additions and 84 deletions

View File

@@ -1294,7 +1294,7 @@ olx.format.ReadOptions;
* the data and if no `defaultDataProjection` is set for a format, the features * the data and if no `defaultDataProjection` is set for a format, the features
* will not be reprojected. * will not be reprojected.
* @type {ol.proj.ProjectionLike|undefined} * @type {ol.proj.ProjectionLike|undefined}
* @api * @api stable
*/ */
olx.format.ReadOptions.prototype.dataProjection; olx.format.ReadOptions.prototype.dataProjection;
@@ -1303,7 +1303,7 @@ olx.format.ReadOptions.prototype.dataProjection;
* Projection of the feature geometries created by the format reader. If not * Projection of the feature geometries created by the format reader. If not
* provided, features will be returned in the `dataProjection`. * provided, features will be returned in the `dataProjection`.
* @type {ol.proj.ProjectionLike|undefined} * @type {ol.proj.ProjectionLike|undefined}
* @api * @api stable
*/ */
olx.format.ReadOptions.prototype.featureProjection; olx.format.ReadOptions.prototype.featureProjection;
@@ -1322,7 +1322,7 @@ olx.format.WriteOptions;
* `defaultDataProjection` is set for a format, the features will be returned * `defaultDataProjection` is set for a format, the features will be returned
* in the `featureProjection`. * in the `featureProjection`.
* @type {ol.proj.ProjectionLike|undefined} * @type {ol.proj.ProjectionLike|undefined}
* @api * @api stable
*/ */
olx.format.WriteOptions.prototype.dataProjection; olx.format.WriteOptions.prototype.dataProjection;
@@ -1331,7 +1331,7 @@ olx.format.WriteOptions.prototype.dataProjection;
* Projection of the feature geometries that will be serialized by the format * Projection of the feature geometries that will be serialized by the format
* writer. * writer.
* @type {ol.proj.ProjectionLike} * @type {ol.proj.ProjectionLike}
* @api * @api stable
*/ */
olx.format.WriteOptions.prototype.featureProjection; olx.format.WriteOptions.prototype.featureProjection;
@@ -1347,7 +1347,7 @@ olx.format.GeoJSONOptions;
/** /**
* Default data projection. * Default data projection.
* @type {ol.proj.ProjectionLike} * @type {ol.proj.ProjectionLike}
* @api * @api stable
*/ */
olx.format.GeoJSONOptions.prototype.defaultDataProjection; olx.format.GeoJSONOptions.prototype.defaultDataProjection;
@@ -1355,7 +1355,7 @@ olx.format.GeoJSONOptions.prototype.defaultDataProjection;
/** /**
* Geometry name to use when creating features. * Geometry name to use when creating features.
* @type {string|undefined} * @type {string|undefined}
* @api * @api stable
*/ */
olx.format.GeoJSONOptions.prototype.geometryName; olx.format.GeoJSONOptions.prototype.geometryName;
@@ -1371,7 +1371,7 @@ olx.format.PolylineOptions;
* The factor by which the coordinates values will be scaled. * The factor by which the coordinates values will be scaled.
* Default is `1e5`. * Default is `1e5`.
* @type {number} * @type {number}
* @api * @api stable
*/ */
olx.format.PolylineOptions.prototype.factor; olx.format.PolylineOptions.prototype.factor;
@@ -1386,7 +1386,7 @@ olx.format.TopoJSONOptions;
/** /**
* Default data projection. * Default data projection.
* @type {ol.proj.ProjectionLike} * @type {ol.proj.ProjectionLike}
* @api * @api stable
*/ */
olx.format.TopoJSONOptions.prototype.defaultDataProjection; olx.format.TopoJSONOptions.prototype.defaultDataProjection;
@@ -1418,7 +1418,7 @@ olx.format.KMLOptions;
/** /**
* Extract styles from the KML. Default is `true`. * Extract styles from the KML. Default is `true`.
* @type {boolean|undefined} * @type {boolean|undefined}
* @api * @api stable
*/ */
olx.format.KMLOptions.prototype.extractStyles; olx.format.KMLOptions.prototype.extractStyles;
@@ -1426,7 +1426,7 @@ olx.format.KMLOptions.prototype.extractStyles;
/** /**
* Default style. The default default style is the same as Google Earth. * Default style. The default default style is the same as Google Earth.
* @type {Array.<ol.style.Style>|undefined} * @type {Array.<ol.style.Style>|undefined}
* @api * @api stable
*/ */
olx.format.KMLOptions.prototype.defaultStyle; olx.format.KMLOptions.prototype.defaultStyle;
@@ -1448,7 +1448,7 @@ olx.format.GMLOptions;
/** /**
* Feature namespace. * Feature namespace.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.featureNS; olx.format.GMLOptions.prototype.featureNS;
@@ -1456,7 +1456,7 @@ olx.format.GMLOptions.prototype.featureNS;
/** /**
* Feature type to parse. * Feature type to parse.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.featureType; olx.format.GMLOptions.prototype.featureType;
@@ -1473,7 +1473,7 @@ olx.format.GMLOptions.prototype.srsName;
* Write gml:Surface instead of gml:Polygon elements. This also affects the * Write gml:Surface instead of gml:Polygon elements. This also affects the
* elements in multi-part geometries. Default is `false`. * elements in multi-part geometries. Default is `false`.
* @type {boolean|undefined} * @type {boolean|undefined}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.surface; olx.format.GMLOptions.prototype.surface;
@@ -1482,7 +1482,7 @@ olx.format.GMLOptions.prototype.surface;
* Write gml:Curve instead of gml:LineString elements. This also affects the * Write gml:Curve instead of gml:LineString elements. This also affects the
* elements in multi-part geometries. Default is `false`. * elements in multi-part geometries. Default is `false`.
* @type {boolean|undefined} * @type {boolean|undefined}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.curve; olx.format.GMLOptions.prototype.curve;
@@ -1491,7 +1491,7 @@ olx.format.GMLOptions.prototype.curve;
* Write gml:MultiCurve instead of gml:MultiLineString. Since the latter is * Write gml:MultiCurve instead of gml:MultiLineString. Since the latter is
* deprecated in GML 3, the default is `true`. * deprecated in GML 3, the default is `true`.
* @type {boolean|undefined} * @type {boolean|undefined}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.multiCurve; olx.format.GMLOptions.prototype.multiCurve;
@@ -1500,7 +1500,7 @@ olx.format.GMLOptions.prototype.multiCurve;
* Write gml:multiSurface instead of gml:MultiPolygon. Since the latter is * Write gml:multiSurface instead of gml:MultiPolygon. Since the latter is
* deprecated in GML 3, the default is `true`. * deprecated in GML 3, the default is `true`.
* @type {boolean|undefined} * @type {boolean|undefined}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.multiSurface; olx.format.GMLOptions.prototype.multiSurface;
@@ -1509,7 +1509,7 @@ olx.format.GMLOptions.prototype.multiSurface;
* Optional schemaLocation to use when writing out the GML, this will override * Optional schemaLocation to use when writing out the GML, this will override
* the default provided. * the default provided.
* @type {string|undefined} * @type {string|undefined}
* @api * @api stable
*/ */
olx.format.GMLOptions.prototype.schemaLocation; olx.format.GMLOptions.prototype.schemaLocation;
@@ -1529,7 +1529,7 @@ olx.format.GPXOptions;
* nodes from `wpt`, `rte` and `trk` can be processed, as those are * nodes from `wpt`, `rte` and `trk` can be processed, as those are
* directly mapped to a feature. * directly mapped to a feature.
* @type {function(ol.Feature, Node)} * @type {function(ol.Feature, Node)}
* @api * @api stable
*/ */
olx.format.GPXOptions.prototype.readExtensions; olx.format.GPXOptions.prototype.readExtensions;
@@ -1546,7 +1546,7 @@ olx.format.WFSOptions;
/** /**
* The namespace URI used for features. * The namespace URI used for features.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSOptions.prototype.featureNS; olx.format.WFSOptions.prototype.featureNS;
@@ -1554,7 +1554,7 @@ olx.format.WFSOptions.prototype.featureNS;
/** /**
* The feature type to parse. Only used for read operations. * The feature type to parse. Only used for read operations.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSOptions.prototype.featureType; olx.format.WFSOptions.prototype.featureType;
@@ -1563,7 +1563,7 @@ olx.format.WFSOptions.prototype.featureType;
* Optional schemaLocation to use for serialization, this will override the * Optional schemaLocation to use for serialization, this will override the
* default. * default.
* @type {string|undefined} * @type {string|undefined}
* @api * @api stable
*/ */
olx.format.WFSOptions.prototype.schemaLocation; olx.format.WFSOptions.prototype.schemaLocation;
@@ -1586,7 +1586,7 @@ olx.format.WFSWriteGetFeatureOptions;
/** /**
* The namespace URI used for features. * The namespace URI used for features.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSWriteGetFeatureOptions.prototype.featureNS; olx.format.WFSWriteGetFeatureOptions.prototype.featureNS;
@@ -1594,7 +1594,7 @@ olx.format.WFSWriteGetFeatureOptions.prototype.featureNS;
/** /**
* The prefix for the feature namespace. * The prefix for the feature namespace.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSWriteGetFeatureOptions.prototype.featurePrefix; olx.format.WFSWriteGetFeatureOptions.prototype.featurePrefix;
@@ -1602,7 +1602,7 @@ olx.format.WFSWriteGetFeatureOptions.prototype.featurePrefix;
/** /**
* The feature type names. * The feature type names.
* @type {Array.<string>} * @type {Array.<string>}
* @api * @api stable
*/ */
olx.format.WFSWriteGetFeatureOptions.prototype.featureTypes; olx.format.WFSWriteGetFeatureOptions.prototype.featureTypes;
@@ -1619,7 +1619,7 @@ olx.format.WFSWriteGetFeatureOptions.prototype.srsName;
/** /**
* Handle. * Handle.
* @type {string|undefined} * @type {string|undefined}
* @api * @api stable
*/ */
olx.format.WFSWriteGetFeatureOptions.prototype.handle; olx.format.WFSWriteGetFeatureOptions.prototype.handle;
@@ -1627,7 +1627,7 @@ olx.format.WFSWriteGetFeatureOptions.prototype.handle;
/** /**
* Output format. * Output format.
* @type {string|undefined} * @type {string|undefined}
* @api * @api stable
*/ */
olx.format.WFSWriteGetFeatureOptions.prototype.outputFormat; olx.format.WFSWriteGetFeatureOptions.prototype.outputFormat;
@@ -1635,7 +1635,7 @@ olx.format.WFSWriteGetFeatureOptions.prototype.outputFormat;
/** /**
* Maximum number of features to fetch. * Maximum number of features to fetch.
* @type {number|undefined} * @type {number|undefined}
* @api * @api stable
*/ */
olx.format.WFSWriteGetFeatureOptions.prototype.maxFeatures; olx.format.WFSWriteGetFeatureOptions.prototype.maxFeatures;
@@ -1664,7 +1664,7 @@ olx.format.WFSWriteGetFeatureOptions.prototype.bbox;
* handle: (string|undefined), * handle: (string|undefined),
* nativeElements: Array.<Object>, * nativeElements: Array.<Object>,
* gmlOptions: (olx.format.GMLOptions|undefined)}} * gmlOptions: (olx.format.GMLOptions|undefined)}}
* @api * @api stable
*/ */
olx.format.WFSWriteTransactionOptions; olx.format.WFSWriteTransactionOptions;
@@ -1672,7 +1672,7 @@ olx.format.WFSWriteTransactionOptions;
/** /**
* The namespace URI used for features. * The namespace URI used for features.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSWriteTransactionOptions.prototype.featureNS; olx.format.WFSWriteTransactionOptions.prototype.featureNS;
@@ -1680,7 +1680,7 @@ olx.format.WFSWriteTransactionOptions.prototype.featureNS;
/** /**
* The prefix for the feature namespace. * The prefix for the feature namespace.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSWriteTransactionOptions.prototype.featurePrefix; olx.format.WFSWriteTransactionOptions.prototype.featurePrefix;
@@ -1688,7 +1688,7 @@ olx.format.WFSWriteTransactionOptions.prototype.featurePrefix;
/** /**
* The feature type name. * The feature type name.
* @type {string} * @type {string}
* @api * @api stable
*/ */
olx.format.WFSWriteTransactionOptions.prototype.featureType; olx.format.WFSWriteTransactionOptions.prototype.featureType;
@@ -1705,7 +1705,7 @@ olx.format.WFSWriteTransactionOptions.prototype.srsName;
/** /**
* Handle. * Handle.
* @type {string|undefined} * @type {string|undefined}
* @api * @api stable
*/ */
olx.format.WFSWriteTransactionOptions.prototype.handle; olx.format.WFSWriteTransactionOptions.prototype.handle;
@@ -1721,7 +1721,7 @@ olx.format.WFSWriteTransactionOptions.prototype.nativeElements;
/** /**
* GML options for the WFS transaction writer. * GML options for the WFS transaction writer.
* @type {olx.format.GMLOptions|undefined} * @type {olx.format.GMLOptions|undefined}
* @api * @api stable
*/ */
olx.format.WFSWriteTransactionOptions.prototype.gmlOptions; olx.format.WFSWriteTransactionOptions.prototype.gmlOptions;
@@ -1737,7 +1737,7 @@ olx.format.WKTOptions;
* Whether to split GeometryCollections into * Whether to split GeometryCollections into
* multiple features on reading. Default is `false`. * multiple features on reading. Default is `false`.
* @type {boolean|undefined} * @type {boolean|undefined}
* @api * @api stable
*/ */
olx.format.WKTOptions.prototype.splitCollection; olx.format.WKTOptions.prototype.splitCollection;

View File

@@ -16,6 +16,7 @@ goog.require('ol.proj');
* file formats. See the documentation for each format for more details. * file formats. See the documentation for each format for more details.
* *
* @constructor * @constructor
* @api stable
*/ */
ol.format.Feature = function() { ol.format.Feature = function() {

View File

@@ -28,7 +28,7 @@ goog.require('ol.proj');
* @constructor * @constructor
* @extends {ol.format.JSONFeature} * @extends {ol.format.JSONFeature}
* @param {olx.format.GeoJSONOptions=} opt_options Options. * @param {olx.format.GeoJSONOptions=} opt_options Options.
* @api * @api stable
*/ */
ol.format.GeoJSON = function(opt_options) { ol.format.GeoJSON = function(opt_options) {
@@ -350,7 +350,7 @@ ol.format.GeoJSON.prototype.getExtensions = function() {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature. * @return {ol.Feature} Feature.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.readFeature; ol.format.GeoJSON.prototype.readFeature;
@@ -363,7 +363,7 @@ ol.format.GeoJSON.prototype.readFeature;
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.readFeatures; ol.format.GeoJSON.prototype.readFeatures;
@@ -426,7 +426,7 @@ ol.format.GeoJSON.prototype.readFeaturesFromObject = function(
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.geom.Geometry} Geometry. * @return {ol.geom.Geometry} Geometry.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.readGeometry; ol.format.GeoJSON.prototype.readGeometry;
@@ -447,7 +447,7 @@ ol.format.GeoJSON.prototype.readGeometryFromObject = function(
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.readProjection; ol.format.GeoJSON.prototype.readProjection;
@@ -484,7 +484,7 @@ ol.format.GeoJSON.prototype.readProjectionFromObject = function(object) {
* @param {ol.Feature} feature Feature. * @param {ol.Feature} feature Feature.
* @param {olx.format.WriteOptions} options Write options. * @param {olx.format.WriteOptions} options Write options.
* @return {GeoJSONFeature} GeoJSON. * @return {GeoJSONFeature} GeoJSON.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.writeFeature; ol.format.GeoJSON.prototype.writeFeature;
@@ -523,7 +523,7 @@ ol.format.GeoJSON.prototype.writeFeatureObject = function(
* @param {Array.<ol.Feature>} features Features. * @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions} options Write options. * @param {olx.format.WriteOptions} options Write options.
* @return {GeoJSONObject} GeoJSON. * @return {GeoJSONObject} GeoJSON.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.writeFeatures; ol.format.GeoJSON.prototype.writeFeatures;
@@ -552,7 +552,7 @@ ol.format.GeoJSON.prototype.writeFeaturesObject =
* @param {ol.geom.Geometry} geometry Geometry. * @param {ol.geom.Geometry} geometry Geometry.
* @param {olx.format.WriteOptions} options Write options. * @param {olx.format.WriteOptions} options Write options.
* @return {GeoJSONGeometry|GeoJSONGeometryCollection} GeoJSON. * @return {GeoJSONGeometry|GeoJSONGeometryCollection} GeoJSON.
* @api * @api stable
*/ */
ol.format.GeoJSON.prototype.writeGeometry; ol.format.GeoJSON.prototype.writeGeometry;

View File

@@ -36,7 +36,7 @@ goog.require('ol.xml');
* @param {olx.format.GMLOptions=} opt_options * @param {olx.format.GMLOptions=} opt_options
* Optional configuration object. * Optional configuration object.
* @extends {ol.format.XMLFeature} * @extends {ol.format.XMLFeature}
* @api * @api stable
*/ */
ol.format.GML = function(opt_options) { ol.format.GML = function(opt_options) {
var options = /** @type {olx.format.GMLOptions} */ var options = /** @type {olx.format.GMLOptions} */
@@ -1056,7 +1056,7 @@ ol.format.GML.prototype.readGeometryFromNode = function(node, opt_options) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Options. * @param {olx.format.ReadOptions=} opt_options Options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.GML.prototype.readFeatures; ol.format.GML.prototype.readFeatures;
@@ -1725,7 +1725,7 @@ ol.format.GML.prototype.writeGeometryNode = function(geometry, opt_options) {
* @param {Array.<ol.Feature>} features Features. * @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions=} opt_options Options. * @param {olx.format.WriteOptions=} opt_options Options.
* @return {Node} Result. * @return {Node} Result.
* @api * @api stable
*/ */
ol.format.GML.prototype.writeFeatures; ol.format.GML.prototype.writeFeatures;

View File

@@ -23,7 +23,7 @@ goog.require('ol.xml');
* @constructor * @constructor
* @extends {ol.format.XMLFeature} * @extends {ol.format.XMLFeature}
* @param {olx.format.GPXOptions=} opt_options Options. * @param {olx.format.GPXOptions=} opt_options Options.
* @api * @api stable
*/ */
ol.format.GPX = function(opt_options) { ol.format.GPX = function(opt_options) {
@@ -429,7 +429,7 @@ ol.format.GPX.prototype.handleReadExtensions_ = function(features) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature. * @return {ol.Feature} Feature.
* @api * @api stable
*/ */
ol.format.GPX.prototype.readFeature; ol.format.GPX.prototype.readFeature;
@@ -462,7 +462,7 @@ ol.format.GPX.prototype.readFeatureFromNode = function(node, opt_options) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.GPX.prototype.readFeatures; ol.format.GPX.prototype.readFeatures;
@@ -496,7 +496,7 @@ ol.format.GPX.prototype.readFeaturesFromNode = function(node, opt_options) {
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.GPX.prototype.readProjection; ol.format.GPX.prototype.readProjection;
@@ -870,7 +870,7 @@ ol.format.GPX.GPX_SERIALIZERS_ = ol.xml.makeStructureNS(
* @param {Array.<ol.Feature>} features Features. * @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions=} opt_options Write options. * @param {olx.format.WriteOptions=} opt_options Write options.
* @return {Node} Result. * @return {Node} Result.
* @api * @api stable
*/ */
ol.format.GPX.prototype.writeFeatures; ol.format.GPX.prototype.writeFeatures;

View File

@@ -64,7 +64,7 @@ ol.format.KMLGxTrackObject_;
* @constructor * @constructor
* @extends {ol.format.XMLFeature} * @extends {ol.format.XMLFeature}
* @param {olx.format.KMLOptions=} opt_options Options. * @param {olx.format.KMLOptions=} opt_options Options.
* @api * @api stable
*/ */
ol.format.KML = function(opt_options) { ol.format.KML = function(opt_options) {
@@ -1509,7 +1509,7 @@ ol.format.KML.prototype.readSharedStyleMap_ = function(node, objectStack) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature. * @return {ol.Feature} Feature.
* @api * @api stable
*/ */
ol.format.KML.prototype.readFeature; ol.format.KML.prototype.readFeature;
@@ -1540,7 +1540,7 @@ ol.format.KML.prototype.readFeatureFromNode = function(node, opt_options) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.KML.prototype.readFeatures; ol.format.KML.prototype.readFeatures;
@@ -1591,7 +1591,7 @@ ol.format.KML.prototype.readFeaturesFromNode = function(node, opt_options) {
/** /**
* @param {Document|Node|string} source Souce. * @param {Document|Node|string} source Souce.
* @return {string|undefined} Name. * @return {string|undefined} Name.
* @api * @api stable
*/ */
ol.format.KML.prototype.readName = function(source) { ol.format.KML.prototype.readName = function(source) {
if (ol.xml.isDocument(source)) { if (ol.xml.isDocument(source)) {
@@ -1661,7 +1661,7 @@ ol.format.KML.prototype.readNameFromNode = function(node) {
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.KML.prototype.readProjection; ol.format.KML.prototype.readProjection;
@@ -2526,7 +2526,7 @@ ol.format.KML.OUTER_BOUNDARY_NODE_FACTORY_ =
* @param {Array.<ol.Feature>} features Features. * @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions=} opt_options Options. * @param {olx.format.WriteOptions=} opt_options Options.
* @return {Node} Result. * @return {Node} Result.
* @api * @api stable
*/ */
ol.format.KML.prototype.writeFeatures; ol.format.KML.prototype.writeFeatures;

View File

@@ -23,7 +23,7 @@ goog.require('ol.xml');
* *
* @constructor * @constructor
* @extends {ol.format.XMLFeature} * @extends {ol.format.XMLFeature}
* @api * @api stable
*/ */
ol.format.OSMXML = function() { ol.format.OSMXML = function() {
goog.base(this); goog.base(this);
@@ -201,7 +201,7 @@ ol.format.OSMXML.NODE_PARSERS_ = ol.xml.makeParsersNS(
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.OSMXML.prototype.readFeatures; ol.format.OSMXML.prototype.readFeatures;
@@ -231,7 +231,7 @@ ol.format.OSMXML.prototype.readFeaturesFromNode = function(node, opt_options) {
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.OSMXML.prototype.readProjection; ol.format.OSMXML.prototype.readProjection;

View File

@@ -15,7 +15,7 @@ goog.require('ol.proj');
* @extends {ol.format.TextFeature} * @extends {ol.format.TextFeature}
* @param {olx.format.PolylineOptions=} opt_options * @param {olx.format.PolylineOptions=} opt_options
* Optional configuration object. * Optional configuration object.
* @api * @api stable
*/ */
ol.format.Polyline = function(opt_options) { ol.format.Polyline = function(opt_options) {
@@ -256,7 +256,7 @@ ol.format.Polyline.encodeUnsignedInteger = function(num) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature. * @return {ol.Feature} Feature.
* @api * @api stable
*/ */
ol.format.Polyline.prototype.readFeature; ol.format.Polyline.prototype.readFeature;
@@ -278,7 +278,7 @@ ol.format.Polyline.prototype.readFeatureFromText = function(text, opt_options) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.Polyline.prototype.readFeatures; ol.format.Polyline.prototype.readFeatures;
@@ -300,7 +300,7 @@ ol.format.Polyline.prototype.readFeaturesFromText =
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.geom.Geometry} Geometry. * @return {ol.geom.Geometry} Geometry.
* @api * @api stable
*/ */
ol.format.Polyline.prototype.readGeometry; ol.format.Polyline.prototype.readGeometry;
@@ -327,7 +327,7 @@ ol.format.Polyline.prototype.readGeometryFromText =
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.Polyline.prototype.readProjection; ol.format.Polyline.prototype.readProjection;
@@ -371,7 +371,7 @@ ol.format.Polyline.prototype.writeFeaturesText =
* @param {ol.geom.Geometry} geometry Geometry. * @param {ol.geom.Geometry} geometry Geometry.
* @param {olx.format.WriteOptions=} opt_options Write options. * @param {olx.format.WriteOptions=} opt_options Write options.
* @return {string} Geometry. * @return {string} Geometry.
* @api * @api stable
*/ */
ol.format.Polyline.prototype.writeGeometry; ol.format.Polyline.prototype.writeGeometry;

View File

@@ -22,7 +22,7 @@ goog.require('ol.proj');
* @constructor * @constructor
* @extends {ol.format.JSONFeature} * @extends {ol.format.JSONFeature}
* @param {olx.format.TopoJSONOptions=} opt_options Options. * @param {olx.format.TopoJSONOptions=} opt_options Options.
* @api * @api stable
*/ */
ol.format.TopoJSON = function(opt_options) { ol.format.TopoJSON = function(opt_options) {
@@ -276,7 +276,7 @@ ol.format.TopoJSON.readFeatureFromGeometry_ = function(object, arcs,
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.TopoJSON.prototype.readFeatures; ol.format.TopoJSON.prototype.readFeatures;
@@ -387,7 +387,7 @@ ol.format.TopoJSON.transformVertex_ = function(vertex, scale, translate) {
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} object Source. * @param {ArrayBuffer|Document|Node|Object|string} object Source.
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.TopoJSON.prototype.readProjection = function(object) { ol.format.TopoJSON.prototype.readProjection = function(object) {
return this.defaultDataProjection; return this.defaultDataProjection;

View File

@@ -22,7 +22,7 @@ goog.require('ol.xml');
* @param {olx.format.WFSOptions=} opt_options * @param {olx.format.WFSOptions=} opt_options
* Optional configuration object. * Optional configuration object.
* @extends {ol.format.XMLFeature} * @extends {ol.format.XMLFeature}
* @api * @api stable
*/ */
ol.format.WFS = function(opt_options) { ol.format.WFS = function(opt_options) {
var options = /** @type {olx.format.WFSOptions} */ var options = /** @type {olx.format.WFSOptions} */
@@ -70,7 +70,7 @@ ol.format.WFS.xmlns = 'http://www.w3.org/2000/xmlns/';
* Number of features; bounds/extent. * Number of features; bounds/extent.
* @typedef {{numberOfFeatures: number, * @typedef {{numberOfFeatures: number,
* bounds: ol.Extent}} * bounds: ol.Extent}}
* @api * @api stable
*/ */
ol.format.WFS.FeatureCollectionMetadata; ol.format.WFS.FeatureCollectionMetadata;
@@ -81,7 +81,7 @@ ol.format.WFS.FeatureCollectionMetadata;
* totalInserted: number, * totalInserted: number,
* totalUpdated: number, * totalUpdated: number,
* insertIds: Array.<string>}} * insertIds: Array.<string>}}
* @api * @api stable
*/ */
ol.format.WFS.TransactionResponse; ol.format.WFS.TransactionResponse;
@@ -102,7 +102,7 @@ ol.format.WFS.schemaLocation_ = 'http://www.opengis.net/wfs ' +
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.WFS.prototype.readFeatures; ol.format.WFS.prototype.readFeatures;
@@ -130,7 +130,7 @@ ol.format.WFS.prototype.readFeaturesFromNode = function(node, opt_options) {
/** /**
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.format.WFS.TransactionResponse|undefined} Transaction response. * @return {ol.format.WFS.TransactionResponse|undefined} Transaction response.
* @api * @api stable
*/ */
ol.format.WFS.prototype.readTransactionResponse = function(source) { ol.format.WFS.prototype.readTransactionResponse = function(source) {
if (ol.xml.isDocument(source)) { if (ol.xml.isDocument(source)) {
@@ -152,7 +152,7 @@ ol.format.WFS.prototype.readTransactionResponse = function(source) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {ol.format.WFS.FeatureCollectionMetadata|undefined} * @return {ol.format.WFS.FeatureCollectionMetadata|undefined}
* FeatureCollection metadata. * FeatureCollection metadata.
* @api * @api stable
*/ */
ol.format.WFS.prototype.readFeatureCollectionMetadata = function(source) { ol.format.WFS.prototype.readFeatureCollectionMetadata = function(source) {
if (ol.xml.isDocument(source)) { if (ol.xml.isDocument(source)) {
@@ -601,7 +601,7 @@ ol.format.WFS.writeGetFeature_ = function(node, featureTypes, objectStack) {
/** /**
* @param {olx.format.WFSWriteGetFeatureOptions} options Options. * @param {olx.format.WFSWriteGetFeatureOptions} options Options.
* @return {Node} Result. * @return {Node} Result.
* @api * @api stable
*/ */
ol.format.WFS.prototype.writeGetFeature = function(options) { ol.format.WFS.prototype.writeGetFeature = function(options) {
var node = ol.xml.createElementNS('http://www.opengis.net/wfs', var node = ol.xml.createElementNS('http://www.opengis.net/wfs',
@@ -653,7 +653,7 @@ ol.format.WFS.prototype.writeGetFeature = function(options) {
* @param {Array.<ol.Feature>} deletes The features to delete. * @param {Array.<ol.Feature>} deletes The features to delete.
* @param {olx.format.WFSWriteTransactionOptions} options Write options. * @param {olx.format.WFSWriteTransactionOptions} options Write options.
* @return {Node} Result. * @return {Node} Result.
* @api * @api stable
*/ */
ol.format.WFS.prototype.writeTransaction = function(inserts, updates, deletes, ol.format.WFS.prototype.writeTransaction = function(inserts, updates, deletes,
options) { options) {
@@ -713,7 +713,7 @@ ol.format.WFS.prototype.writeTransaction = function(inserts, updates, deletes,
* @function * @function
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @return {?ol.proj.Projection} Projection. * @return {?ol.proj.Projection} Projection.
* @api * @api stable
*/ */
ol.format.WFS.prototype.readProjection; ol.format.WFS.prototype.readProjection;

View File

@@ -21,7 +21,7 @@ goog.require('ol.geom.Polygon');
* @constructor * @constructor
* @extends {ol.format.TextFeature} * @extends {ol.format.TextFeature}
* @param {olx.format.WKTOptions=} opt_options Options. * @param {olx.format.WKTOptions=} opt_options Options.
* @api * @api stable
*/ */
ol.format.WKT = function(opt_options) { ol.format.WKT = function(opt_options) {
@@ -211,7 +211,7 @@ ol.format.WKT.prototype.parse_ = function(wkt) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.Feature} Feature. * @return {ol.Feature} Feature.
* @api * @api stable
*/ */
ol.format.WKT.prototype.readFeature; ol.format.WKT.prototype.readFeature;
@@ -237,7 +237,7 @@ ol.format.WKT.prototype.readFeatureFromText = function(text, opt_options) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {Array.<ol.Feature>} Features. * @return {Array.<ol.Feature>} Features.
* @api * @api stable
*/ */
ol.format.WKT.prototype.readFeatures; ol.format.WKT.prototype.readFeatures;
@@ -272,7 +272,7 @@ ol.format.WKT.prototype.readFeaturesFromText = function(text, opt_options) {
* @param {ArrayBuffer|Document|Node|Object|string} source Source. * @param {ArrayBuffer|Document|Node|Object|string} source Source.
* @param {olx.format.ReadOptions=} opt_options Read options. * @param {olx.format.ReadOptions=} opt_options Read options.
* @return {ol.geom.Geometry} Geometry. * @return {ol.geom.Geometry} Geometry.
* @api * @api stable
*/ */
ol.format.WKT.prototype.readGeometry; ol.format.WKT.prototype.readGeometry;
@@ -306,7 +306,7 @@ ol.format.WKT.prototype.readProjectionFromText = function(text) {
* @param {ol.Feature} feature Feature. * @param {ol.Feature} feature Feature.
* @param {olx.format.WriteOptions=} opt_options Write options. * @param {olx.format.WriteOptions=} opt_options Write options.
* @return {string} WKT string. * @return {string} WKT string.
* @api * @api stable
*/ */
ol.format.WKT.prototype.writeFeature; ol.format.WKT.prototype.writeFeature;
@@ -330,7 +330,7 @@ ol.format.WKT.prototype.writeFeatureText = function(feature, opt_options) {
* @param {Array.<ol.Feature>} features Features. * @param {Array.<ol.Feature>} features Features.
* @param {olx.format.WriteOptions=} opt_options Write options. * @param {olx.format.WriteOptions=} opt_options Write options.
* @return {string} WKT string. * @return {string} WKT string.
* @api * @api stable
*/ */
ol.format.WKT.prototype.writeFeatures; ol.format.WKT.prototype.writeFeatures;
@@ -357,7 +357,7 @@ ol.format.WKT.prototype.writeFeaturesText = function(features, opt_options) {
* @function * @function
* @param {ol.geom.Geometry} geometry Geometry. * @param {ol.geom.Geometry} geometry Geometry.
* @return {string} WKT string. * @return {string} WKT string.
* @api * @api stable
*/ */
ol.format.WKT.prototype.writeGeometry; ol.format.WKT.prototype.writeGeometry;