Add type VectorLayerOptions

This commit is contained in:
Éric Lemoine
2013-03-17 22:33:02 +01:00
parent b381b28169
commit b7fa22c4d4
3 changed files with 14 additions and 3 deletions

View File

@@ -153,10 +153,15 @@ ol.layer.FeatureCache.prototype.getFeaturesByIds_ = function(ids) {
/**
* @constructor
* @extends {ol.layer.Layer}
* @param {ol.layer.LayerOptions} layerOptions Layer options.
* @param {ol.layer.VectorLayerOptions} layerOptions Layer options.
*/
ol.layer.Vector = function(layerOptions) {
goog.base(this, layerOptions);
goog.base(this, {
opacity: layerOptions.opacity,
source: layerOptions.source,
visible: layerOptions.visible
});
/**
* @private