我面临一个问题......并且正在寻找解决方案或想法。我想同时拖放几个对象(标记,折线,......),但我不知道这是否可能......
有人有想法吗?
提前致谢 !问候,塞巴斯蒂安
谢谢尼尔斯!!!你给我好办法!在这里,您了解了我如何使它成为可能:
google.maps.event.addListener(window["Overlay" + i] , 'click', function(event) {
var path = this.getPath();
google.maps.event.addListener(path, 'set_at', function(indEdited,newLatLng){
var oo = this.getAt(indEdited);
diffLat = (newLatLng.lat() - oo.lat());
diffLng = (newLatLng.lng() - oo.lng());
moveOverlay(this,indEdited,diffLat,diffLng);
var temp = "Do you want to me the others overlays ?"
if (fromPath == lastPath )
{
if ( confirm(temp) ){
moveOthersOverlays(diffLat,diffLng);
}
}
});
});