I posted this question to change maxZoom in runtime using openlayers3 and that works perfect:
map.setView(new ol.View({
zoom: 10,
maxZoom: 17,
minZoom: 10,
}));
However, im trying to integrate this solution using the angular-openlayers-directive and the map is disappearing. Here a Plunker demo failing. I tried creating new directive and also didn't work.
olData.getMap().then(function(map){
map.setView(new ol.View({
zoom: 11,
maxZoom: 11,
minZoom: 0,
}));
});
Any suggestions on how to integrate this and if you could make it work in the Plunker demo would be great.