ol-ext
ol-ext copied to clipboard
How to disable the ol.control.Button
I would like my ol.control.Button to have disabled attribute. How can I achieve this?
So, enabled button is like:
And, disabled button is like:
Button control can't be disabled you have to handle it in your listener.
You can use Toggle button that can be disabled (using setDisable()).