Allow z index to be undefined
This commit is contained in:
@@ -325,7 +325,7 @@ ol.replay.canvas.BatchGroup.prototype.finish = function() {
|
|||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.replay.canvas.BatchGroup.prototype.getBatch = function(zIndex, batchType) {
|
ol.replay.canvas.BatchGroup.prototype.getBatch = function(zIndex, batchType) {
|
||||||
var zIndexKey = zIndex.toString();
|
var zIndexKey = goog.isDef(zIndex) ? zIndex.toString() : '0';
|
||||||
var batches = this.batchesByZIndex_[zIndexKey];
|
var batches = this.batchesByZIndex_[zIndexKey];
|
||||||
if (!goog.isDef(batches)) {
|
if (!goog.isDef(batches)) {
|
||||||
batches = {};
|
batches = {};
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ ol.replay.IBatchGroup.prototype.finish = function() {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {number} zIndex Z index.
|
* @param {number|undefined} zIndex Z index.
|
||||||
* @param {ol.replay.BatchType} batchType Batch type.
|
* @param {ol.replay.BatchType} batchType Batch type.
|
||||||
* @return {ol.replay.IBatch} Batch.
|
* @return {ol.replay.IBatch} Batch.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ ol.style.stroke.equals = function(strokeStyle1, strokeStyle2) {
|
|||||||
* @typedef {{fill: ?ol.style.Fill,
|
* @typedef {{fill: ?ol.style.Fill,
|
||||||
* image: ?ol.style.Image,
|
* image: ?ol.style.Image,
|
||||||
* stroke: ?ol.style.Stroke,
|
* stroke: ?ol.style.Stroke,
|
||||||
* zIndex: number}}
|
* zIndex: (number|undefined)}}
|
||||||
*/
|
*/
|
||||||
ol.style.Style;
|
ol.style.Style;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user