feat: add background gps tracking support
This commit is contained in:
@@ -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({
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user