从弹出窗口复制内容
copy content from popup
如何实现机会复制内容弹开?
In OpenLayers-2 I could select part of content popup and copy it.
在 OL-3 中缺少此选项。
Popup-open has disable default option select content from popup.
我认为这与这个问题有关:https://github.com/openlayers/openlayers/issues/6720
但是我认为 .ol-selectable
class 的设置 user-select: auto
没有预期的效果,因为根据 the spec auto
的值将如果此元素的父级 user-select
的计算值为 none
,则结果为 none
,由于 user-select
在 [=18= 上设置,因此它在 OpenLayers 中].
尝试在加载 OpenLayers CSS 后将此 CSS 添加到您的页面:
.ol-selectable {
-webkit-touch-callout: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
如何实现机会复制内容弹开?
In OpenLayers-2 I could select part of content popup and copy it.
在 OL-3 中缺少此选项。
Popup-open has disable default option select content from popup.
我认为这与这个问题有关:https://github.com/openlayers/openlayers/issues/6720
但是我认为 .ol-selectable
class 的设置 user-select: auto
没有预期的效果,因为根据 the spec auto
的值将如果此元素的父级 user-select
的计算值为 none
,则结果为 none
,由于 user-select
在 [=18= 上设置,因此它在 OpenLayers 中].
尝试在加载 OpenLayers CSS 后将此 CSS 添加到您的页面:
.ol-selectable {
-webkit-touch-callout: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}