当前位置:网站首页>百度地图自定义样式向右拖拽导致全球地图经度0度无法正常显示
百度地图自定义样式向右拖拽导致全球地图经度0度无法正常显示
2022-07-07 15:40:00 【梓喻】
问题
在解决自定义样式加载白块后,发现拖曳地图在全球上经度0处显示不全。
问题代码
setMapStyle
设置个性化地图,参数为个性化配置对象
map.setMapStyleV2({
styleJson: mapStyles
});
官方解释
官方的回复很明显,暂时没有来自官方的解决方案,需要自己去调整处理
自定义样式JSON
[{
"featureType": "background",
"elementType": "geometry",
"stylers": {
"visibility": "off"
}
}, {
"featureType": "road",
"elementType": "geometry",
"stylers": {
"visibility": "off"
}
}, {
"featureType": "road",
"elementType": "labels",
"stylers": {
"visibility": "off"
}
}, {
"featureType": "poilabel",
"elementType": "labels",
"stylers": {
"visibility": "off"
}
}, {
"featureType": "poilabel",
"elementType": "labels.icon",
"stylers": {
"visibility": "off"
}
}, {
"featureType": "districtlabel",
"elementType": "labels",
"stylers": {
"visibility": "off"
}
}, {
"featureType": "districtlabel",
"elementType": "labels.icon",
"stylers": {
"visibility": "off"
}
}]
边栏推荐
- Skimage learning (1)
- 99% of users often make mistakes in power Bi cloud reports
- LeetCode 1049. Weight of the last stone II daily question
- Repair method of firewall system crash and file loss, material cost 0 yuan
- [source code interpretation] | source code interpretation of livelistenerbus
- Test case management tool recommendation
- Flask build API service SQL configuration file
- 本周小贴士#140:常量:安全习语
- 第3章业务功能开发(实现记住账号密码)
- Linux 安装mysql8.X超详细图文教程
猜你喜欢
Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
Sator launched Web3 game "satorspace" and launched hoobi
如何在博客中添加Aplayer音乐播放器
Lex & yacc of Pisa proxy SQL parsing
How to choose the appropriate automated testing tools?
99%的人都不知道|私有化部署还永久免费的即时通讯软件!
redis主从、哨兵主备切换搭建一步一步图解实现
【可信计算】第十三次课:TPM扩展授权与密钥管理
SlashData开发者工具榜首等你而定!!!
让保险更“保险”!麒麟信安一云多芯云桌面中标中国人寿, 助力金融保险信息技术创新发展
随机推荐
Blue Bridge Cup final XOR conversion 100 points
LeetCode 1654. The minimum number of jumps to get home one question per day
LeetCode 1981. Minimize the difference between the target value and the selected element one question per day
rpcms获取指定分类下的文章的方法
Sator launched Web3 game "satorspace" and launched hoobi
本周小贴士#135:测试约定而不是实现
国内首创!Todesk将RTC技术融入远程桌面,画质更清晰操作更流畅
LeetCode 1186. Delete once to get the sub array maximum and daily question
SlashData开发者工具榜首等你而定!!!
Siggraph 2022 best technical paper award comes out! Chen Baoquan team of Peking University was nominated for honorary nomination
LeetCode 1049. Weight of the last stone II daily question
管理VDI的几个最佳实践
LeetCode 1626. The best team without contradiction
Skimage learning (3) -- adapt the gray filter to RGB images, separate colors by immunohistochemical staining, and filter the maximum value of the region
SlashData开发者工具榜首等你而定!!!
本周小贴士#141:注意隐式转换到bool
Repair method of firewall system crash and file loss, material cost 0 yuan
Test case management tool recommendation
电脑无法加域,ping域名显示为公网IP,这是什么问题?怎么解决?
服务器彻底坏了,无法修复,如何利用备份无损恢复成虚拟机?