当前位置:网站首页>百度地图自定义样式向右拖拽导致全球地图经度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"
}
}]
边栏推荐
- Problems encountered in Jenkins' release of H5 developed by uniapp
- 【网络攻防原理与技术】第7章:口令攻击技术 第8章:网络监听技术
- Mrs offline data analysis: process OBS data through Flink job
- Leetcode brush questions day49
- 【网络攻防原理与技术】第4章:网络扫描技术
- 责任链模式 - Unity
- LeetCode 497(C#)
- 使用Stace排除故障的5种简单方法
- Shallow understanding Net core routing
- LeetCode 312. Poke balloon daily
猜你喜欢

mysql官网下载:Linux的mysql8.x版本(图文详解)

【信息安全法律法规】复习篇

Is AI more fair than people in the distribution of wealth? Research on multiplayer game from deepmind

策略模式 - Unity

麒麟信安携异构融合云金融信创解决方案亮相第十五届湖南地区金融科技交流会

专精特新软件开发类企业实力指数发布,麒麟信安荣誉登榜

第3章业务功能开发(实现记住账号密码)

命令模式 - Unity

Linux 安装mysql8.X超详细图文教程

Nerf: the ultimate replacement for deepfake?
随机推荐
Skimage learning (2) -- RGB to grayscale, RGB to HSV, histogram matching
DNS 系列(一):为什么更新了 DNS 记录不生效?
DevOps 的运营和商业利益指南
Matplotlib绘图界面设置
The top of slashdata developer tool is up to you!!!
[fan Tan] after the arrival of Web3.0, where should testers go? (ten predictions and suggestions)
[video / audio data processing] Shanghai daoning brings you elecard download, trial and tutorial
LeetCode 300. Daily question of the longest increasing subsequence
【饭谈】那些看似为公司着想,实际却很自私的故事 (一:造轮子)
【黄啊码】为什么我建议您选择go,而不选择php?
第3章业务功能开发(安全退出)
Repair method of firewall system crash and file loss, material cost 0 yuan
【信息安全法律法规】复习篇
【可信计算】第十二次课:TPM授权与会话
MRS离线数据分析:通过Flink作业处理OBS数据
Lex & yacc of Pisa proxy SQL parsing
NeRF:DeepFake的最终替代者?
管理VDI的几个最佳实践
本周小贴士#140:常量:安全习语
SlashData开发者工具榜首等你而定!!!