From 0f272e233badc64680888488cfd6e75b082116f1 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Mon, 9 Jan 2017 23:04:08 +0100 Subject: [PATCH] Rename to FeatureLayerPopup --- .../{FeatureLayerTable.jsx => FeatureLayerPopup.jsx} | 10 ++++++---- src/components/map/MapboxGlMap.jsx | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) rename src/components/map/{FeatureLayerTable.jsx => FeatureLayerPopup.jsx} (87%) diff --git a/src/components/map/FeatureLayerTable.jsx b/src/components/map/FeatureLayerPopup.jsx similarity index 87% rename from src/components/map/FeatureLayerTable.jsx rename to src/components/map/FeatureLayerPopup.jsx index 56236d2a..31dc2d67 100644 --- a/src/components/map/FeatureLayerTable.jsx +++ b/src/components/map/FeatureLayerPopup.jsx @@ -31,13 +31,15 @@ function groupFeaturesBySourceLayer(features) { return sources } -class FeatureLayerTable extends React.Component { +class FeatureLayerPopup extends React.Component { render() { const sources = groupFeaturesBySourceLayer(this.props.features) const items = Object.keys(sources).map(vectorLayerId => { - const layers = sources[vectorLayerId].map(feature => { - return