We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
根据官网设置mapstyle https://lbsyun.baidu.com/custom/list.htm 代码:map.setMapStyle({style:'midnight'}); 理想效果如下:
map.setMapStyle({style:'midnight'});
得到效果如下,设置了mapStyle 地图是会变颜色的,但是与官网实际效果不符,不知道是哪里问题
<Map mapStyle={{ style: 'midnight' }} widget={['NavigationControl']} enableScrollWheelZoom={true} center={center} >
The text was updated successfully, but these errors were encountered:
@jy1989 我看了 https://lbsyun.baidu.com/custom/list.htm 使用的是 v2 SDK,我是基于 v3 封装的组件,你可以从这个方面排查一下问题,看一下怎么处理
Sorry, something went wrong.
@jaywcjlove 我看了下地图属性好像没有mapStyle的? 只有mapStyleV2
mapStyle
mapStyleV2
No branches or pull requests
根据官网设置mapstyle
https://lbsyun.baidu.com/custom/list.htm
代码:
map.setMapStyle({style:'midnight'});
理想效果如下:
得到效果如下,设置了mapStyle 地图是会变颜色的,但是与官网实际效果不符,不知道是哪里问题
<Map mapStyle={{ style: 'midnight' }} widget={['NavigationControl']} enableScrollWheelZoom={true} center={center} >
The text was updated successfully, but these errors were encountered: