问题描述
我使用OpenLayers版本6.4.3。
我正在使用链接到基础地图的概览地图。
var overviewMapControl = new ol.control.OverviewMap({
className: 'ol-overviewmap ol-custom-overviewmap',layers: [
new ol.layer.Tile({
source: osmSource
})
],view : new ol.View({
projection: 'epsg:5179',maxZoom : 4,minZoom: 4,zoom: 4
}),collapseLabel: '\u00BB',label: '\u00AB',collapsed: true
});
var map = new ol.Map({
controls: ol.control.defaults().extend([
overviewMapControl
]),layers: [
new ol.layer.Tile({
source : osmSource
})
],target: 'map',view: new ol.View({
projection: 'epsg:5179',zoom: 11,minZoom: 6,maxZoom: 18
}),});
https://openlayers.org/en/latest/examples/overviewmap-custom.html
但是我想要的是调整Overviewmap中红色矩形的大小。
有人知道如何调整总览图的矩形区域吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)