gpt4 book ai didi

javascript - Google Maps API 3. 叠加层中的文本选择

转载 作者:行者123 更新时间:2023-11-28 10:30:28 25 4
gpt4 key购买 nike

如何在叠加层中进行文本选择?现在我的叠加层对于文本选择无效并在我双击叠加层时创建缩放。

http://img121.imageshack.us/img121/9022/overlayph.png

最佳答案

请看文档,静态函数preventMapHitsAndGesturesFrom可能就是你想要的。

preventMapHitsAndGesturesFrom(element) Parameters:

element:  Element

Return Value: None Stops click, tap, drag, and wheel events on theelement from bubbling up to the map. Use this to prevent map draggingand zooming, as well as map "click" events.

https://developers.google.com/maps/documentation/javascript/reference/overlay-view#OverlayView.preventMapHitsAndGesturesFrom

关于javascript - Google Maps API 3. 叠加层中的文本选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3256062/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com