config for gratuitude control

This commit is contained in:
Anton Tranelis 2024-10-13 01:59:17 +02:00
parent a1da109c00
commit 5cb8885131
2 changed files with 4 additions and 2 deletions

View File

@ -51,6 +51,7 @@ function UtopiaMap({
children,
geo,
showFilterControl = false,
showGratitudeControl = false,
showLayerControl = true
}
: UtopiaMapProps) {
@ -123,7 +124,7 @@ function UtopiaMap({
{showFilterControl && <FilterControl />}
{/*todo: needed layer handling is located LayerControl*/}
{showLayerControl && <LayerControl></LayerControl>}
{<GratitudeControl/>}
{showGratitudeControl && <GratitudeControl/>}
</Control>
<TileLayer
maxZoom={19}

View File

@ -9,7 +9,8 @@ export interface UtopiaMapProps {
children?: React.ReactNode,
geo?: any,
showFilterControl?: boolean,
showLayerControl?: boolean
showLayerControl?: boolean,
showGratitudeControl?: boolean
}
export interface LayerProps {