message: fix: fix element may drawn in the wrong layer when using incremental in multiple layers.
diff: @@ -560,6 +560,10 @@ Painter.prototype = {
  if (this._layerConfig[zlevel]) {
  util.merge(layer, this._layerConfig[zlevel], true);
  }
  + // TODO Remove EL_AFTER_INCREMENTAL_INC magic number
  + else if (this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC]) {
  + util.merge(layer, this._layerConfig[zlevel - EL_AFTER_INCREMENTAL_INC], true);
  + }
  if (virtual) {
  layer.virtual = virtual;
  @@ -712,12 +716,26 @@ Painter.prototype = {
  var prevLayer = null;
  var incrementalLayerCount = 0;
  + var prevZlevel;
  for (var i = 0; i < list.length; i++) {
  var el = list[i];
  var zlevel = el.zlevel;
  var layer;
  - // PENDING If change one incremental element style ?
  - // TODO Where there are non-incremental elements between incremental elements.
  +
  + if (prevZlevel !== zlevel) {
  + prevZlevel = zlevel;
  + incrementalLayerCount = 0;
  + }
  +
  + // TODO Not use magic number on zlevel.
  +
  + // Each layer with increment element can be separated to 3 layers.
  + // (Other Element drawn after incremental element)
  + // -----------------zlevel + EL_AFTER_INCREMENTAL_INC--------------------
  + // (Incremental element)
  + // ----------------------zlevel + INCREMENTAL_INC------------------------
  + // (Element drawn before incremental element)
  + // --------------------------------zlevel--------------------------------
  if (el.incremental) {
  layer = this.getLayer(zlevel + INCREMENTAL_INC, this._needsManuallyCompositing);
  layer.incremental = true;
  @@ -812,6 +830,7 @@ Painter.prototype = {
  for (var i = 0; i < this._zlevelList.length; i++) {
  var _zlevel = this._zlevelList[i];
  + // TODO Remove EL_AFTER_INCREMENTAL_INC magic number
  if (_zlevel === zlevel || _zlevel === zlevel + EL_AFTER_INCREMENTAL_INC) {
  var layer = this._layers[_zlevel];
  util.merge(layer, layerConfig[zlevel], true);
  