feat: fix gps map projection and update map config
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user