From 95638a2000a35dc58723d553084fa2c9989b7d62 Mon Sep 17 00:00:00 2001 From: Nick Peihl Date: Tue, 5 Feb 2019 18:52:04 -0800 Subject: [PATCH] Fix topojson featurecollection path (#30173) --- .../plugins/maps/public/shared/layers/sources/vector_source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/maps/public/shared/layers/sources/vector_source.js b/x-pack/plugins/maps/public/shared/layers/sources/vector_source.js index fd9f76040e05..c1a8f94411a1 100644 --- a/x-pack/plugins/maps/public/shared/layers/sources/vector_source.js +++ b/x-pack/plugins/maps/public/shared/layers/sources/vector_source.js @@ -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); }