【问题标题】:Custom Marker icon Google Maps iOS with image in image? [closed]自定义标记图标 Google Maps iOS 与图像中的图像? [关闭]
【发布时间】:2013-05-31 15:17:06
【问题描述】:

我尝试在地图中创建许多标记,图标是一个 png 图像,如占位符。 之后我想在每个占位符中设置另一个图像。

looks like this。 我的问题是如何在标记的图像内设置图像。 该怎么做?

【问题讨论】:

    标签: ios google-maps-markers google-maps-sdk-ios


    【解决方案1】:

    您需要编写获取背景图像(例如框架)并添加到子图像(例如食物图片)的代码,以创建组合的UIImage。然后您可以使用组合的UIImage 作为标记的图标。

    查看这些问题,了解如何将 2 个 UIImage 对象绘制成单个 UIImage 的示例:

    Draw another image on a UIImage

    Attempting to draw image on top of another image using a touch event

    【讨论】:

      猜你喜欢
      • 2021-10-22
      • 2019-11-14
      • 1970-01-01
      • 2017-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-10
      • 1970-01-01
      相关资源
      最近更新 更多