nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 699 forks source link

How to add more border width to the selected shape with MapboxGL.FillLayer component #1731

Closed Dev-mahediali closed 1 year ago

Dev-mahediali commented 1 year ago

Screenshot 2023-06-06 at 5 21 21 PM

image

<MapboxGL.ShapeSource id="selectedPolygon" shape={standData || EMPTY_FEATURE_COLLECTION}

<MapboxGL.FillLayer id="selectedPolygonFill" aboveLayerID="polygonFill" minZoomLevel={POLYGON_ZOOM_MINIMUM - 1} filter={[">=", ["zoom"], POLYGON_ZOOM_MINIMUM]} style={{ fillAntialias: true, fillOpacity: 0.5, fillOutlineColor: "#ffffff", fillColor: "#ff0000", }} /> </MapboxGL.ShapeSource>