Google maps moving marker on click

后端 未结 3 1931
傲寒
傲寒 2021-02-13 00:45

What I want to do is,

on my map, when I click somewhere on the map, it shows a marker on the point, then I click different point on the map then it shows a another mark

3条回答
  •  温柔的废话
    2021-02-13 01:18

    Another solution is to move a marker, for that you just user marker.setPosition(). (thanks kjy112 for the warning :)

    
    
    
    
    
    
    
    
    
    
    

提交回复
热议问题