Add type VectorLayerOptions
This commit is contained in:
@@ -100,6 +100,12 @@
|
|||||||
@exportObjectLiteralProperty ol.layer.LayerOptions.source ol.source.Source
|
@exportObjectLiteralProperty ol.layer.LayerOptions.source ol.source.Source
|
||||||
@exportObjectLiteralProperty ol.layer.LayerOptions.visible boolean|undefined
|
@exportObjectLiteralProperty ol.layer.LayerOptions.visible boolean|undefined
|
||||||
|
|
||||||
|
@exportObjectLiteral ol.layer.VectorLayerOptions
|
||||||
|
@exportObjectLiteralProperty ol.layer.VectorLayerOptions.opacity number|undefined
|
||||||
|
@exportObjectLiteralProperty ol.layer.VectorLayerOptions.source ol.source.Source
|
||||||
|
@exportObjectLiteralProperty ol.layer.VectorLayerOptions.style ol.style.Style|undefined
|
||||||
|
@exportObjectLiteralProperty ol.layer.VectorLayerOptions.visible boolean|undefined
|
||||||
|
|
||||||
@exportObjectLiteral ol.AnchoredElementOptions
|
@exportObjectLiteral ol.AnchoredElementOptions
|
||||||
@exportObjectLiteralProperty ol.AnchoredElementOptions.element Element|undefined
|
@exportObjectLiteralProperty ol.AnchoredElementOptions.element Element|undefined
|
||||||
@exportObjectLiteralProperty ol.AnchoredElementOptions.map ol.Map|undefined
|
@exportObjectLiteralProperty ol.AnchoredElementOptions.map ol.Map|undefined
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
@exportClass ol.layer.Vector ol.layer.LayerOptions
|
@exportClass ol.layer.Vector ol.layer.VectorLayerOptions
|
||||||
|
|
||||||
@exportProperty ol.layer.Vector.prototype.parseFeatures
|
@exportProperty ol.layer.Vector.prototype.parseFeatures
|
||||||
|
|||||||
@@ -153,10 +153,15 @@ ol.layer.FeatureCache.prototype.getFeaturesByIds_ = function(ids) {
|
|||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @extends {ol.layer.Layer}
|
* @extends {ol.layer.Layer}
|
||||||
* @param {ol.layer.LayerOptions} layerOptions Layer options.
|
* @param {ol.layer.VectorLayerOptions} layerOptions Layer options.
|
||||||
*/
|
*/
|
||||||
ol.layer.Vector = function(layerOptions) {
|
ol.layer.Vector = function(layerOptions) {
|
||||||
goog.base(this, layerOptions);
|
|
||||||
|
goog.base(this, {
|
||||||
|
opacity: layerOptions.opacity,
|
||||||
|
source: layerOptions.source,
|
||||||
|
visible: layerOptions.visible
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
Reference in New Issue
Block a user