Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

OpenRemote icon in map

robindekkers64318821be90
diff --git a/ui/component/or-map/src/index.ts b/ui/component/or-map/src/index.ts
index 435178444..981508073 100644
--- a/ui/component/or-map/src/index.ts
+++ b/ui/component/or-map/src/index.ts
@@ -244,6 +244,7 @@ export class OrMap extends LitElement {
protected render() {
return html`
<div id="map"></div>
+ <a id="openremote" href="https://openremote.io/" target="_blank"><img src="https://openremote.io/wp-content/uploads/2018/06/cropped-OpenRemote-favicon-32x32.png" /></a>
<slot></slot>
`;
}
diff --git a/ui/component/or-map/src/style.ts b/ui/component/or-map/src/style.ts
index 65be5d3b5..147762594 100644
--- a/ui/component/or-map/src/style.ts
+++ b/ui/component/or-map/src/style.ts
@@ -99,4 +99,18 @@ export const style = css`
--or-icon-width: var(--internal-or-map-marker-icon-active-width);
--or-icon-height: var(--internal-or-map-marker-icon-active-height);
}
+
+ #openremote {
+ position: absolute;
+ bottom: 30px;
+ right: 12px;
+ height: 20px;
+ width: 20px;
+ cursor: pointer;
+ }
+
+ #openremote img {
+ height: 20px;
+ width: 20px;
+ }
`;
\ No newline at end of file