Skip to content

Commit 58fa3ad

Browse files
committed
Add ozone logo
1 parent 500d49c commit 58fa3ad

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

frontend/src/viewer/components/2d/map-element.ts

+6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ export class MapElement extends connect(store)(LitElement) {
161161
controls.map = this.map;
162162
this.map.controls[google.maps.ControlPosition.TOP_RIGHT].push(controls);
163163

164+
const ad = document.createElement('a');
165+
ad.setAttribute('href', 'https://www.flyozone.com/');
166+
ad.setAttribute('target', '_blank');
167+
ad.innerHTML = `<img width="210" height="35" src="img/ozone.svg">`;
168+
this.map.controls[google.maps.ControlPosition.BOTTOM_CENTER].push(ad);
169+
164170
this.map.addListener('click', (e: google.maps.MouseEvent) => {
165171
const latLng = e.latLng;
166172
const found = findClosestFix(this.tracks, latLng.lat(), latLng.lng());

frontend/src/viewer/components/3d/map3d-element.ts

+13
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@ export class Map3dElement extends connect(store)(LitElement) {
136136
const controls = document.createElement('controls3d-element');
137137
this.view.ui.add(controls, 'top-right');
138138

139+
const ad = document.createElement('a');
140+
ad.setAttribute('href', 'https://www.flyozone.com/');
141+
ad.setAttribute('target', '_blank');
142+
ad.className = 'ad';
143+
ad.innerHTML = `<img width="210" height="35" src="img/ozone.svg">`;
144+
this.view.ui.add(ad);
145+
139146
const layerSwitcher = this.renderRoot.querySelector('#layers') as HTMLSelectElement;
140147
this.view.ui.add(layerSwitcher, 'top-left');
141148
this.view.ui.move([layerSwitcher, 'compass', 'navigation-toggle'], 'top-left');
@@ -296,6 +303,12 @@ export class Map3dElement extends connect(store)(LitElement) {
296303
#layers {
297304
font: 18px Roboto, arial, sans-serif !important;
298305
}
306+
.ad {
307+
box-shadow: none;
308+
bottom: 10px;
309+
left: 50%;
310+
transform: translate(-50%, 0);
311+
}
299312
</style>
300313
<div id="map"></div>
301314
<select id="layers" @change=${(e: any) => this.map?.set('basemap', this.basemaps[e.target.value])}>

frontend/static/img/ozone.svg

+1
Loading

0 commit comments

Comments
 (0)