Fix topojson featurecollection path (#30173)

This commit is contained in:
Nick Peihl 2019-02-05 18:52:04 -08:00 committed by GitHub
parent c20bb3a0d4
commit 95638a2000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ export class AbstractVectorSource extends AbstractSource {
}
if (format === 'topojson') {
const features = _.get(fetchedJson, featureCollectionPath);
const features = _.get(fetchedJson, `objects.${featureCollectionPath}`);
return topojson.feature(fetchedJson, features);
}