Merge pull request #3178 from fredj/geojson-externs
GeoJSON externs fixes
This commit is contained in:
+18
-14
@@ -13,6 +13,12 @@
|
|||||||
var GeoJSONObject = function() {};
|
var GeoJSONObject = function() {};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {!Array.<number>|undefined}
|
||||||
|
*/
|
||||||
|
GeoJSONObject.prototype.bbox;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
@@ -28,11 +34,17 @@ GeoJSONObject.prototype.crs;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {GeoJSONObject}
|
|
||||||
*/
|
*/
|
||||||
var GeoJSONCRS = function() {};
|
var GeoJSONCRS = function() {};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CRS type. One of `link` or `name`.
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
GeoJSONCRS.prototype.type;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: remove GeoJSONCRSCode when http://jira.codehaus.org/browse/GEOS-5996
|
* TODO: remove GeoJSONCRSCode when http://jira.codehaus.org/browse/GEOS-5996
|
||||||
* is fixed and widely deployed.
|
* is fixed and widely deployed.
|
||||||
@@ -110,12 +122,6 @@ GeoJSONGeometryCollection.prototype.geometries;
|
|||||||
var GeoJSONFeature = function() {};
|
var GeoJSONFeature = function() {};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {!Array.<number>|undefined}
|
|
||||||
*/
|
|
||||||
GeoJSONFeature.prototype.bbox;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {GeoJSONGeometry}
|
* @type {GeoJSONGeometry}
|
||||||
*/
|
*/
|
||||||
@@ -148,16 +154,9 @@ var GeoJSONFeatureCollection = function() {};
|
|||||||
GeoJSONFeatureCollection.prototype.features;
|
GeoJSONFeatureCollection.prototype.features;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @type {!Array.<number>|undefined}
|
|
||||||
*/
|
|
||||||
GeoJSONFeatureCollection.prototype.bbox;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {GeoJSONObject}
|
|
||||||
*/
|
*/
|
||||||
var GeoJSONLink = function() {};
|
var GeoJSONLink = function() {};
|
||||||
|
|
||||||
@@ -166,3 +165,8 @@ var GeoJSONLink = function() {};
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
GeoJSONLink.prototype.href;
|
GeoJSONLink.prototype.href;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
GeoJSONLink.prototype.type;
|
||||||
|
|||||||
+3
-3
@@ -3602,7 +3602,7 @@ olx.source.FormatVectorOptions.prototype.projection;
|
|||||||
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
* @typedef {{attributions: (Array.<ol.Attribution>|undefined),
|
||||||
* defaultProjection: ol.proj.ProjectionLike,
|
* defaultProjection: ol.proj.ProjectionLike,
|
||||||
* logo: (string|olx.LogoOptions|undefined),
|
* logo: (string|olx.LogoOptions|undefined),
|
||||||
* object: (GeoJSONObject|undefined),
|
* object: (GeoJSONFeature|GeoJSONFeatureCollection|undefined),
|
||||||
* projection: ol.proj.ProjectionLike,
|
* projection: ol.proj.ProjectionLike,
|
||||||
* text: (string|undefined),
|
* text: (string|undefined),
|
||||||
* url: (string|undefined),
|
* url: (string|undefined),
|
||||||
@@ -3637,8 +3637,8 @@ olx.source.GeoJSONOptions.prototype.logo;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Object.
|
* GeoJSON feature or feature collection.
|
||||||
* @type {GeoJSONObject|undefined}
|
* @type {GeoJSONFeature|GeoJSONFeatureCollection|undefined}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
olx.source.GeoJSONOptions.prototype.object;
|
olx.source.GeoJSONOptions.prototype.object;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ ol.format.GeoJSON.EXTENSIONS_ = ['.geojson'];
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {GeoJSONObject} object Object.
|
* @param {GeoJSONGeometry|GeoJSONGeometryCollection} object Object.
|
||||||
* @param {olx.format.ReadOptions=} opt_options Read options.
|
* @param {olx.format.ReadOptions=} opt_options Read options.
|
||||||
* @private
|
* @private
|
||||||
* @return {ol.geom.Geometry} Geometry.
|
* @return {ol.geom.Geometry} Geometry.
|
||||||
@@ -92,7 +92,7 @@ ol.format.GeoJSON.readGeometryCollectionGeometry_ = function(
|
|||||||
goog.asserts.assert(object.type == 'GeometryCollection');
|
goog.asserts.assert(object.type == 'GeometryCollection');
|
||||||
var geometries = goog.array.map(object.geometries,
|
var geometries = goog.array.map(object.geometries,
|
||||||
/**
|
/**
|
||||||
* @param {GeoJSONObject} geometry Geometry.
|
* @param {GeoJSONGeometry} geometry Geometry.
|
||||||
* @return {ol.geom.Geometry} geometry Geometry.
|
* @return {ol.geom.Geometry} geometry Geometry.
|
||||||
*/
|
*/
|
||||||
function(geometry) {
|
function(geometry) {
|
||||||
|
|||||||
Reference in New Issue
Block a user