I would like to disable the zoom in button if a user tries to zoom in past a certain level. I would like to disable the zoom out button if a user tries to zoom out past a certain level.
I see that there are minZoom, zoom and maxZoom properties in a View object. Those do correctly prevent a user from zooming past where they should go. However the zoom in and zoom out buttons still look like they work because they are not disabled.
Does anyone have a code snippet, or could point to an example of how buttons on the ol map can be programmatically disabled?