Default value for zIndex

This commit is contained in:
Tim Schaub
2013-10-02 16:37:19 -06:00
parent 43c581ef5f
commit bfa257eac1
20 changed files with 262 additions and 124 deletions
+3 -2
View File
@@ -10,7 +10,7 @@ goog.require('ol.style.Literal');
* fontSize: number,
* text: string,
* opacity: number,
* zIndex: (number|undefined)}}
* zIndex: number}}
*/
ol.style.TextLiteralOptions;
@@ -43,7 +43,8 @@ ol.style.TextLiteral = function(options) {
/** @type {number} */
this.opacity = options.opacity;
/** @type {number|undefined} */
goog.asserts.assertNumber(options.zIndex, 'zIndex must be a number');
/** @type {number} */
this.zIndex = options.zIndex;
};