Skip to content

Commit

Permalink
fix: 1.更改国际化 2.修复自定义官方图层编辑问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoqianci committed Apr 23, 2024
1 parent a90acbb commit 45a7a56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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 - 4] = {
id: e.name,
image: newImgUrl,
title: e.name,
Expand Down
2 changes: 2 additions & 0 deletions src/locales/langs/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
2 changes: 2 additions & 0 deletions src/locales/langs/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': '地图状态保存成功 ',
Expand Down

0 comments on commit 45a7a56

Please sign in to comment.