+
rest)(mapOptions)}>
+
+
+ {selectedPosition && }
+
+ {selectedPosition && (
+
+ {[selectedPosition.lat, selectedPosition.lng].join(', ')}
+
+ )}
+
+ );
+});
diff --git a/src/components/Text/context.ts b/src/components/Text/context.ts
index 159ac116..66c50eab 100644
--- a/src/components/Text/context.ts
+++ b/src/components/Text/context.ts
@@ -1,9 +1,11 @@
import React from 'react';
import type { GMapOptions } from '../prime/googlemap/GMap.types';
+import type { LMapOptions } from '../Card/inputs/LeafletMap/LMap.types';
import type { FormatOptions } from '../Gate/Gate.types';
export interface PortalConfiguration {
'portal.utPrime.GMap'?: string | GMapOptions;
+ 'portal.utPrime.LMap'?: string | LMapOptions;
'portal.utPrime.formatOptions'?: string | FormatOptions;
}
diff --git a/src/components/test/input.ts b/src/components/test/input.ts
index 7b691c64..3024ef63 100644
--- a/src/components/test/input.ts
+++ b/src/components/test/input.ts
@@ -190,6 +190,12 @@ const properties: Properties = {
type: 'gps'
}
},
+ gpsLeaflet: {
+ widget: {
+ type: 'gps',
+ mapType: 'leaflet'
+ }
+ },
image: {
widget: {
type: 'image'
@@ -344,6 +350,7 @@ export const input: {
className: 'xl:col-4',
widgets: [
'input.gps',
+ 'input.gpsLeaflet',
'input.image',
'input.imageUpload',
'input.file',
diff --git a/src/components/types/index.ts b/src/components/types/index.ts
index 7fb3932a..40ed2311 100644
--- a/src/components/types/index.ts
+++ b/src/components/types/index.ts
@@ -77,6 +77,7 @@ export interface PropertyEditor {
fieldClass?: string,
labelClass?: string,
translation?: boolean,
+ mapType?: 'leaflet' | 'google'
[editorProperties: string]: unknown
}