Instead of changing the button opacity in the control, only add/remove a css class (ol-hidden). This let the developer easily change the behavior by updating the css.
38 lines
539 B
JavaScript
38 lines
539 B
JavaScript
goog.provide('ol.css');
|
|
|
|
|
|
/**
|
|
* The CSS class for hidden feature.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
ol.css.CLASS_HIDDEN = 'ol-hidden';
|
|
|
|
|
|
/**
|
|
* The CSS class that we'll give the DOM elements to have them unselectable.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
ol.css.CLASS_UNSELECTABLE = 'ol-unselectable';
|
|
|
|
|
|
/**
|
|
* The CSS class for unsupported feature.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
ol.css.CLASS_UNSUPPORTED = 'ol-unsupported';
|
|
|
|
|
|
/**
|
|
* The CSS class for controls.
|
|
*
|
|
* @const
|
|
* @type {string}
|
|
*/
|
|
ol.css.CLASS_CONTROL = 'ol-control';
|