简体   繁体   English

如何在Mapbox iOS SDK 3.0版中创建自定义图像标记?

[英]How would I create a custom image marker in version 3.0 of the Mapbox iOS SDK?

How would I create a custom image marker in version 3.0 of the Mapbox iOS SDK? 如何在Mapbox iOS SDK 3.0版中创建自定义图像标记?

I am trying to create a mapView that shows a bunch of images as map annotations. 我正在尝试创建一个mapView来显示一堆图像作为地图注释。 These images are downloaded remotely using a UIImageView category. 这些图像使用UIImageView类别远程下载。

I looked through the examples online, but the "Custom Image Marker" example found here seems a little outdated. 我在网上浏览了这些示例,但此处找到的“自定义图像标记”示例似乎有些过时了。

An example of what I'd like to create is attached below: 以下是我要创建的示例:

在此处输入图片说明

Mapbox's documentation isn't very well organized at the moment. Mapbox的文档目前组织得不够好。 The link you need for version 3.0 custom marker is here. 3.0版自定义标记所需的链接在此处。

I've just started playing around with Mapbox and custom markers. 我刚刚开始使用Mapbox和自定义标记。 I've used their provided Tower of Pisa images just to try it out. 我已经使用了他们提供的比萨斜塔图片来进行尝试。 Those work fine but I've had trouble getting my own images to work. 这些工作正常,但是我无法使自己的图像正常工作。 Let me know how you do. 让我知道你的情况。

Good luck! 祝好运!

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

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