diff --git a/src/components/map/FeatureLayerPopup.jsx b/src/components/map/FeatureLayerPopup.jsx index 2d0eacb3..516fc920 100644 --- a/src/components/map/FeatureLayerPopup.jsx +++ b/src/components/map/FeatureLayerPopup.jsx @@ -1,6 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' import LayerIcon from '../icons/LayerIcon' +import {latest, expression, function as styleFunction} from '@mapbox/mapbox-gl-style-spec' function groupFeaturesBySourceLayer(features) { const sources = {} @@ -36,21 +37,72 @@ class FeatureLayerPopup extends React.Component { const items = Object.keys(sources).map(vectorLayerId => { const layers = sources[vectorLayerId].map((feature, idx) => { - return