let map = new ol.Map({
view: new ol.View({
center: [16110, 16262],
zoom: 12,
minZoom: 12,
maxZoom: 20
}),
controls: [
new ol.control.Zoom({
className: "ol-zoom-plugin"
}),
new ol.control.Attribution({
className: "ol-attribution ol-attribution-plugin",
collapsible: false
}),
new ol.control.OverviewMap({
collapsible: false
})
],
interactions: ol.interaction.defaults().extend([dragZoom])
});
通过此代码,ol.control.OverviewMap(collpasible false)是div,概述为空而没有框等。主要的ol.Map显示正确。我想,这是错误。或者我的错误?