feat: fix gps map projection and update map config

This commit is contained in:
2026-03-23 10:05:41 +08:00
parent a4c426df8b
commit 51740761f5
11 changed files with 214 additions and 55 deletions

View File

@@ -1,4 +1,4 @@
import { buildCamera, type MapScene } from './mapRenderer'
import { type MapScene } from './mapRenderer'
import { TrackLayer } from '../layer/trackLayer'
import { GpsLayer } from '../layer/gpsLayer'
@@ -123,9 +123,8 @@ export class WebGLVectorRenderer {
}
const gl = this.gl
const camera = buildCamera(scene)
const trackPoints = this.trackLayer.projectPoints(scene, camera)
const gpsPoint = this.gpsLayer.projectPoint(scene, camera)
const trackPoints = this.trackLayer.projectPoints(scene)
const gpsPoint = this.gpsLayer.projectPoint(scene)
const positions: number[] = []
const colors: number[] = []
@@ -232,3 +231,4 @@ export class WebGLVectorRenderer {
}
}
}