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

为什么加载高德地图 style:normal 但是不是蓝底跟light的底图是一样的 #1972

Closed
DreamNO1 opened this issue Oct 27, 2023 · 6 comments
Labels

Comments

@DreamNO1
Copy link

问题描述

      const scene = new Scene({

id: 'map',
map: new GaodeMap({
style: 'normal',
center: [120.19382669582967, 30.258134],
zoom: 3,
}),
});

为什么加载高德地图 style:normal 但是不是蓝底跟light的底图是一样的

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@lzxue lzxue added the 高德地图底图 高德地图 Key label Oct 28, 2023
@lzxue
Copy link
Contributor

lzxue commented Oct 28, 2023

不清楚问题

@zhangjuncheng1
Copy link

zhangjuncheng1 commented May 17, 2024

为什么使用这个配置,style: 'light'不生效呢
依赖版本
"@antv/l7": "2.17.3",
"@antv/l7-maps": "2.17.3",
this.scene = new Scene({
id: 'analysis-map',
map: new GaodeMap({
style: 'light',
center: [107.054293, 35.246265],
zoom: 4.056,
}),
})

@lvisei
Copy link
Member

lvisei commented May 17, 2024

这种一般都是 高德的 token 没有设置生效,https://lbs.amap.com/api/javascript-api-v2/guide/abc/jscode

@lvisei lvisei closed this as completed May 17, 2024
@zhangjuncheng1
Copy link

这种一般都是 高德的 token 没有设置生效,https://lbs.amap.com/api/javascript-api-v2/guide/abc/jscode

如果高德token不设置,我这边地图都显示不出来,感觉不是这个问题,我地图能显示。。

@zhangjuncheng1
Copy link

这种一般都是 高德的 token 没有设置生效,https://lbs.amap.com/api/javascript-api-v2/guide/abc/jscode

如果高德token不设置,我这边地图都显示不出来,感觉不是这个问题,我地图能显示。。

想请教下,是不是我的版本太低了。。

@lvisei
Copy link
Member

lvisei commented May 17, 2024

如果高德token不设置,我这边地图都显示不出来,感觉不是这个问题,我地图能显示。。

L7 内部设置了一个 token,可以显示最基础地图样式

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

No branches or pull requests

4 participants