Default value for zIndex
This commit is contained in:
@@ -10,7 +10,7 @@ goog.require('ol.style.Literal');
|
||||
* strokeColor: (string|undefined),
|
||||
* strokeOpacity: (number|undefined),
|
||||
* strokeWidth: (number|undefined),
|
||||
* zIndex: (number|undefined)}}
|
||||
* zIndex: number}}
|
||||
*/
|
||||
ol.style.PolygonLiteralOptions;
|
||||
|
||||
@@ -67,7 +67,9 @@ ol.style.PolygonLiteral = function(options) {
|
||||
'Either fillColor and fillOpacity or ' +
|
||||
'strokeColor and strokeOpacity and strokeWidth must be set');
|
||||
|
||||
/** @type {number|undefined} */
|
||||
goog.asserts.assertNumber(
|
||||
options.zIndex, 'zIndex must be a number');
|
||||
/** @type {number} */
|
||||
this.zIndex = options.zIndex;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user