当前位置:网站首页>百度地图自定义样式向右拖拽导致全球地图经度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"
}
}]
边栏推荐
- LeetCode 1031. Maximum sum of two non overlapping subarrays
- 99%的人都不知道|私有化部署还永久免费的即时通讯软件!
- 【网络攻防原理与技术】第7章:口令攻击技术 第8章:网络监听技术
- AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
- 【TPM2.0原理及应用指南】 12、13、14章
- [video / audio data processing] Shanghai daoning brings you elecard download, trial and tutorial
- 【饭谈】那些看似为公司着想,实际却很自私的故事 (一:造轮子)
- Solid function learning
- LeetCode 1986. The minimum working time to complete the task is one question per day
- How to add aplayer music player in blog
猜你喜欢

Sator launched Web3 game "satorspace" and launched hoobi

【TPM2.0原理及应用指南】 9、10、11章

Test case management tool recommendation

AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究

SlashData开发者工具榜首等你而定!!!

How to add aplayer music player in blog

赋能智慧电力建设 | 麒麟信安高可用集群管理系统,保障用户关键业务连续性

Siggraph 2022 best technical paper award comes out! Chen Baoquan team of Peking University was nominated for honorary nomination

网络攻防复习篇
![[Seaborn] combination chart: facetgrid, jointgrid, pairgrid](/img/89/a7cf40fb3a7622cb78ea1b92ffd2fb.png)
[Seaborn] combination chart: facetgrid, jointgrid, pairgrid
随机推荐
Lex & yacc of Pisa proxy SQL parsing
Flask搭建api服务-SQL配置文件
Problems encountered in Jenkins' release of H5 developed by uniapp
【TPM2.0原理及应用指南】 12、13、14章
【网络攻防原理与技术】第5章:拒绝服务攻击
LeetCode 890(C#)
管理VDI的几个最佳实践
AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
[Seaborn] implementation of combined charts and multi subgraphs
麒麟信安中标国网新一代调度项目!
智慧物流平台:让海外仓更聪明
mysql官网下载:Linux的mysql8.x版本(图文详解)
字符串 - string(Lua)
如何在软件研发阶段落地安全实践
What is cloud computing?
First in China! Todesk integrates RTC technology into remote desktop, with clearer image quality and smoother operation
邮件服务器被列入黑名单,如何快速解封?
服务器彻底坏了,无法修复,如何利用备份无损恢复成虚拟机?
LeetCode 1477. Find two subarrays with sum as the target value and no overlap
How to mount the original data disk without damage after the reinstallation of proxmox ve?