OpenLayers 2有一个非常有用的map.zoomToExtent(extent)功能.OpenLayers 3中有类似的东西吗?我可以获得感兴趣的程度source.getExtent(),但我无法弄清楚如何将该范围应用为"缩放级别".
map.zoomToExtent(extent)
source.getExtent()
openlayers openlayers-3
openlayers ×1
openlayers-3 ×1