如何在叠加层中进行文本选择? 现在我的叠加层对于文本选择无效 并在我双击叠加层时创建缩放。
最佳答案
请看文档,静态函数preventMapHitsAndGesturesFrom可能就是你想要的。
preventMapHitsAndGesturesFrom(element) Parameters:
element: Element
Return Value: None Stops click, tap, drag, and wheel events on the element from bubbling up to the map. Use this to prevent map dragging and zooming, as well as map "click" events.
关于javascript - Google Maps API 3. 叠加层中的文本选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3256062/