【问题标题】:Android: custom marker clusterAndroid:自定义标记集群
【发布时间】:2015-10-05 16:09:57
【问题描述】:

您好,我必须实现自定义标记,例如此处图片中的标记 https://www.dropbox.com/s/cwsq8hpkmeypo4b/AndroidMap.png?dl=0 有人可以建议我一些教程或参考,提前谢谢

【问题讨论】:

    标签: android maps markers personalization


    【解决方案1】:

    如果你使用Google Maps Android API,你可以在Marker类中使用setIcon()方法。

    阅读how to customize the marker image上的文档

    【讨论】:

    • 我阅读了文档,但我不明白如何创建附加到每个标记的图像数组,因为在我的图片中我必须使用画布?谢谢
    【解决方案2】:

    如果您希望使用自定义集群图标实现集群,一个很好的起点是 Google Maps Android API 实用程序。

    这里有一个很好的入门指南: https://developers.google.com/maps/documentation/android-api/utility/marker-clustering

    祝你好运!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-02
      • 1970-01-01
      • 2016-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多