ADSB fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import type {AirTrafficLayer} from '@/services/airtraffic.ts';
|
||||
import {AirTrafficLayer} from '@/services/airtraffic.ts';
|
||||
import { onMounted, onUnmounted, ref, watch } from 'vue'
|
||||
import Map from 'ol/Map'
|
||||
import View from 'ol/View'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import {BASE} from '@/services/api.ts';
|
||||
import Map from 'ol/Map'
|
||||
import { Feature } from 'ol'
|
||||
import Point from 'ol/geom/Point'
|
||||
@@ -7,7 +8,7 @@ import { Style, Icon, Stroke } from 'ol/style'
|
||||
import { Vector as VectorLayer } from 'ol/layer'
|
||||
import { Vector as VectorSource } from 'ol/source'
|
||||
|
||||
const API = '/api'
|
||||
const API = BASE + '/api'
|
||||
|
||||
const COLORS: Record<string, string> = {
|
||||
'Cargo': '#00ff00',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const BASE = import.meta.env.DEV ? 'http://10.69.5.23:3000' : ''
|
||||
export const BASE = import.meta.env.DEV ? 'http://10.69.5.23:3000' : ''
|
||||
|
||||
export type DataRow = Record<string, number | string | null>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user