Vector related exports

This commit is contained in:
Tim Schaub
2013-03-05 18:13:10 +01:00
parent 12bee3178e
commit e1c3faa53e
19 changed files with 116 additions and 70 deletions
+3 -8
View File
@@ -24,12 +24,15 @@ ol.style.LineLiteralOptions;
ol.style.LineLiteral = function(config) {
goog.base(this);
goog.asserts.assertString(config.strokeStyle, 'strokeStyle must be a string');
/** @type {string} */
this.strokeStyle = config.strokeStyle;
goog.asserts.assertNumber(config.strokeWidth, 'strokeWidth must be a number');
/** @type {number} */
this.strokeWidth = config.strokeWidth;
goog.asserts.assertNumber(config.opacity, 'opacity must be a number');
/** @type {number} */
this.opacity = config.opacity;
@@ -47,14 +50,6 @@ ol.style.LineLiteral.prototype.equals = function(lineLiteral) {
};
/**
* @typedef {{strokeStyle: (string|ol.Expression|undefined),
* strokeWidth: (number|ol.Expression|undefined),
* opacity: (number|ol.Expression|undefined)}}
*/
ol.style.LineOptions;
/**
* @constructor