antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.
https://l7.antv.antgroup.com
MIT License
3.63k stars 633 forks source link

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

Closed hopperhuang closed 1 year ago

hopperhuang commented 1 year ago

代码如下:

image image

实际效果:

image

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

lzxue commented 1 year ago

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

hopperhuang commented 1 year ago

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

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

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

lzxue commented 1 year ago

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

hopperhuang commented 1 year ago

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

hopperhuang commented 1 year ago

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

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

lzxue commented 1 year ago

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

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