我想要一个圆形物体来改变位置,我会想象我和标记一样做 -
marker.setPosition(latlng);
所以 -
circle.setPosition(latlng);
但这不起作用.标记会改变位置,但圆圈不会.我能找到的就是这个链接 - https://developers.google.com/maps/articles/mvcfun
这似乎是最好的方法吗?我没有准备好通过它,所以我将尝试实现上述.
geo*_*zip 10
你需要改变圆的中心属性来移动它(它没有位置属性)
circle.setCenter(latlng)
https://developers.google.com/maps/documentation/javascript/reference#Circle
| 归档时间: | 
 | 
| 查看次数: | 2471 次 | 
| 最近记录: |