diff --git a/src/components/map-control-group/official-layer-control/index.tsx b/src/components/map-control-group/official-layer-control/index.tsx index b72147f..0219087 100644 --- a/src/components/map-control-group/official-layer-control/index.tsx +++ b/src/components/map-control-group/official-layer-control/index.tsx @@ -78,14 +78,14 @@ export function OfficialLayerControl() { }, { id: OfficeLayerEnum.Google, - title: '谷歌卫星地图(需翻墙)', + title: t('official_layer_control.index.guGeWeiXingTuFanQiang'), image: 'https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*M64rSbdhYJ0AAAAAAAAAAAAADjWqAQ/original', layers: [GOOGLE_TILE_MAP_URL, GOOGLE_TILE_MAP_ROUTER_URL], }, { id: OfficeLayerEnum.Gaode, - title: '高德卫星地图', + title: t('official_layer_control.index.gaoDeWeiXingTu'), image: 'https://mdn.alipayobjects.com/huamei_k6sfo0/afts/img/A*zi2jSqqZ2-8AAAAAAAAAAAAADjWqAQ/original', layers: [GAODE_TILE_MAP_URL, GOOGLE_TILE_MAP_ROUTER_URL], @@ -121,7 +121,7 @@ export function OfficialLayerControl() { if (isEdit) { const cloneCustomTiles = cloneDeep(customTiles); const newImgUrl = Array.isArray(e.img) ? e.img[0].url : `${base64}`; - cloneCustomTiles[editIndex - 2] = { + cloneCustomTiles[editIndex - BASE_LAYER_GROUP.length] = { id: e.name, image: newImgUrl, title: e.name, diff --git a/src/locales/langs/en-US.ts b/src/locales/langs/en-US.ts index 2e2eb74..00a6753 100644 --- a/src/locales/langs/en-US.ts +++ b/src/locales/langs/en-US.ts @@ -161,6 +161,8 @@ export default { 'location_search_control.location_search.qingShuRuYaoSou': 'Please enter a place name to search', 'official_layer_control.index.guGeWeiXingTu': 'Google Remote Sensing Maps', + 'official_layer_control.index.guGeWeiXingTuFanQiang': 'Google satellite map (need to climb over the wall)', + 'official_layer_control.index.gaoDeWeiXingTu': 'Gaud satellite map', 'official_layer_control.index.shiLiangDiTu': 'Vector Map', 'save_map_options_control.index.baoCunDiTuZhuang': 'Save Map Status', 'save_map_options_control.index.diTuZhuangTaiBao': diff --git a/src/locales/langs/zh-CN.ts b/src/locales/langs/zh-CN.ts index 7d1eee4..e39fa73 100644 --- a/src/locales/langs/zh-CN.ts +++ b/src/locales/langs/zh-CN.ts @@ -143,6 +143,8 @@ export default { 'location_search_control.index.tianJiaZhiShuJu': '添加至数据', 'location_search_control.location_search.qingShuRuYaoSou': '请输入要搜索地名', 'official_layer_control.index.guGeWeiXingTu': '谷歌卫星地图', + 'official_layer_control.index.guGeWeiXingTuFanQiang': '谷歌卫星地图(需翻墙)', + 'official_layer_control.index.gaoDeWeiXingTu': '高德卫星地图', 'official_layer_control.index.shiLiangDiTu': '矢量地图', 'save_map_options_control.index.baoCunDiTuZhuang': '保存地图状态', 'save_map_options_control.index.diTuZhuangTaiBao': '地图状态保存成功 ',