【问题标题】:Google Maps Android polylines are not crossing the center of markersGoogle Maps Android 折线未穿过标记的中心
【发布时间】:2018-11-06 17:44:57
【问题描述】:

从图像中,多段线接触标记的中心底部。我需要折线来接触标记的中心。

【问题讨论】:

    标签: android google-maps


    【解决方案1】:

    您必须通过调用来设置标记的anchor

    marker.setAnchor()
    

    根据地图上标记的位置锚定图像的位置。默认情况下,锚点位于图像底部的中心点。

    official doc

    【讨论】:

    猜你喜欢
    • 2016-08-25
    • 2015-05-14
    • 2018-12-01
    • 1970-01-01
    • 2018-12-29
    • 2015-11-04
    • 2015-10-27
    • 1970-01-01
    • 2014-11-05
    相关资源
    最近更新 更多