@artstesh/maps 1.1.35 → 1.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3235,6 +3235,10 @@
3235
3235
  * @default An empty array
3236
3236
  */
3237
3237
  this.requestHeaders = null;
3238
+ /**
3239
+ * The priority of showing - layers with higher zIndex cover others in case of collisions
3240
+ */
3241
+ this.zIndex = 1;
3238
3242
  this.operation = function (d) { var _a; return (_a = d[0]) !== null && _a !== void 0 ? _a : []; };
3239
3243
  }
3240
3244
  /**
@@ -3247,6 +3251,7 @@
3247
3251
  var result = new RasterTileLayerSettings();
3248
3252
  result.maxZoom = model.maxZoom;
3249
3253
  result.minZoom = model.minZoom;
3254
+ result.zIndex = model.zIndex;
3250
3255
  result.projection = model.projection;
3251
3256
  result.opacity = model.opacity;
3252
3257
  result.url = model.url;
@@ -3290,6 +3295,15 @@
3290
3295
  RasterTileLayerSettings.prototype.setMaxZoom = function (maxZoom) {
3291
3296
  return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { maxZoom: maxZoom }));
3292
3297
  };
3298
+ /**
3299
+ * Sets the z-index for the RasterTileLayerSettings.
3300
+ *
3301
+ * @param {number} zIndex - The new z-index to be assigned.
3302
+ * @return {RasterTileLayerSettings} A new RasterTileLayerSettings instance with the updated z-index.
3303
+ */
3304
+ RasterTileLayerSettings.prototype.setZIndex = function (zIndex) {
3305
+ return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { zIndex: zIndex }));
3306
+ };
3293
3307
  /**
3294
3308
  * Sets the minimum zoom level for the Tile Layer.
3295
3309
  *
@@ -3328,6 +3342,8 @@
3328
3342
  return false;
3329
3343
  if (this.minZoom !== model.minZoom)
3330
3344
  return false;
3345
+ if (this.zIndex !== model.zIndex)
3346
+ return false;
3331
3347
  if (this.url !== model.url)
3332
3348
  return false;
3333
3349
  if (this.projection !== model.projection)
@@ -3364,7 +3380,7 @@
3364
3380
  operationType: 'image',
3365
3381
  operation: settings.operation,
3366
3382
  });
3367
- return new ImageLayer__default["default"]({ source: raster, opacity: settings.opacity });
3383
+ return new ImageLayer__default["default"]({ source: raster, opacity: settings.opacity, zIndex: settings.zIndex });
3368
3384
  };
3369
3385
  RasterTileLayerFactory.prototype.getTileFunc = function (settings) {
3370
3386
  var _this = this;