ol.layer.Vector pass original options to parent

This makes it possible to pass arbitrary property to ol.layer.Vector and use layer.get('property_name') to get the value of properties.
This commit is contained in:
Éric Lemoine
2013-08-28 14:13:37 +02:00
parent e8ddecc8b1
commit 3deeaa21c7
+1 -5
View File
@@ -245,11 +245,7 @@ ol.layer.VectorLayerEventObject;
*/ */
ol.layer.Vector = function(options) { ol.layer.Vector = function(options) {
goog.base(this, { goog.base(this, /** @type {ol.layer.LayerOptions} */ (options));
opacity: options.opacity,
source: options.source,
visible: options.visible
});
/** /**
* @private * @private