Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
标记会打开一个包含几段文本的窗口。当用户单击标记时,地图会自行重新定位(通常是向北移动地图)以显示弹出窗口。
有没有防止这种重新定位动作的方法?
设置 disableAutoPan 选项:
infowindow.setOptions({disableAutoPan: true});
文档在这里