Merge pull request #385 from elemoine/385
Rule-based styling does not work in hosted style-rules example
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@exportClass ol.layer.Vector ol.layer.LayerOptions
|
||||
@exportClass ol.layer.Vector ol.layer.VectorLayerOptions
|
||||
|
||||
@exportProperty ol.layer.Vector.prototype.parseFeatures
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user