当前位置:网站首页>Dragging the custom style of Baidu map to the right makes the global map longitude 0 unable to be displayed normally
Dragging the custom style of Baidu map to the right makes the global map longitude 0 unable to be displayed normally
2022-07-07 17:38:00 【Zi Yu】
problem
After solving the problem of custom style loading white blocks , Find the longitude of the dragging map on the world 0 Incomplete display at .
Problem code
setMapStyle
Set up personalized maps , Parameters are personalized configuration objects
map.setMapStyleV2({
styleJson: mapStyles
});
Official explanation
The official reply is obvious , There is no official solution for the time being , You need to adjust and deal with it yourself
Custom style 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 648(C#)
actionBar 导航栏学习
Mysql 索引命中级别分析
Examen des lois et règlements sur la sécurité de l'information
DevOps 的运营和商业利益指南
[fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
在窗口上面显示进度条
Nerf: the ultimate replacement for deepfake?
Rpcms method of obtaining articles under the specified classification
到底有多二(Lua)
第3章业务功能开发(用户访问项目)
datepicket和timepicket,日期、时间选择器的功能和用法
alertDialog創建对话框
[distributed theory] (I) distributed transactions
What is cloud computing?
【OKR目标管理】案例分析
【可信计算】第十一次课:TPM密码资源管理(三) NV索引与PCR
[source code interpretation] | source code interpretation of livelistenerbus
[fan Tan] those stories that seem to be thinking of the company but are actually very selfish (I: building wheels)
【网络攻防原理与技术】第3章:网络侦察技术