Fix topojson featurecollection path (#30173)
This commit is contained in:
parent
c20bb3a0d4
commit
95638a2000
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue