support caching map data when map_data_fetch_proxy is set true

This commit is contained in:
MaysWind
2026-02-28 18:16:34 +08:00
parent d5dfdc8c05
commit 247181830c
35 changed files with 740 additions and 179 deletions
+14
View File
@@ -27,6 +27,20 @@ export function initMapProvider(language?: string): void {
}
}
export function isMapProviderUseExternalSDK(): boolean {
const mapProviderType = getMapProvider();
if (mapProviderType === 'googlemap') {
return true;
} else if (mapProviderType === 'baidumap') {
return true;
} else if (mapProviderType === 'amap') {
return true;
} else {
return false;
}
}
export function getMapWebsite(): string {
return mapProvider?.getWebsite() || '';
}