Be consistent with constant names

This commit is contained in:
Bruno Binet
2013-09-19 16:54:39 +02:00
parent 690ed1ed8e
commit d1e9dd964b

View File

@@ -19,8 +19,8 @@ ol.layer.LayerProperty = {
OPACITY: 'opacity', OPACITY: 'opacity',
SATURATION: 'saturation', SATURATION: 'saturation',
VISIBLE: 'visible', VISIBLE: 'visible',
MAXRESOLUTION: 'maxresolution', MAX_RESOLUTION: 'maxResolution',
MINRESOLUTION: 'minresolution' MIN_RESOLUTION: 'minResolution'
}; };
@@ -77,8 +77,8 @@ ol.layer.Base = function(options) {
ol.Object.getChangeEventType(ol.layer.LayerProperty.HUE), ol.Object.getChangeEventType(ol.layer.LayerProperty.HUE),
ol.Object.getChangeEventType(ol.layer.LayerProperty.OPACITY), ol.Object.getChangeEventType(ol.layer.LayerProperty.OPACITY),
ol.Object.getChangeEventType(ol.layer.LayerProperty.SATURATION), ol.Object.getChangeEventType(ol.layer.LayerProperty.SATURATION),
ol.Object.getChangeEventType(ol.layer.LayerProperty.MAXRESOLUTION), ol.Object.getChangeEventType(ol.layer.LayerProperty.MAX_RESOLUTION),
ol.Object.getChangeEventType(ol.layer.LayerProperty.MINRESOLUTION), ol.Object.getChangeEventType(ol.layer.LayerProperty.MIN_RESOLUTION),
goog.events.EventType.LOAD goog.events.EventType.LOAD
], ],
this.handleLayerChange, false, this); this.handleLayerChange, false, this);
@@ -188,7 +188,7 @@ ol.layer.Base.prototype.getLayerStatesArray = goog.abstractMethod;
*/ */
ol.layer.Base.prototype.getMaxResolution = function() { ol.layer.Base.prototype.getMaxResolution = function() {
return /** @type {number} */ ( return /** @type {number} */ (
this.get(ol.layer.LayerProperty.MAXRESOLUTION)); this.get(ol.layer.LayerProperty.MAX_RESOLUTION));
}; };
goog.exportProperty( goog.exportProperty(
ol.layer.Base.prototype, ol.layer.Base.prototype,
@@ -201,7 +201,7 @@ goog.exportProperty(
*/ */
ol.layer.Base.prototype.getMinResolution = function() { ol.layer.Base.prototype.getMinResolution = function() {
return /** @type {number} */ ( return /** @type {number} */ (
this.get(ol.layer.LayerProperty.MINRESOLUTION)); this.get(ol.layer.LayerProperty.MIN_RESOLUTION));
}; };
goog.exportProperty( goog.exportProperty(
ol.layer.Base.prototype, ol.layer.Base.prototype,
@@ -334,7 +334,7 @@ goog.exportProperty(
* @param {number} maxResolution MaxResolution. * @param {number} maxResolution MaxResolution.
*/ */
ol.layer.Base.prototype.setMaxResolution = function(maxResolution) { ol.layer.Base.prototype.setMaxResolution = function(maxResolution) {
this.set(ol.layer.LayerProperty.MAXRESOLUTION, maxResolution); this.set(ol.layer.LayerProperty.MAX_RESOLUTION, maxResolution);
}; };
goog.exportProperty( goog.exportProperty(
ol.layer.Base.prototype, ol.layer.Base.prototype,
@@ -346,7 +346,7 @@ goog.exportProperty(
* @param {number} minResolution MinResolution. * @param {number} minResolution MinResolution.
*/ */
ol.layer.Base.prototype.setMinResolution = function(minResolution) { ol.layer.Base.prototype.setMinResolution = function(minResolution) {
this.set(ol.layer.LayerProperty.MINRESOLUTION, minResolution); this.set(ol.layer.LayerProperty.MIN_RESOLUTION, minResolution);
}; };
goog.exportProperty( goog.exportProperty(
ol.layer.Base.prototype, ol.layer.Base.prototype,