我有个问题。我需要知道开放图层地图的实际缩放比例
$scope.refreshMap = function (lat, long) {
map.setView(new ol.View({
projection: 'EPSG:4326',
center: [long, lat],
zoom: "here I do not know what to put"
}));
};
我尝试map.getZoom()
但它不起作用。logcat 给我一个
Uncaught TypeError: Object #<S> has no method 'getZoom'
我正在使用 openlayers 版本:v3.16.0