Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 1.更改国际化 2.修复自定义官方图层编辑问题 #60

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 - BASE_LAYER_GROUP.length] = {
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
Loading