Skip to content

Commit

Permalink
Atlas #2 - Adding optional "layerId" prop to LocationMarkers component
Browse files Browse the repository at this point in the history
  • Loading branch information
dleadbetter committed Mar 18, 2024
1 parent 4f9fdbc commit cbfd799
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/geospatial/src/components/LocationMarkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ type Props = {
*/
fillStyle?: { [key: string]: any },

/**
* An ID value to apply to the layer.
*/
layerId?: string,

/**
* GeoJSON layer point style.
*/
Expand Down Expand Up @@ -65,6 +70,7 @@ const LocationMarkers = (props: Props) => {
<MixedGeoJSONLayer
data={props.data}
fillStyle={props.fillStyle}
id={props.layerId}
strokeStyle={props.strokeStyle}
pointStyle={props.pointStyle}
/>
Expand Down

0 comments on commit cbfd799

Please sign in to comment.