From 6ae027c421ada35cfa7ee374c030ae520b501287 Mon Sep 17 00:00:00 2001 From: RyanBirtch-aot Date: Thu, 21 Nov 2024 19:53:40 +0000 Subject: [PATCH] Fixes for PR comments, added constant for map component height --- components/src/components/Map/Component.ts | 3 ++- components/src/components/Map/editForm/Component.edit.data.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/components/src/components/Map/Component.ts b/components/src/components/Map/Component.ts index c3fb06650..e66474baf 100644 --- a/components/src/components/Map/Component.ts +++ b/components/src/components/Map/Component.ts @@ -7,6 +7,7 @@ import * as L from 'leaflet'; const DEFAULT_CENTER: [number, number] = [ 53.96717190097409, -123.98320425388914, ]; // Ensure CENTER is a tuple with exactly two elements +const DEFAULT_CONTAINER_HEIGHT = '400px'; export default class Component extends (FieldComponent as any) { static schema(...extend) { @@ -42,7 +43,7 @@ export default class Component extends (FieldComponent as any) { render() { return super.render( - `
` + `
` ); } diff --git a/components/src/components/Map/editForm/Component.edit.data.ts b/components/src/components/Map/editForm/Component.edit.data.ts index d3a0e1397..1725808ff 100644 --- a/components/src/components/Map/editForm/Component.edit.data.ts +++ b/components/src/components/Map/editForm/Component.edit.data.ts @@ -6,7 +6,7 @@ export default { { html: '

Default Values

', key: 'simplecontent1', - type: 'simplecontent', + type: 'content', input: false, tableView: false, label: 'Text/Images',