当前位置:网站首页>百度地图自定义样式向右拖拽导致全球地图经度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"
}
}]
边栏推荐
猜你喜欢
Sator推出Web3遊戲“Satorspace” ,並上線Huobi
PLC: automatically correct the data set noise, wash the data set | ICLR 2021 spotlight
【可信计算】第十三次课:TPM扩展授权与密钥管理
Sator launched Web3 game "satorspace" and launched hoobi
99%的人都不知道|私有化部署还永久免费的即时通讯软件!
企业即时通讯软件是什么?它有哪些优势呢?
Mrs offline data analysis: process OBS data through Flink job
鲲鹏开发者峰会2022 | 麒麟信安携手鲲鹏共筑计算产业新生态
网络攻防复习篇
The top of slashdata developer tool is up to you!!!
随机推荐
[video / audio data processing] Shanghai daoning brings you elecard download, trial and tutorial
Reflections on "product managers must read: five classic innovative thinking models"
[Seaborn] combination chart: pairplot and jointplot
[fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
Rpcms method of obtaining articles under the specified classification
Solidity 开发环境搭建
Shallow understanding Net core routing
LeetCode 535(C#)
第3章业务功能开发(实现记住账号密码)
Matplotlib绘图界面设置
字符串 - string(Lua)
Sator launched Web3 game "satorspace" and launched hoobi
自定义View必备知识,Android研发岗必问30+道高级面试题
本周小贴士#141:注意隐式转换到bool
智慧物流平台:让海外仓更聪明
浅谈 Apache Doris FE 处理查询 SQL 源码解析
LeetCode 648(C#)
Sator推出Web3游戏“Satorspace” ,并上线Huobi
How to choose the appropriate automated testing tools?
第3章业务功能开发(安全退出)