@artstesh/maps 5.2.13 → 5.2.14
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.
- package/dist/esm2022/map/map-plate/layers/raster-tile/raster-tile-layer.factory.mjs +2 -2
- package/dist/esm2022/map/map-plate/layers/raster-tile/raster-tile-layer.settings.mjs +17 -1
- package/dist/esm2022/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.mjs +2 -2
- package/dist/esm2022/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.mjs +17 -1
- package/dist/fesm2022/maps-components-src-map.mjs +17 -1
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +17 -1
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +11 -0
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +11 -0
- package/package.json +1 -1
|
@@ -2558,6 +2558,10 @@ class RasterTileLayerSettings {
|
|
|
2558
2558
|
* @default An empty array
|
|
2559
2559
|
*/
|
|
2560
2560
|
requestHeaders = null;
|
|
2561
|
+
/**
|
|
2562
|
+
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
2563
|
+
*/
|
|
2564
|
+
zIndex = 1;
|
|
2561
2565
|
operation = (d) => d[0] ?? [];
|
|
2562
2566
|
/**
|
|
2563
2567
|
* Creates a copy of the given tile layer settings.
|
|
@@ -2569,6 +2573,7 @@ class RasterTileLayerSettings {
|
|
|
2569
2573
|
const result = new RasterTileLayerSettings();
|
|
2570
2574
|
result.maxZoom = model.maxZoom;
|
|
2571
2575
|
result.minZoom = model.minZoom;
|
|
2576
|
+
result.zIndex = model.zIndex;
|
|
2572
2577
|
result.projection = model.projection;
|
|
2573
2578
|
result.opacity = model.opacity;
|
|
2574
2579
|
result.url = model.url;
|
|
@@ -2612,6 +2617,15 @@ class RasterTileLayerSettings {
|
|
|
2612
2617
|
setMaxZoom(maxZoom) {
|
|
2613
2618
|
return RasterTileLayerSettings.copy({ ...this, maxZoom });
|
|
2614
2619
|
}
|
|
2620
|
+
/**
|
|
2621
|
+
* Sets the z-index for the RasterTileLayerSettings.
|
|
2622
|
+
*
|
|
2623
|
+
* @param {number} zIndex - The new z-index to be assigned.
|
|
2624
|
+
* @return {RasterTileLayerSettings} A new RasterTileLayerSettings instance with the updated z-index.
|
|
2625
|
+
*/
|
|
2626
|
+
setZIndex(zIndex) {
|
|
2627
|
+
return RasterTileLayerSettings.copy({ ...this, zIndex });
|
|
2628
|
+
}
|
|
2615
2629
|
/**
|
|
2616
2630
|
* Sets the minimum zoom level for the Tile Layer.
|
|
2617
2631
|
*
|
|
@@ -2650,6 +2664,8 @@ class RasterTileLayerSettings {
|
|
|
2650
2664
|
return false;
|
|
2651
2665
|
if (this.minZoom !== model.minZoom)
|
|
2652
2666
|
return false;
|
|
2667
|
+
if (this.zIndex !== model.zIndex)
|
|
2668
|
+
return false;
|
|
2653
2669
|
if (this.url !== model.url)
|
|
2654
2670
|
return false;
|
|
2655
2671
|
if (this.projection !== model.projection)
|
|
@@ -2682,7 +2698,7 @@ class RasterTileLayerFactory {
|
|
|
2682
2698
|
operationType: 'image',
|
|
2683
2699
|
operation: settings.operation,
|
|
2684
2700
|
});
|
|
2685
|
-
return new ImageLayer({ source: raster, opacity: settings.opacity });
|
|
2701
|
+
return new ImageLayer({ source: raster, opacity: settings.opacity, zIndex: settings.zIndex });
|
|
2686
2702
|
}
|
|
2687
2703
|
getTileFunc(settings) {
|
|
2688
2704
|
return (tileCoord) => {
|