升级到OpenLayers 6.5时,不再显示移位缩放矩形边框。缩放功能本身可以工作,但边框消失了。有什么想法吗?
答案 0 :(得分:1)
"边界"在openlayers下的css /目录中找到的ol.css样式表文件中定义。因此,请确保您的HTML包含以下内容:
<link rel="stylesheet" href="/path/to/css/ol.css" type="text/css">
或定义sytle in-line,如:
<style>
.ol-box {
box-sizing: border-box;
border-radius: 2px;
border: 2px solid blue;
}
</style>