mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
Add back the selected feature layer
This commit is contained in:
parent
fc930d19f6
commit
908d712144
1 changed files with 12 additions and 0 deletions
|
@ -151,6 +151,18 @@ const MapTractLayers = ({
|
||||||
minzoom={constants.GLOBAL_MIN_ZOOM_FEATURE_BORDER}
|
minzoom={constants.GLOBAL_MIN_ZOOM_FEATURE_BORDER}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{/* High zoom layer (dynamic) - border styling around the selected feature */}
|
||||||
|
<Layer
|
||||||
|
id={constants.SELECTED_FEATURE_BORDER_LAYER_ID}
|
||||||
|
source-layer={constants.SCORE_SOURCE_LAYER}
|
||||||
|
filter={filter} // This filter filters out all other features except the selected feature.
|
||||||
|
type='line'
|
||||||
|
paint={{
|
||||||
|
'line-color': constants.SELECTED_FEATURE_BORDER_COLOR,
|
||||||
|
'line-width': constants.SELECTED_FEATURE_BORDER_WIDTH,
|
||||||
|
}}
|
||||||
|
minzoom={constants.GLOBAL_MIN_ZOOM_HIGH}
|
||||||
|
/>
|
||||||
</Source>
|
</Source>
|
||||||
</>
|
</>
|
||||||
): (
|
): (
|
||||||
|
|
Loading…
Add table
Reference in a new issue