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

标签 javascript google-maps-api-3 textselection overlays

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

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 the element from bubbling up to the map. Use this to prevent map dragging and 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/

相关文章:

JavaScript:push 方法来平均数组

android-actionbar - android webview : prevent text selection actionMode actionBar

emacs - 当且仅当区域在 Emacs 中处于事件状态时,标记是否处于事件状态?

javascript - 浏览器页面中选定文本的坐标

javascript - 无需imap直接从服务器获取gmail附件

Javascript:onkeyup 与 onsubmit 相处不来

javascript - 相当于 FF 和 IE 中的 'window.location.ancestorOrigins'

css - 如何从路线图 View 中移除山影(缩放级别 <13)

javascript - 如何获取地理位置并显示在 map 上

java - 获取随机 getmapASync 空指针异常