How to add more border width to the selected shape with MapboxGL.FillLayer component #2899
Replies: 1 comment
-
You simply add a Here's an example: <MapboxGL.ShapeSource
id="selectedPolygon"
shape={standData || EMPTY_FEATURE_COLLECTION}
>
<MapboxGL.FillLayer
id="selectedPolygonStroke"
aboveLayerID="polygonFill"
minZoomLevel={POLYGON_ZOOM_MINIMUM - 1}
style={{
fillAntialias: true,
fillOpacity: 0.5,
fillColor: "#ff0000",
}}
/>
<MapboxGL.LineLayer
id="selectedPolygonLine"
aboveLayerID="polygonFill"
visibility={isSelected ? 'visible' : 'none'}
style={{
lineColor: "#ff0000",
lineWidth: 2,
}}
/>
</MapboxGL.ShapeSource> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to make this type of selected shape border (white border)
Beta Was this translation helpful? Give feedback.
All reactions