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

个性化地图样式中MapStyleV2只能设置json吗?百度可以发布样式id,这个配上不生效呢? #132

Open
zhanglina1990 opened this issue Aug 15, 2019 · 2 comments

Comments

@zhanglina1990
Copy link

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run. Paste the link to your CodeSandbox (https://codesandbox.io/s/jnnxrwq5y3) example below:

What is the expected behavior?

@JserWang
Copy link
Owner

您好,设置styleId是百度地图官方新出的方式,我通过百度官方示例中设置也尚未生效,目前来说他提供的方式,rc-bmap也是支持的,只要官方示例生效,rc-bmap就会生效。
所以建议您先通过styleJson进行设置,或者您如果通过官方设置可以生效时,rc-bmap若没生效,可以随时再来找我。

@lxn07122945
Copy link

只有百度地图jsapi3.0版本才支持MapStyleV2方法,并且是可以使用样式id的呢:http://lbsyun.baidu.com/index.php?title=jspopular3.0/guide/custom ,这个文档中有两种使用方法的介绍!ak与使用的样式id必须是同一个账号的内容

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

3 participants