Merge pull request #385 from elemoine/385

Rule-based styling does not work in hosted style-rules example
This commit is contained in:
Éric Lemoine
2013-03-17 22:23:15 -07:00
3 changed files with 14 additions and 3 deletions

View File

@@ -100,6 +100,12 @@
@exportObjectLiteralProperty ol.layer.LayerOptions.source ol.source.Source
@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
@exportObjectLiteralProperty ol.AnchoredElementOptions.element Element|undefined
@exportObjectLiteralProperty ol.AnchoredElementOptions.map ol.Map|undefined

View File

@@ -1,3 +1,3 @@
@exportClass ol.layer.Vector ol.layer.LayerOptions
@exportClass ol.layer.Vector ol.layer.VectorLayerOptions
@exportProperty ol.layer.Vector.prototype.parseFeatures

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