Mud*_*rif 4 xml android google-maps-markers locationlistener
我正在研究谷歌地图和位置监听器。我正在使用位置侦听器通过移动在地图上绘制折线。现在我想要折线上的起点和当前位置。我将自定义图标设置为标记,但它出现在折线的左侧。我希望它精确地位于折线的中心和终点。任何解决方案,??
在这种情况下,您可以设置标记锚点。mMap.addMarker(new MarkerOptions().anchor(0.5f, 0.5f).position(latLngArrayList.get(0)).icon(startPointIcon).title("Start"));