简体   繁体   English

如何从Apple Watch的地图中获取图像

[英]How to get the image from map in apple watch

I am creating a map with custom image for annotation, I want an image from my map object. 我正在创建带有用于注释的自定义图像的地图,我希望从我的地图对象中获取图像。 Is it possible? 可能吗?

Assuming you are using WKInterfaceMap it is not possible to get the map image (at least not that I know of). 假设您正在使用WKInterfaceMap ,则不可能获得地图图像(至少不是我所知道的)。 You can create a map image locally in your map extension and then set that image on a WKInterfaceImage or WKInterfaceGroup . 您可以在地图扩展中本地创建地图图像,然后在WKInterfaceImageWKInterfaceGroup上设置该图像。 I am not sure what would be involved in creating a map image with MapKit. 我不确定用MapKit创建地图图像会涉及什么。 I create map images from tiles for use in my app and set it as the background on a WKInterfaceGroup to create a UI that looks like this Is it possible to position views on top of each other . 我从图块创建地图图像以供我的应用程序使用,并将其设置为WKInterfaceGroup的背景,以创建一个看起来像这样的UI。 是否可以将视图彼此 WKInterfaceGroup

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM