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

使用GaodeMapV1,想要带颜色带路网的地图样式,不知道该怎么处理,麻烦帮我看一下 #2288

Closed
mumaYu opened this issue Feb 7, 2024 · 3 comments
Assignees

Comments

@mumaYu
Copy link

mumaYu commented Feb 7, 2024

问题描述

scene = new Scene({ id: 'map', map: new GaodeMapV1({ center: [116.119318, 40.093003], token: token, zoom: 12 }), logoVisible: false })
使用这个方法渲染了地图,是这种的
image

我看官网上有这种的写法,但是我不知道AMap该怎么处理,一直报错
const map = new AMap.Map('map', { viewMode: '3D', center: [ 121.435159, 31.256971 ], zoom: 14.89, minZoom: 10 }); const scene = new Scene({ id: 'map', map: new GaodeMap({ mapInstance: map }) });

重现链接

No response

重现步骤

No response

预期行为

想要带颜色带路网的效果
image

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Copy link
Contributor

github-actions bot commented Feb 7, 2024

Copy link
Contributor

github-actions bot commented Feb 7, 2024

Hi @mumaYu, Please star this repo if you find it useful! Thanks ⭐!
你好 @mumaYu。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Mar 15, 2024

设置一下style 即可

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

No branches or pull requests

2 participants