-
-
Notifications
You must be signed in to change notification settings - Fork 22
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 使用问题 #134
Comments
@mcl950121 请给出示例 |
@jaywcjlove 您好,帮忙给看看 |
@mcl950121 https://codesandbox.io/s/react-baidu-map-demo-forked-bw829?file=/src/index.js 我的使用 用 |
@mcl950121 你的密钥 |
@jaywcjlove 我的密钥和styleId在同一个账号上,center属性填写经纬度是可以出来地图的,但填写地图字符串就出不来了, 是不是因为加了mapStyleV2属性导致map不支持center地区字符串了。 |
@mcl950121 不知道什么原因,搞我发几个版本
昨天 |
@jaywcjlove 是不是mapStylev2不支持不识别地区字符串, |
@mcl950121 这个不太清楚,只是把参数给到地图API 具体地图怎么处理不太清楚,欢迎排除问题。 |
@mcl950121 大佬帮我看看为什么我用json都出不来 |
当使用mapStyleV2 底图时,Map 组件 center参数设置为经纬度才可以生效,设置为字符串(比如'北京市')不生效。 但是设置为经纬度时,地图动态生成marker时会重置地图center和zoom
The text was updated successfully, but these errors were encountered: