当前位置:网站首页>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"
}
}]
边栏推荐
猜你喜欢
Is AI more fair than people in the distribution of wealth? Research on multiplayer game from deepmind
Functions and usage of viewswitch
麒麟信安操作系统衍生产品解决方案 | 存储多路径管理系统,有效提高数据传输可靠性
【TPM2.0原理及应用指南】 5、7、8章
鲲鹏开发者峰会2022 | 麒麟信安携手鲲鹏共筑计算产业新生态
【TPM2.0原理及应用指南】 9、10、11章
【TPM2.0原理及应用指南】 16、17、18章
datepicket和timepicket,日期、时间选择器的功能和用法
User defined view essential knowledge, Android R & D post must ask 30+ advanced interview questions
本周小贴士#136:无序容器
随机推荐
本周小贴士#136:无序容器
toast会在程序界面上显示一个简单的提示信息
Actionbar navigation bar learning
麒麟信安加入宁夏商用密码协会
Solidity 开发环境搭建
[fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
使用 xml资源文件定义菜单
L1-027 出租(Lua)
Examen des lois et règlements sur la sécurité de l'information
Repair method of firewall system crash and file loss, material cost 0 yuan
[source code interpretation] | source code interpretation of livelistenerbus
企业即时通讯软件是什么?它有哪些优势呢?
简单的loading动画
Functions and usage of tabhost tab
Enum + Validation 的个人最佳实践 demo 分享
状态模式 - Unity(有限状态机)
Flash build API Service - generate API documents
Function and usage of calendar view component
LeetCode1051(C#)
第2章搭建CRM项目开发环境(数据库设计)