我有这两行
map.panTo(respectiveMarker.getPosition());//Center in map the respective marker
infoWindow.open(map, respectiveMarker);
执行infoWindow.open时,地图平移到边缘。 如果我删除此行,则地图会按预期平移到标记。
有什么想法吗?
答案 0 :(得分:1)
你应该在InfoWindow中将disableAutoPan设置为true,这将阻止地图在infowindow打开时移动。