支持图源切换
This commit is contained in:
@@ -33,6 +33,7 @@ import type {
|
||||
NodeInfo,
|
||||
PositionRecord,
|
||||
PublicMapTileSourceResponse,
|
||||
PublicMapTileSourcesResponse,
|
||||
TelemetryRecord,
|
||||
TextMessage,
|
||||
} from './types'
|
||||
@@ -133,6 +134,10 @@ export function getDefaultMapSource(): Promise<PublicMapTileSourceResponse> {
|
||||
return getJSON<PublicMapTileSourceResponse>('/api/map-source/default')
|
||||
}
|
||||
|
||||
export function getEnabledMapSources(): Promise<PublicMapTileSourcesResponse> {
|
||||
return getJSON<PublicMapTileSourcesResponse>('/api/map-source/enabled')
|
||||
}
|
||||
|
||||
export function getTextMessages(limit = 100, offset = 0, nodeId = ''): Promise<ListResponse<TextMessage>> {
|
||||
return getJSON<ListResponse<TextMessage>>(listPath('/api/text-messages', limit, offset, nodeId))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user