Remove unconditionally exported methods
This commit is contained in:
@@ -198,10 +198,6 @@ ol.layer.Heatmap.prototype.createCircle_ = function() {
|
||||
ol.layer.Heatmap.prototype.getBlur = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.HeatmapLayerProperty.BLUR));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype,
|
||||
'getBlur',
|
||||
ol.layer.Heatmap.prototype.getBlur);
|
||||
|
||||
|
||||
/**
|
||||
@@ -213,10 +209,6 @@ ol.layer.Heatmap.prototype.getGradient = function() {
|
||||
return /** @type {Array.<string>} */ (
|
||||
this.get(ol.layer.HeatmapLayerProperty.GRADIENT));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype,
|
||||
'getGradient',
|
||||
ol.layer.Heatmap.prototype.getGradient);
|
||||
|
||||
|
||||
/**
|
||||
@@ -227,10 +219,6 @@ goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype.getRadius = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.HeatmapLayerProperty.RADIUS));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype,
|
||||
'getRadius',
|
||||
ol.layer.Heatmap.prototype.getRadius);
|
||||
|
||||
|
||||
/**
|
||||
@@ -285,10 +273,6 @@ ol.layer.Heatmap.prototype.handleRender_ = function(event) {
|
||||
ol.layer.Heatmap.prototype.setBlur = function(blur) {
|
||||
this.set(ol.layer.HeatmapLayerProperty.BLUR, blur);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype,
|
||||
'setBlur',
|
||||
ol.layer.Heatmap.prototype.setBlur);
|
||||
|
||||
|
||||
/**
|
||||
@@ -299,10 +283,6 @@ goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype.setGradient = function(colors) {
|
||||
this.set(ol.layer.HeatmapLayerProperty.GRADIENT, colors);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype,
|
||||
'setGradient',
|
||||
ol.layer.Heatmap.prototype.setGradient);
|
||||
|
||||
|
||||
/**
|
||||
@@ -313,7 +293,3 @@ goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype.setRadius = function(radius) {
|
||||
this.set(ol.layer.HeatmapLayerProperty.RADIUS, radius);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Heatmap.prototype,
|
||||
'setRadius',
|
||||
ol.layer.Heatmap.prototype.setRadius);
|
||||
|
||||
@@ -93,10 +93,6 @@ ol.layer.Layer.prototype.getSource = function() {
|
||||
return goog.isDef(source) ?
|
||||
/** @type {ol.source.Source} */ (source) : null;
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Layer.prototype,
|
||||
'getSource',
|
||||
ol.layer.Layer.prototype.getSource);
|
||||
|
||||
|
||||
/**
|
||||
@@ -142,7 +138,3 @@ ol.layer.Layer.prototype.handleSourcePropertyChange_ = function() {
|
||||
ol.layer.Layer.prototype.setSource = function(source) {
|
||||
this.set(ol.layer.LayerProperty.SOURCE, source);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Layer.prototype,
|
||||
'setSource',
|
||||
ol.layer.Layer.prototype.setSource);
|
||||
|
||||
@@ -94,10 +94,6 @@ goog.inherits(ol.layer.Base, ol.Object);
|
||||
ol.layer.Base.prototype.getBrightness = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.LayerProperty.BRIGHTNESS));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getBrightness',
|
||||
ol.layer.Base.prototype.getBrightness);
|
||||
|
||||
|
||||
/**
|
||||
@@ -108,10 +104,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.getContrast = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.LayerProperty.CONTRAST));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getContrast',
|
||||
ol.layer.Base.prototype.getContrast);
|
||||
|
||||
|
||||
/**
|
||||
@@ -122,10 +114,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.getHue = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.LayerProperty.HUE));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getHue',
|
||||
ol.layer.Base.prototype.getHue);
|
||||
|
||||
|
||||
/**
|
||||
@@ -183,10 +171,6 @@ ol.layer.Base.prototype.getExtent = function() {
|
||||
return /** @type {ol.Extent|undefined} */ (
|
||||
this.get(ol.layer.LayerProperty.EXTENT));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getExtent',
|
||||
ol.layer.Base.prototype.getExtent);
|
||||
|
||||
|
||||
/**
|
||||
@@ -198,10 +182,6 @@ ol.layer.Base.prototype.getMaxResolution = function() {
|
||||
return /** @type {number} */ (
|
||||
this.get(ol.layer.LayerProperty.MAX_RESOLUTION));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getMaxResolution',
|
||||
ol.layer.Base.prototype.getMaxResolution);
|
||||
|
||||
|
||||
/**
|
||||
@@ -213,10 +193,6 @@ ol.layer.Base.prototype.getMinResolution = function() {
|
||||
return /** @type {number} */ (
|
||||
this.get(ol.layer.LayerProperty.MIN_RESOLUTION));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getMinResolution',
|
||||
ol.layer.Base.prototype.getMinResolution);
|
||||
|
||||
|
||||
/**
|
||||
@@ -227,10 +203,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.getOpacity = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.LayerProperty.OPACITY));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getOpacity',
|
||||
ol.layer.Base.prototype.getOpacity);
|
||||
|
||||
|
||||
/**
|
||||
@@ -241,10 +213,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.getSaturation = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.LayerProperty.SATURATION));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getSaturation',
|
||||
ol.layer.Base.prototype.getSaturation);
|
||||
|
||||
|
||||
/**
|
||||
@@ -261,10 +229,6 @@ ol.layer.Base.prototype.getSourceState = goog.abstractMethod;
|
||||
ol.layer.Base.prototype.getVisible = function() {
|
||||
return /** @type {boolean} */ (this.get(ol.layer.LayerProperty.VISIBLE));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'getVisible',
|
||||
ol.layer.Base.prototype.getVisible);
|
||||
|
||||
|
||||
/**
|
||||
@@ -292,10 +256,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setBrightness = function(brightness) {
|
||||
this.set(ol.layer.LayerProperty.BRIGHTNESS, brightness);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setBrightness',
|
||||
ol.layer.Base.prototype.setBrightness);
|
||||
|
||||
|
||||
/**
|
||||
@@ -310,10 +270,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setContrast = function(contrast) {
|
||||
this.set(ol.layer.LayerProperty.CONTRAST, contrast);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setContrast',
|
||||
ol.layer.Base.prototype.setContrast);
|
||||
|
||||
|
||||
/**
|
||||
@@ -326,10 +282,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setHue = function(hue) {
|
||||
this.set(ol.layer.LayerProperty.HUE, hue);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setHue',
|
||||
ol.layer.Base.prototype.setHue);
|
||||
|
||||
|
||||
/**
|
||||
@@ -342,10 +294,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setExtent = function(extent) {
|
||||
this.set(ol.layer.LayerProperty.EXTENT, extent);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setExtent',
|
||||
ol.layer.Base.prototype.setExtent);
|
||||
|
||||
|
||||
/**
|
||||
@@ -356,10 +304,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setMaxResolution = function(maxResolution) {
|
||||
this.set(ol.layer.LayerProperty.MAX_RESOLUTION, maxResolution);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setMaxResolution',
|
||||
ol.layer.Base.prototype.setMaxResolution);
|
||||
|
||||
|
||||
/**
|
||||
@@ -370,10 +314,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setMinResolution = function(minResolution) {
|
||||
this.set(ol.layer.LayerProperty.MIN_RESOLUTION, minResolution);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setMinResolution',
|
||||
ol.layer.Base.prototype.setMinResolution);
|
||||
|
||||
|
||||
/**
|
||||
@@ -384,10 +324,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setOpacity = function(opacity) {
|
||||
this.set(ol.layer.LayerProperty.OPACITY, opacity);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setOpacity',
|
||||
ol.layer.Base.prototype.setOpacity);
|
||||
|
||||
|
||||
/**
|
||||
@@ -403,10 +339,6 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setSaturation = function(saturation) {
|
||||
this.set(ol.layer.LayerProperty.SATURATION, saturation);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setSaturation',
|
||||
ol.layer.Base.prototype.setSaturation);
|
||||
|
||||
|
||||
/**
|
||||
@@ -417,7 +349,3 @@ goog.exportProperty(
|
||||
ol.layer.Base.prototype.setVisible = function(visible) {
|
||||
this.set(ol.layer.LayerProperty.VISIBLE, visible);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Base.prototype,
|
||||
'setVisible',
|
||||
ol.layer.Base.prototype.setVisible);
|
||||
|
||||
@@ -155,10 +155,6 @@ ol.layer.Group.prototype.getLayers = function() {
|
||||
return /** @type {!ol.Collection.<ol.layer.Base>} */ (this.get(
|
||||
ol.layer.GroupProperty.LAYERS));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Group.prototype,
|
||||
'getLayers',
|
||||
ol.layer.Group.prototype.getLayers);
|
||||
|
||||
|
||||
/**
|
||||
@@ -170,10 +166,6 @@ goog.exportProperty(
|
||||
ol.layer.Group.prototype.setLayers = function(layers) {
|
||||
this.set(ol.layer.GroupProperty.LAYERS, layers);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Group.prototype,
|
||||
'setLayers',
|
||||
ol.layer.Group.prototype.setLayers);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,10 +52,6 @@ goog.inherits(ol.layer.Tile, ol.layer.Layer);
|
||||
ol.layer.Tile.prototype.getPreload = function() {
|
||||
return /** @type {number} */ (this.get(ol.layer.TileProperty.PRELOAD));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Tile.prototype,
|
||||
'getPreload',
|
||||
ol.layer.Tile.prototype.getPreload);
|
||||
|
||||
|
||||
/**
|
||||
@@ -74,10 +70,6 @@ ol.layer.Tile.prototype.getSource;
|
||||
ol.layer.Tile.prototype.setPreload = function(preload) {
|
||||
this.set(ol.layer.TileProperty.PRELOAD, preload);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Tile.prototype,
|
||||
'setPreload',
|
||||
ol.layer.Tile.prototype.setPreload);
|
||||
|
||||
|
||||
/**
|
||||
@@ -89,10 +81,6 @@ ol.layer.Tile.prototype.getUseInterimTilesOnError = function() {
|
||||
return /** @type {boolean} */ (
|
||||
this.get(ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Tile.prototype,
|
||||
'getUseInterimTilesOnError',
|
||||
ol.layer.Tile.prototype.getUseInterimTilesOnError);
|
||||
|
||||
|
||||
/**
|
||||
@@ -105,7 +93,3 @@ ol.layer.Tile.prototype.setUseInterimTilesOnError =
|
||||
this.set(
|
||||
ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
||||
};
|
||||
goog.exportProperty(
|
||||
ol.layer.Tile.prototype,
|
||||
'setUseInterimTilesOnError',
|
||||
ol.layer.Tile.prototype.setUseInterimTilesOnError);
|
||||
|
||||
Reference in New Issue
Block a user