@artstesh/maps 1.1.34 → 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.
- package/dist/bundles/maps-components-src-map.umd.js +18 -2
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +18 -2
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/map-plate/layers/raster-tile/raster-tile-layer.factory.js +3 -3
- package/dist/esm2015/map/map-plate/layers/raster-tile/raster-tile-layer.settings.js +17 -1
- package/dist/esm2015/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.js +3 -3
- package/dist/esm2015/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.js +17 -1
- package/dist/fesm2015/maps-components-src-map.js +18 -2
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +18 -2
- package/dist/fesm2015/maps-components.js.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
|
@@ -2498,6 +2498,10 @@ class RasterTileLayerSettings {
|
|
|
2498
2498
|
* @default An empty array
|
|
2499
2499
|
*/
|
|
2500
2500
|
this.requestHeaders = null;
|
|
2501
|
+
/**
|
|
2502
|
+
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
2503
|
+
*/
|
|
2504
|
+
this.zIndex = 1;
|
|
2501
2505
|
this.operation = (d) => { var _a; return (_a = d[0]) !== null && _a !== void 0 ? _a : []; };
|
|
2502
2506
|
}
|
|
2503
2507
|
/**
|
|
@@ -2510,6 +2514,7 @@ class RasterTileLayerSettings {
|
|
|
2510
2514
|
const result = new RasterTileLayerSettings();
|
|
2511
2515
|
result.maxZoom = model.maxZoom;
|
|
2512
2516
|
result.minZoom = model.minZoom;
|
|
2517
|
+
result.zIndex = model.zIndex;
|
|
2513
2518
|
result.projection = model.projection;
|
|
2514
2519
|
result.opacity = model.opacity;
|
|
2515
2520
|
result.url = model.url;
|
|
@@ -2553,6 +2558,15 @@ class RasterTileLayerSettings {
|
|
|
2553
2558
|
setMaxZoom(maxZoom) {
|
|
2554
2559
|
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { maxZoom }));
|
|
2555
2560
|
}
|
|
2561
|
+
/**
|
|
2562
|
+
* Sets the z-index for the RasterTileLayerSettings.
|
|
2563
|
+
*
|
|
2564
|
+
* @param {number} zIndex - The new z-index to be assigned.
|
|
2565
|
+
* @return {RasterTileLayerSettings} A new RasterTileLayerSettings instance with the updated z-index.
|
|
2566
|
+
*/
|
|
2567
|
+
setZIndex(zIndex) {
|
|
2568
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { zIndex }));
|
|
2569
|
+
}
|
|
2556
2570
|
/**
|
|
2557
2571
|
* Sets the minimum zoom level for the Tile Layer.
|
|
2558
2572
|
*
|
|
@@ -2591,6 +2605,8 @@ class RasterTileLayerSettings {
|
|
|
2591
2605
|
return false;
|
|
2592
2606
|
if (this.minZoom !== model.minZoom)
|
|
2593
2607
|
return false;
|
|
2608
|
+
if (this.zIndex !== model.zIndex)
|
|
2609
|
+
return false;
|
|
2594
2610
|
if (this.url !== model.url)
|
|
2595
2611
|
return false;
|
|
2596
2612
|
if (this.projection !== model.projection)
|
|
@@ -2621,9 +2637,9 @@ class RasterTileLayerFactory {
|
|
|
2621
2637
|
const raster = new RasterSource({
|
|
2622
2638
|
sources: [source],
|
|
2623
2639
|
operationType: 'image',
|
|
2624
|
-
operation:
|
|
2640
|
+
operation: settings.operation,
|
|
2625
2641
|
});
|
|
2626
|
-
return new ImageLayer({ source: raster, opacity: settings.opacity });
|
|
2642
|
+
return new ImageLayer({ source: raster, opacity: settings.opacity, zIndex: settings.zIndex });
|
|
2627
2643
|
}
|
|
2628
2644
|
getTileFunc(settings) {
|
|
2629
2645
|
return (tileCoord) => {
|