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

关于Map组件的主题设置mapStyle #193

Open
mazhy opened this issue Jun 17, 2019 · 3 comments
Open

关于Map组件的主题设置mapStyle #193

mazhy opened this issue Jun 17, 2019 · 3 comments

Comments

@mazhy
Copy link

mazhy commented Jun 17, 2019

在map组件中, 设置主题mapStyle 为 blue_night 控制台报错, 只有不设置的时候才会显示正常, 但是之前项目中,是依靠其他主题来做的, 现在不好使了

现在这个项目还有人维护吗

@cuiken
Copy link

cuiken commented Jun 24, 2019

在map组件中, 设置主题mapStyle 为 blue_night 控制台报错, 只有不设置的时候才会显示正常, 但是之前项目中,是依靠其他主题来做的, 现在不好使了

现在这个项目还有人维护吗

根据最新的官方文档改为amap://styles/grey" 这种形式应该就可以了

@ybning
Copy link

ybning commented Jul 1, 2019

image

follow: https://lbs.amap.com/api/javascript-api/reference/map

@samwangdd
Copy link

react-amap
可以通过events.created方法获取到map实例,再调用高德地图的API就能进行自定义。

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

No branches or pull requests

4 participants