mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
added backend field for fullscreencontrol to map collection
This commit is contained in:
parent
291018ec34
commit
c88b1819f3
@ -86,6 +86,7 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) {
|
||||
expandLayerControl={map.expand_layer_control}
|
||||
tileServerUrl={map.tile_server_url}
|
||||
tileServerAttribution={map.tile_server_attribution}
|
||||
showFullscreenControl={map.show_fullscreen_control}
|
||||
>
|
||||
{layers &&
|
||||
apis &&
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 12,
|
||||
"sort": 11,
|
||||
"special": [
|
||||
"alias",
|
||||
"no-data",
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 15,
|
||||
"sort": 14,
|
||||
"special": [
|
||||
"alias",
|
||||
"no-data",
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 13,
|
||||
"sort": 12,
|
||||
"special": null,
|
||||
"translations": null,
|
||||
"validation": null,
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 10,
|
||||
"sort": 9,
|
||||
"special": [
|
||||
"m2o"
|
||||
],
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 11,
|
||||
"sort": 10,
|
||||
"special": [
|
||||
"cast-boolean"
|
||||
],
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
},
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 14,
|
||||
"sort": 13,
|
||||
"special": [
|
||||
"cast-json"
|
||||
],
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 17,
|
||||
"sort": 16,
|
||||
"special": [
|
||||
"cast-boolean"
|
||||
],
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
{
|
||||
"collection": "maps",
|
||||
"field": "show_fullscreen_control",
|
||||
"type": "boolean",
|
||||
"meta": {
|
||||
"collection": "maps",
|
||||
"conditions": null,
|
||||
"display": null,
|
||||
"display_options": null,
|
||||
"field": "show_fullscreen_control",
|
||||
"group": "Controls",
|
||||
"hidden": false,
|
||||
"interface": "boolean",
|
||||
"note": null,
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 6,
|
||||
"special": [
|
||||
"cast-boolean"
|
||||
],
|
||||
"translations": null,
|
||||
"validation": null,
|
||||
"validation_message": null,
|
||||
"width": "half"
|
||||
},
|
||||
"schema": {
|
||||
"name": "show_fullscreen_control",
|
||||
"table": "maps",
|
||||
"data_type": "boolean",
|
||||
"default_value": false,
|
||||
"max_length": null,
|
||||
"numeric_precision": null,
|
||||
"numeric_scale": null,
|
||||
"is_nullable": true,
|
||||
"is_unique": false,
|
||||
"is_indexed": false,
|
||||
"is_primary_key": false,
|
||||
"is_generated": false,
|
||||
"generation_expression": null,
|
||||
"has_auto_increment": false,
|
||||
"foreign_key_table": null,
|
||||
"foreign_key_column": null
|
||||
}
|
||||
}
|
||||
@ -15,7 +15,7 @@
|
||||
"options": null,
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 18,
|
||||
"sort": 17,
|
||||
"special": [
|
||||
"cast-boolean"
|
||||
],
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
},
|
||||
"readonly": false,
|
||||
"required": false,
|
||||
"sort": 16,
|
||||
"sort": 15,
|
||||
"special": [
|
||||
"alias",
|
||||
"no-data",
|
||||
|
||||
@ -279,10 +279,10 @@ export function UtopiaMapInner({
|
||||
<TagsControl />
|
||||
</Control>
|
||||
<Control position='bottomLeft' zIndex='999' absolute>
|
||||
{showFullscreenControl && <FullscreenControl />}
|
||||
{showFilterControl && <FilterControl />}
|
||||
{showLayerControl && <LayerControl expandLayerControl={expandLayerControl ?? false} />}
|
||||
{showGratitudeControl && <GratitudeControl />}
|
||||
{showFullscreenControl && <FullscreenControl />}
|
||||
</Control>
|
||||
<TileLayer
|
||||
maxZoom={19}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user