mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
🔧 Allow adding more components to BoxMap
This commit is contained in:
parent
cc57f0d66d
commit
a4bd1d2ab7
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@ import BoxFull from "./BoxFull"
|
|||
import { MapContainer, TileLayer } from "react-leaflet"
|
||||
|
||||
|
||||
export default function BoxMap({ header, setMap, startingPosition, startingZoom, button, ...props }) {
|
||||
export default function BoxMap({ header, setMap, startingPosition, startingZoom, button, children, additions, ...props }) {
|
||||
return (
|
||||
<BoxFull
|
||||
header={header}
|
||||
|
@ -21,6 +21,7 @@ export default function BoxMap({ header, setMap, startingPosition, startingZoom,
|
|||
attribution='(c) <a href="https://osm.org/copyright">OpenStreetMap contributors</a>'
|
||||
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
||||
/>
|
||||
{additions}
|
||||
<div className={"leaflet-top leaflet-right"}>
|
||||
<div className={"leaflet-control"}>
|
||||
{button}
|
||||
|
|
Loading…
Reference in a new issue