Geolocation: moving only google maps marker without reload the map

后端 未结 2 1214
执笔经年
执笔经年 2020-12-28 23:34

I need to update only the marker when the device is moving or when the device is getting more accuracy. When the position change also reload the map and I need to move only

2条回答
  •  梦毁少年i
    2020-12-29 00:20

    one easy way to do is, simply call map.clearOverlays(); then read add new positions with map.addOverlay()

提交回复
热议问题