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

mapStyle 效果问题 #327

Open
jy1989 opened this issue Apr 12, 2024 · 2 comments
Open

mapStyle 效果问题 #327

jy1989 opened this issue Apr 12, 2024 · 2 comments

Comments

@jy1989
Copy link

jy1989 commented Apr 12, 2024

根据官网设置mapstyle
https://lbsyun.baidu.com/custom/list.htm
代码:map.setMapStyle({style:'midnight'});
理想效果如下:
image

得到效果如下,设置了mapStyle 地图是会变颜色的,但是与官网实际效果不符,不知道是哪里问题

<Map mapStyle={{ style: 'midnight' }} widget={['NavigationControl']} enableScrollWheelZoom={true} center={center} >

image

@jaywcjlove
Copy link
Member

@jy1989 我看了 https://lbsyun.baidu.com/custom/list.htm 使用的是 v2 SDK,我是基于 v3 封装的组件,你可以从这个方面排查一下问题,看一下怎么处理

@jy1989
Copy link
Author

jy1989 commented Apr 15, 2024

@jy1989 我看了 https://lbsyun.baidu.com/custom/list.htm 使用的是 v2 SDK,我是基于 v3 封装的组件,你可以从这个方面排查一下问题,看一下怎么处理

@jaywcjlove 我看了下地图属性好像没有mapStyle的? 只有mapStyleV2

image

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

2 participants