我有个问题.我需要知道开放图层地图的实际缩放
$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"
}));
};
Run Code Online (Sandbox Code Playgroud)
我尝试map.getZoom()但它不起作用.logcat会让我失望
Uncaught TypeError: Object #<S> has no method 'getZoom'
Run Code Online (Sandbox Code Playgroud)
我正在使用openlayers版本:v3.16.0
我想知道我的应用程序在 Android 商店中的应用程序版本。
我需要知道这一点,以便在必要时向用户显示提供更新的消息。我可以获取我安装的版本的应用程序版本(使用 cordova-plugin-app-version ),如下所示:
cordova.getAppVersion.getVersionNumber(function (version) {
console.log("la version de la app es " + version);
$scope.versi = version;
});
Run Code Online (Sandbox Code Playgroud)
但不是 Android 商店应用程序版本。