100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
UI updates: minor update for map views
Rich Turnerd974b6d4bf58
diff --git a/ui/component/or-attribute-input/src/index.ts b/ui/component/or-attribute-input/src/index.tsindex e06077b8e..9444eaef0 100644--- a/ui/component/or-attribute-input/src/index.ts+++ b/ui/component/or-attribute-input/src/index.ts@@ -207,15 +207,11 @@ export const GeoJsonPointInputTemplateProvider: AttributeInputCustomProvider = (or-map {border: #e5e5e5 1px solid;margin: 3px 0;- width: 100%;- height: 100%;}</style>- <div id="geo-json-point-input-wrapper">- <or-map class="or-map" @or-map-clicked="${(ev: OrMapClickedEvent) => clickHandler(ev.detail)}" .center="${center}" .controls="${[centerControl, [coordinatesControl, "top-left"]]}">- <or-map-marker active .lng="${pos ? pos.lng : undefined}" .lat="${pos ? pos.lat : undefined}" .icon="${iconAndColor ? iconAndColor.icon : undefined}" .activeColor="${iconAndColor ? "#" + iconAndColor.color : undefined}" .color="${iconAndColor ? "#" + iconAndColor.color : undefined}"></or-map-marker>- </or-map>- </div>+ <or-map class="or-map" @or-map-clicked="${(ev: OrMapClickedEvent) => clickHandler(ev.detail)}" .center="${center}" .controls="${[centerControl, [coordinatesControl, "top-left"]]}">+ <or-map-marker active .lng="${pos ? pos.lng : undefined}" .lat="${pos ? pos.lat : undefined}" .icon="${iconAndColor ? iconAndColor.icon : undefined}" .activeColor="${iconAndColor ? "#" + iconAndColor.color : undefined}" .color="${iconAndColor ? "#" + iconAndColor.color : undefined}"></or-map-marker>+ </or-map>`;if (attributeInput.compact) {@@ -227,9 +223,9 @@ export const GeoJsonPointInputTemplateProvider: AttributeInputCustomProvider = (content: mapContent,styles: html`<style>- #geo-json-point-input-wrapper {- width: 600px;- height:600px;+ or-map {+ width: 600px !important;+ height: 600px !important;}</style>`diff --git a/ui/component/or-map/src/style.ts b/ui/component/or-map/src/style.tsindex 0b8ab4931..7ce12a4f4 100644--- a/ui/component/or-map/src/style.ts+++ b/ui/component/or-map/src/style.ts@@ -35,6 +35,10 @@ export const style = css`min-height: var(--internal-or-map-min-height);width: var(--internal-or-map-width);}++ canvas {+ outline: none !important;+ }:host([hidden]) {display: none;