feat: add background gps tracking support

This commit is contained in:
2026-03-20 19:03:57 +08:00
parent 1ecb4809df
commit a4c426df8b
6 changed files with 353 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ type MapPageData = MapEngineViewState & {
showDebugPanel: boolean
}
const INTERNAL_BUILD_VERSION = 'map-build-82'
const INTERNAL_BUILD_VERSION = 'map-build-88'
const REMOTE_GAME_CONFIG_URL = 'https://oss-mbh5.colormaprun.com/wxmini/test/qyds-001/game.json'
let mapEngine: MapEngine | null = null
@@ -195,6 +195,12 @@ Page({
}
},
handleToggleGpsTracking() {
if (mapEngine) {
mapEngine.handleToggleGpsTracking()
}
},
handleToggleDebugPanel() {
this.setData({
showDebugPanel: !this.data.showDebugPanel,
@@ -221,6 +227,13 @@ Page({