当前位置:网站首页>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"
}
}]
边栏推荐
- 【深度学习】3分钟入门
- 请将磁盘插入“U盘(H)“的情况&无法访问 磁盘结构损坏且无法读取
- 数值 - number(Lua)
- mysql官网下载:Linux的mysql8.x版本(图文详解)
- 第3章业务功能开发(实现记住账号密码)
- Leetcode brush questions day49
- How to implement safety practice in software development stage
- 麒麟信安中标国网新一代调度项目!
- Examen des lois et règlements sur la sécurité de l'information
- Devops' operational and commercial benefits Guide
猜你喜欢
随机推荐
actionBar 导航栏学习
The mail server is listed in the blacklist. How to unblock it quickly?
Enum + Validation 的个人最佳实践 demo 分享
跟奥巴马一起画方块(Lua)
【网络攻防原理与技术】第5章:拒绝服务攻击
Biped robot controlled by Arduino
datepicket和timepicket,日期、时间选择器的功能和用法
Solidity 开发环境搭建
Jenkins发布uniapp开发的H5遇到的问题
百度地图自定义样式向右拖拽导致全球地图经度0度无法正常显示
LeetCode 497(C#)
[source code interpretation] | source code interpretation of livelistenerbus
使用Stace排除故障的5种简单方法
Solidity函数学习
【TPM2.0原理及应用指南】 16、17、18章
使用popupwindow創建对话框风格的窗口
第1章CRM核心业务介绍
Linux 安装mysql8.X超详细图文教程
第2章搭建CRM项目开发环境(数据库设计)
With the latest Alibaba P7 technology system, mom doesn't have to worry about me looking for a job anymore