More precise ol.format.GeoJSON.readGeometry_ param type

This commit is contained in:
Frederic Junod
2015-01-27 11:54:43 +01:00
parent f1c0072bd0
commit d640accdc8

View File

@@ -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) {