当前位置:网站首页>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"
}
}]
边栏推荐
- [fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
- 【TPM2.0原理及应用指南】 1-3章
- Function and usage of calendar view component
- ViewSwitcher的功能和用法
- 请将磁盘插入“U盘(H)“的情况&无法访问 磁盘结构损坏且无法读取
- Solidity 开发环境搭建
- Create dialog style windows with popupwindow
- 麒麟信安云平台全新升级!
- Biped robot controlled by Arduino
- viewflipper的功能和用法
猜你喜欢

麒麟信安云平台全新升级!

With the latest Alibaba P7 technology system, mom doesn't have to worry about me looking for a job anymore

Nerf: the ultimate replacement for deepfake?

imageswitcher的功能和用法

第3章业务功能开发(安全退出)

【可信计算】第十二次课:TPM授权与会话

toast会在程序界面上显示一个简单的提示信息

What is cloud computing?

datepicket和timepicket,日期、时间选择器的功能和用法

A tour of grpc:03 - proto serialization / deserialization
随机推荐
Define menus using XML resource files
[distributed theory] (I) distributed transactions
mysql官网下载:Linux的mysql8.x版本(图文详解)
无法链接远程redis服务器(解决办法百分百)
L1-027 出租(Lua)
L1-025 正整数A+B(Lua)
策略模式 - Unity
麒麟信安携异构融合云金融信创解决方案亮相第十五届湖南地区金融科技交流会
运行yolo v5-5.0版本报错找不到SPPF错误,进行解决
MySQL implements the query of merging two fields into one field
DatePickerDialog和trimepickerDialog
深入浅出图解CNN-卷积神经网络
Repair method of firewall system crash and file loss, material cost 0 yuan
Rpcms method of obtaining articles under the specified classification
[Huang ah code] Why do I suggest you choose go instead of PHP?
Lex & yacc of Pisa proxy SQL parsing
Matplotlib绘图界面设置
99% of users often make mistakes in power Bi cloud reports
让保险更“保险”!麒麟信安一云多芯云桌面中标中国人寿, 助力金融保险信息技术创新发展
calendarview日历视图组件的功能和用法