Skip to content

Commit

Permalink
Fixes for PR comments, added constant for map component height
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanBirtch-aot committed Nov 21, 2024
1 parent afb3639 commit 6ae027c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/src/components/Map/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -42,7 +43,7 @@ export default class Component extends (FieldComponent as any) {

render() {
return super.render(
`<div id="map-${this.componentID}" style="height:400px; z-index:1;"> </div>`
`<div id="map-${this.componentID}" style="height:${DEFAULT_CONTAINER_HEIGHT}; z-index:1;"> </div>`
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
{
html: '<h2>Default Values</h2>',
key: 'simplecontent1',
type: 'simplecontent',
type: 'content',
input: false,
tableView: false,
label: 'Text/Images',
Expand Down

0 comments on commit 6ae027c

Please sign in to comment.