how to get the current zoom in openlayers
<p>i have a question. i need to know the actual zoom of the open layers map</p>

<pre><code>$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"
    }));
};
</code></pre>

<p>i try with <code>map.getZoom()</code> but it doesn't work.
the logcat throws me a</p>

<pre><code>Uncaught TypeError: Object #&lt;S&gt; has no method 'getZoom'
</code></pre>

<p>i'm using the openlayers Version: v3.16.0</p>