Skip to content

Commit

Permalink
Fix typecheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
adube committed Nov 4, 2019
1 parent 47787d7 commit f15821c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/format/ArcGISGeoJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import olFormatGeoJSON from 'ol/format/GeoJSON.js';
* // Properties for ArcGISGeoJSON
* @property {Array<string>} [layers] If set, only features of the given layers will be returned by the format when read.
* // Properties from GeoJSON
* @property {import("../proj.js").ProjectionLike} [dataProjection='EPSG:4326'] Default data projection.
* @property {import("../proj.js").ProjectionLike} [featureProjection] Projection for features read or
* @property {import("ol/proj.js").ProjectionLike} [dataProjection='EPSG:4326'] Default data projection.
* @property {import("ol/proj.js").ProjectionLike} [featureProjection] Projection for features read or
* written by the format. Options passed to read or write methods will take precedence.
* @property {string} [geometryName] Geometry name to use when creating features.
* @property {boolean} [extractGeometryName=false] Certain GeoJSON providers include
Expand Down Expand Up @@ -64,11 +64,15 @@ class ArcGISGeoJSON extends olFormatGeoJSON {
}

/**
* @inheritDoc
* @param {Object} object Object.
* @param {import("ol/format/Feature.js").ReadOptions=} opt_options Read options.
* @protected
* @return {Array<import('ol/Feature.js').default<import("ol/geom/Geometry.js").default>>} Features.
* @override
*/
readFeaturesFromObject(object, opt_options) {
const geoJSONObject = /** @type {GeoJSONObject} */ (object);
/** @type {Array<import("../Feature.js").default>} */
/** @type {Array<import('ol/Feature.js').default<import("ol/geom/Geometry.js").default>>} */
const features = [];
let geoJSONFeatures = null;
if (geoJSONObject['type'] === 'FeatureCollection') {
Expand Down

0 comments on commit f15821c

Please sign in to comment.