【发布时间】:2016-08-18 12:05:56
【问题描述】:
我有一个问题。我需要知道开放图层地图的实际缩放比例
$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
【问题讨论】:
标签: javascript ionic-framework openlayers-3 angular-openlayers