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

传入中英文对照参数,地图没有显示中英文对照 #1805

Closed
hopperhuang opened this issue Aug 29, 2023 · 6 comments
Closed

传入中英文对照参数,地图没有显示中英文对照 #1805

hopperhuang opened this issue Aug 29, 2023 · 6 comments
Labels
good first issue Good for newcomers

Comments

@hopperhuang
Copy link

hopperhuang commented Aug 29, 2023

代码如下:
image
image

实际效果:
image

依赖版本:
"@antv/l7": "^2.17.11",
"@antv/l7-maps": "^2.17.11",

@lzxue
Copy link
Contributor

lzxue commented Aug 29, 2023

这个是高德底图的配置,L7 透传的,看一下高德地图有没有生效。

@hopperhuang
Copy link
Author

这个是高德底图的配置,L7 透传的,看一下高德地图有没有生效。

亲自在高德的平台上试了一下,发现他们的是可以的。但是,我发现按照这个写法,传给l7的组件是不行的。
又偷偷看了一下大佬们定义的组件,好像没有定义lang这个字段呢。大佬帮忙看看为啥呗。

大佬: 注意一下画红圈的地方。image

@lzxue
Copy link
Contributor

lzxue commented Aug 31, 2023

直接给个链接吧,没找到你这个demo

@lzxue lzxue added the good first issue Good for newcomers label Aug 31, 2023
@hopperhuang
Copy link
Author

@hopperhuang
Copy link
Author

直接给个链接吧,没找到你这个demo

https://lbs.amap.com/demo/javascript-api/example/map/map-english

@lzxue
Copy link
Contributor

lzxue commented Sep 5, 2023

试了一下高德地图 V2 不支持,你给的demo 是高德 1.4 的

https://codesandbox.io/s/relaxed-banzai-fn98xl?file=/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants