Skip to content

Commit

Permalink
[Maps][File upload] Removing bbox from parsed file pending upstream l…
Browse files Browse the repository at this point in the history
…ib fix (#45194) (#45230)
  • Loading branch information
Aaron Caldwell authored Sep 10, 2019
1 parent 0f634b7 commit a3fb47d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ import rewind from 'geojson-rewind';

export function geoJsonCleanAndValidate(parsedFile) {

// Remove bbox property pending fix of bbox parsing issue in jsts lib
const { bbox, ...handledGeoJsonProperties } = parsedFile; // eslint-disable-line no-unused-vars

const reader = new jsts.io.GeoJSONReader();
const geoJson = reader.read(parsedFile);
const geoJson = reader.read(handledGeoJsonProperties);
const isSingleFeature = parsedFile.type === 'Feature';
const features = isSingleFeature
? [{ ...geoJson }]
Expand Down

0 comments on commit a3fb47d

Please sign in to comment.