Google maps error: Marker's position is not updated after drag

后端 未结 2 1590
清酒与你
清酒与你 2021-01-18 10:38

I set up a marker an set it\'s draggable state to true. But when I call marker.getPosition() I am always getting the same location, like marker\'s position is n

2条回答
  •  醉梦人生
    2021-01-18 11:11

    You should implement OnMarkerDragListener() in your main activity. And inside the method onMarkerDragEnd() you can get the position of your marker (by using its ID)

提交回复
热议问题