问题描述
我正在努力解决在带有圆角的设备上没有显示图钉的问题,home 指示器(例如 iPhone 12 Pro Max)。包括 iPad 在内的所有其他设备都在显示我的图钉(卡车/旗帜......)。下面自己看地图以它们为中心。
这让我发疯。
伪代码:
// Vehicles
vehiclelayer = new Microsoft.Maps.Layer();
vehiclelayer.setZIndex(3);
this.map.layers.insert(vehiclelayer);
...
var pushpin;
var pushpinOptions;
pushpinOptions = {
icon: imageBase64,title: label,visible: true,anchor: anchor,};
var location = new Microsoft.Maps.Location(latitude,longitude);
pushpin = new Microsoft.Maps.pushpin(location,pushpinOptions);
vehiclelayer.add(pushpin,index);
结果:
iPad
iPhone 12 Pro Max
这个问题的根本原因可能是什么?
编辑我已经能够通过从 SDK 测试网站获取图钉示例的简单 Xcode 项目重现该问题。
https://github.com/omatrot/wkwebview/tree/main/wkwebview
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)