@artstesh/maps 5.2.5 → 5.2.6
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/index.mjs +3 -1
- package/dist/esm2022/map/map-plate/layers/raster-tile/raster-tile-layer.component.mjs +52 -0
- package/dist/esm2022/map/map-plate/layers/raster-tile/raster-tile-layer.factory.mjs +74 -0
- package/dist/esm2022/map/map-plate/layers/raster-tile/raster-tile-layer.settings.mjs +149 -0
- package/dist/esm2022/map/map.module.mjs +8 -3
- package/dist/esm2022/map/messages/commands/add-raster-tile-command.mjs +10 -0
- package/dist/esm2022/map/messages/commands/remove-raster-tile.command.mjs +10 -0
- package/dist/esm2022/map/ol-proxy.mjs +3 -0
- package/dist/esm2022/map/public-api.mjs +2 -2
- package/dist/esm2022/map/services/map-management.service.mjs +18 -9
- package/dist/esm2022/map/services/message-registrator.service.mjs +5 -1
- package/dist/esm2022/src/map/map-plate/layers/index.mjs +3 -1
- package/dist/esm2022/src/map/map-plate/layers/raster-tile/raster-tile-layer.component.mjs +52 -0
- package/dist/esm2022/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.mjs +74 -0
- package/dist/esm2022/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.mjs +149 -0
- package/dist/esm2022/src/map/map.module.mjs +8 -3
- package/dist/esm2022/src/map/messages/commands/add-raster-tile-command.mjs +10 -0
- package/dist/esm2022/src/map/messages/commands/remove-raster-tile.command.mjs +10 -0
- package/dist/esm2022/src/map/ol-proxy.mjs +3 -0
- package/dist/esm2022/src/map/public-api.mjs +2 -2
- package/dist/esm2022/src/map/services/map-management.service.mjs +18 -9
- package/dist/esm2022/src/map/services/message-registrator.service.mjs +5 -1
- package/dist/fesm2022/maps-components-src-map.mjs +303 -11
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +303 -11
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/map-plate/layers/index.d.ts +2 -0
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.component.d.ts +21 -0
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.factory.d.ts +12 -0
- package/dist/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +108 -0
- package/dist/map/map.module.d.ts +3 -2
- package/dist/map/messages/commands/add-raster-tile-command.d.ts +8 -0
- package/dist/map/messages/commands/remove-raster-tile.command.d.ts +8 -0
- package/dist/map/ol-proxy.d.ts +3 -0
- package/dist/map/public-api.d.ts +1 -1
- package/dist/map/services/map-management.service.d.ts +0 -1
- package/dist/package.json +1 -1
- package/dist/src/map/map-plate/layers/index.d.ts +2 -0
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.component.d.ts +21 -0
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.d.ts +12 -0
- package/dist/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.d.ts +108 -0
- package/dist/src/map/map.module.d.ts +3 -2
- package/dist/src/map/messages/commands/add-raster-tile-command.d.ts +8 -0
- package/dist/src/map/messages/commands/remove-raster-tile.command.d.ts +8 -0
- package/dist/src/map/ol-proxy.d.ts +3 -0
- package/dist/src/map/public-api.d.ts +1 -1
- package/dist/src/map/services/map-management.service.d.ts +0 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { Component, Injectable, ChangeDetectionStrategy, Input, ViewChild, NgMod
|
|
|
3
3
|
import * as i4 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { Feature, Collection } from 'ol';
|
|
6
|
+
export { Feature } from 'ol';
|
|
6
7
|
import { Point, LineString } from 'ol/geom';
|
|
7
8
|
import { GeoJSON, WKT } from 'ol/format';
|
|
8
9
|
import { getCenter, createEmpty, extend } from 'ol/extent';
|
|
@@ -24,6 +25,7 @@ import { bbox } from 'ol/loadingstrategy';
|
|
|
24
25
|
import Cluster from 'ol/source/Cluster';
|
|
25
26
|
import Static from 'ol/source/ImageStatic';
|
|
26
27
|
import ImageLayer from 'ol/layer/Image';
|
|
28
|
+
import RasterSource from 'ol/source/Raster';
|
|
27
29
|
import Map from 'ol/Map';
|
|
28
30
|
import View from 'ol/View';
|
|
29
31
|
import Overlay from 'ol/Overlay';
|
|
@@ -944,6 +946,24 @@ class RemoveImageLayerCommand extends PostboyGenericMessage {
|
|
|
944
946
|
}
|
|
945
947
|
}
|
|
946
948
|
|
|
949
|
+
class AddRasterTileCommand extends PostboyGenericMessage {
|
|
950
|
+
layer;
|
|
951
|
+
static ID = 'd33447fe-eec0-4205-9b5d-0d79ddc74ad7';
|
|
952
|
+
constructor(layer) {
|
|
953
|
+
super();
|
|
954
|
+
this.layer = layer;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
class RemoveRasterTileCommand extends PostboyGenericMessage {
|
|
959
|
+
layer;
|
|
960
|
+
static ID = 'd1c4bf6a-e2f2-4385-a7a2-cecb525f8939';
|
|
961
|
+
constructor(layer) {
|
|
962
|
+
super();
|
|
963
|
+
this.layer = layer;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
|
|
947
967
|
class MapPostboyService extends PostboyService {
|
|
948
968
|
constructor() {
|
|
949
969
|
super();
|
|
@@ -968,19 +988,11 @@ class MapManagementService {
|
|
|
968
988
|
this.observeRemoveLayer();
|
|
969
989
|
this.observePlaceFeatures();
|
|
970
990
|
this.observeAddTile();
|
|
971
|
-
this.observeRemoveTile();
|
|
972
991
|
this.observeLayerQuery();
|
|
973
992
|
this.observeFeaturesInArea();
|
|
974
993
|
this.observeFeaturesInPoint();
|
|
975
994
|
this.observeImageLayer();
|
|
976
995
|
}
|
|
977
|
-
observeRemoveTile() {
|
|
978
|
-
this.postboy.sub(RemoveTileCommand).subscribe((c) => {
|
|
979
|
-
if (!this.map)
|
|
980
|
-
return;
|
|
981
|
-
this.map.removeLayer(c.layer);
|
|
982
|
-
});
|
|
983
|
-
}
|
|
984
996
|
observeLayerQuery() {
|
|
985
997
|
this.postboy.sub(GetLayerQuery).subscribe((ev) => ev.finish(this.layers.take(ev.name)));
|
|
986
998
|
}
|
|
@@ -990,6 +1002,21 @@ class MapManagementService {
|
|
|
990
1002
|
return;
|
|
991
1003
|
this.map.addLayer(c.layer);
|
|
992
1004
|
});
|
|
1005
|
+
this.postboy.sub(RemoveTileCommand).subscribe((c) => {
|
|
1006
|
+
if (!this.map)
|
|
1007
|
+
return;
|
|
1008
|
+
this.map.removeLayer(c.layer);
|
|
1009
|
+
});
|
|
1010
|
+
this.postboy.sub(AddRasterTileCommand).subscribe((c) => {
|
|
1011
|
+
if (!this.map)
|
|
1012
|
+
return;
|
|
1013
|
+
this.map.addLayer(c.layer);
|
|
1014
|
+
});
|
|
1015
|
+
this.postboy.sub(RemoveRasterTileCommand).subscribe((c) => {
|
|
1016
|
+
if (!this.map)
|
|
1017
|
+
return;
|
|
1018
|
+
this.map.removeLayer(c.layer);
|
|
1019
|
+
});
|
|
993
1020
|
}
|
|
994
1021
|
observeImageLayer() {
|
|
995
1022
|
this.postboy.sub(AddImageLayerCommand).subscribe((c) => {
|
|
@@ -1452,6 +1479,8 @@ class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
|
1452
1479
|
this.recordSubject(AddLayerCommand);
|
|
1453
1480
|
this.recordSubject(RemoveLayerCommand);
|
|
1454
1481
|
this.recordSubject(AddTileCommand);
|
|
1482
|
+
this.recordSubject(AddRasterTileCommand);
|
|
1483
|
+
this.recordSubject(RemoveRasterTileCommand);
|
|
1455
1484
|
this.recordSubject(RemoveImageLayerCommand);
|
|
1456
1485
|
this.recordSubject(AddImageLayerCommand);
|
|
1457
1486
|
this.recordSubject(RemoveTileCommand);
|
|
@@ -2463,6 +2492,265 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2463
2492
|
type: Input
|
|
2464
2493
|
}] } });
|
|
2465
2494
|
|
|
2495
|
+
class RasterTileLayerSettings {
|
|
2496
|
+
/**
|
|
2497
|
+
* The maximum zoom level for a map view.
|
|
2498
|
+
*
|
|
2499
|
+
* @type {number}
|
|
2500
|
+
* @default 19
|
|
2501
|
+
*/
|
|
2502
|
+
maxZoom = 19;
|
|
2503
|
+
/**
|
|
2504
|
+
* The minimum zoom level allowed.
|
|
2505
|
+
*
|
|
2506
|
+
* @type {number}
|
|
2507
|
+
*/
|
|
2508
|
+
minZoom = 0;
|
|
2509
|
+
/**
|
|
2510
|
+
* The opacity of an element.
|
|
2511
|
+
*
|
|
2512
|
+
* @type {number}
|
|
2513
|
+
* @default 0.6
|
|
2514
|
+
*/
|
|
2515
|
+
opacity = 0.6;
|
|
2516
|
+
/**
|
|
2517
|
+
* Represents the tiles URL.
|
|
2518
|
+
* @typedef {string} url
|
|
2519
|
+
*
|
|
2520
|
+
* @example
|
|
2521
|
+
* 'https://example.ex/{z}/{x}/{y}.png'
|
|
2522
|
+
*/
|
|
2523
|
+
url = '';
|
|
2524
|
+
/**
|
|
2525
|
+
* The projection of the coordinate system.
|
|
2526
|
+
*
|
|
2527
|
+
* @type {string}
|
|
2528
|
+
* @default 'EPSG:3857'
|
|
2529
|
+
*/
|
|
2530
|
+
projection = 'EPSG:3857';
|
|
2531
|
+
/**
|
|
2532
|
+
* Additional headers that should be added to each tile request
|
|
2533
|
+
*
|
|
2534
|
+
* @type {Record<string, string>}
|
|
2535
|
+
* @default An empty array
|
|
2536
|
+
*/
|
|
2537
|
+
requestHeaders = null;
|
|
2538
|
+
operation = (d) => d[0] ?? [];
|
|
2539
|
+
/**
|
|
2540
|
+
* Creates a copy of the given tile layer settings.
|
|
2541
|
+
*
|
|
2542
|
+
* @param {RasterTileLayerSettings} model - The tile layer settings to be copied.
|
|
2543
|
+
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the same properties as the model.
|
|
2544
|
+
*/
|
|
2545
|
+
static copy(model) {
|
|
2546
|
+
const result = new RasterTileLayerSettings();
|
|
2547
|
+
result.maxZoom = model.maxZoom;
|
|
2548
|
+
result.minZoom = model.minZoom;
|
|
2549
|
+
result.projection = model.projection;
|
|
2550
|
+
result.opacity = model.opacity;
|
|
2551
|
+
result.url = model.url;
|
|
2552
|
+
result.requestHeaders = model.requestHeaders;
|
|
2553
|
+
result.operation = model.operation;
|
|
2554
|
+
return result;
|
|
2555
|
+
}
|
|
2556
|
+
/**
|
|
2557
|
+
* Sets the URL of the RasterTileLayerSettings object.
|
|
2558
|
+
*
|
|
2559
|
+
* @param {string} url - The URL to be set.
|
|
2560
|
+
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
2561
|
+
*/
|
|
2562
|
+
setUrl(url) {
|
|
2563
|
+
return RasterTileLayerSettings.copy({ ...this, url });
|
|
2564
|
+
}
|
|
2565
|
+
/**
|
|
2566
|
+
* Sets the operation to apply on raster tile data.
|
|
2567
|
+
*
|
|
2568
|
+
* @param {function} operation - A function that takes an input of either a two-dimensional array of numbers or an array of ImageData objects and returns either a one-dimensional array of numbers or an ImageData object.
|
|
2569
|
+
* @return {RasterTileLayerSettings} A new instance of RasterTileLayerSettings with the updated operation.
|
|
2570
|
+
*/
|
|
2571
|
+
setOperation(operation) {
|
|
2572
|
+
return RasterTileLayerSettings.copy({ ...this, operation });
|
|
2573
|
+
}
|
|
2574
|
+
/**
|
|
2575
|
+
* Sets the requestHeaders of the RasterTileLayerSettings object.
|
|
2576
|
+
*
|
|
2577
|
+
* @param {Record<string, string>} requestHeaders - The headers which should be provided.
|
|
2578
|
+
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
2579
|
+
*/
|
|
2580
|
+
setRequestHeaders(requestHeaders) {
|
|
2581
|
+
return RasterTileLayerSettings.copy({ ...this, requestHeaders });
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
* Sets the maximum zoom level for the tile layer.
|
|
2585
|
+
*
|
|
2586
|
+
* @param {number} maxZoom - The maximum zoom level.
|
|
2587
|
+
* @returns {RasterTileLayerSettings} - The updated tile layer settings object.
|
|
2588
|
+
*/
|
|
2589
|
+
setMaxZoom(maxZoom) {
|
|
2590
|
+
return RasterTileLayerSettings.copy({ ...this, maxZoom });
|
|
2591
|
+
}
|
|
2592
|
+
/**
|
|
2593
|
+
* Sets the minimum zoom level for the Tile Layer.
|
|
2594
|
+
*
|
|
2595
|
+
* @param {number} minZoom - The minimum zoom level to be set.
|
|
2596
|
+
* @return {RasterTileLayerSettings} The modified RasterTileLayerSettings object with the updated minimum zoom level.
|
|
2597
|
+
*/
|
|
2598
|
+
setMinZoom(minZoom) {
|
|
2599
|
+
return RasterTileLayerSettings.copy({ ...this, minZoom });
|
|
2600
|
+
}
|
|
2601
|
+
/**
|
|
2602
|
+
* Sets the opacity of the RasterTileLayerSettings.
|
|
2603
|
+
*
|
|
2604
|
+
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
2605
|
+
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the opacity set.
|
|
2606
|
+
*/
|
|
2607
|
+
setOpacity(opacity) {
|
|
2608
|
+
return RasterTileLayerSettings.copy({ ...this, opacity });
|
|
2609
|
+
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Sets the projection for the tile layer settings.
|
|
2612
|
+
*
|
|
2613
|
+
* @param {string} projection - The desired projection for the tile layer settings.
|
|
2614
|
+
* @return {RasterTileLayerSettings} - The updated tile layer settings with the new projection.
|
|
2615
|
+
*/
|
|
2616
|
+
setProjection(projection) {
|
|
2617
|
+
return RasterTileLayerSettings.copy({ ...this, projection });
|
|
2618
|
+
}
|
|
2619
|
+
/**
|
|
2620
|
+
* Checks if the current instance of RasterTileLayerSettings is equal to the given model.
|
|
2621
|
+
* @param {RasterTileLayerSettings} model - The model to compare against.
|
|
2622
|
+
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
2623
|
+
* otherwise, false.
|
|
2624
|
+
*/
|
|
2625
|
+
isSame(model) {
|
|
2626
|
+
if (this.maxZoom !== model.maxZoom)
|
|
2627
|
+
return false;
|
|
2628
|
+
if (this.minZoom !== model.minZoom)
|
|
2629
|
+
return false;
|
|
2630
|
+
if (this.url !== model.url)
|
|
2631
|
+
return false;
|
|
2632
|
+
if (this.projection !== model.projection)
|
|
2633
|
+
return false;
|
|
2634
|
+
if (this.opacity !== model.opacity)
|
|
2635
|
+
return false;
|
|
2636
|
+
if (this.requestHeaders !== model.requestHeaders)
|
|
2637
|
+
return false;
|
|
2638
|
+
if (this.operation !== model.operation)
|
|
2639
|
+
return false;
|
|
2640
|
+
return true;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
|
|
2644
|
+
class RasterTileLayerFactory {
|
|
2645
|
+
build(settings) {
|
|
2646
|
+
const source = new XYZ({
|
|
2647
|
+
tileSize: 256,
|
|
2648
|
+
maxZoom: settings.maxZoom || 14,
|
|
2649
|
+
minZoom: settings.minZoom || 1,
|
|
2650
|
+
projection: get(settings.projection),
|
|
2651
|
+
tileUrlFunction: this.getTileFunc(settings),
|
|
2652
|
+
crossOrigin: 'Anonymous',
|
|
2653
|
+
tileLoadFunction: !!settings.requestHeaders
|
|
2654
|
+
? (tile, src) => this.tileLoader(tile, src, settings.requestHeaders)
|
|
2655
|
+
: undefined,
|
|
2656
|
+
});
|
|
2657
|
+
const raster = new RasterSource({
|
|
2658
|
+
sources: [source],
|
|
2659
|
+
operationType: 'image',
|
|
2660
|
+
operation: settings.operation,
|
|
2661
|
+
});
|
|
2662
|
+
return new ImageLayer({ source: raster, opacity: settings.opacity });
|
|
2663
|
+
}
|
|
2664
|
+
getTileFunc(settings) {
|
|
2665
|
+
return (tileCoord) => {
|
|
2666
|
+
const zoom = tileCoord[0];
|
|
2667
|
+
const x = tileCoord[1];
|
|
2668
|
+
const y = tileCoord[2];
|
|
2669
|
+
const normalizedCoord = this.getNormalizedCoord({ x: x, y: y }, zoom);
|
|
2670
|
+
const bound = 1 << zoom;
|
|
2671
|
+
return settings.url
|
|
2672
|
+
.replace('{x}', String(normalizedCoord?.x || x))
|
|
2673
|
+
.replace('{z}', String(zoom))
|
|
2674
|
+
.replace('{y}', String(bound - (normalizedCoord?.y || y) - 1));
|
|
2675
|
+
};
|
|
2676
|
+
}
|
|
2677
|
+
tileLoader(tile, src, headers) {
|
|
2678
|
+
const client = new XMLHttpRequest();
|
|
2679
|
+
client.open('GET', src);
|
|
2680
|
+
client.responseType = 'arraybuffer';
|
|
2681
|
+
Object.keys(headers).forEach((k) => client.setRequestHeader(k, headers[k]));
|
|
2682
|
+
client.onload = function () {
|
|
2683
|
+
if (this.response !== undefined) {
|
|
2684
|
+
const arrayBufferView = new Uint8Array(this.response);
|
|
2685
|
+
const blob = new Blob([arrayBufferView], { type: 'image/png' });
|
|
2686
|
+
const urlCreator = window.URL || window.webkitURL;
|
|
2687
|
+
tile.getImage().src = urlCreator.createObjectURL(blob);
|
|
2688
|
+
}
|
|
2689
|
+
};
|
|
2690
|
+
client.send();
|
|
2691
|
+
}
|
|
2692
|
+
getNormalizedCoord(coord, zoom) {
|
|
2693
|
+
const y = coord.y;
|
|
2694
|
+
let x = coord.x;
|
|
2695
|
+
const tileRange = 1 << zoom;
|
|
2696
|
+
if (y < 0 || y >= tileRange)
|
|
2697
|
+
return null;
|
|
2698
|
+
if (x < 0 || x >= tileRange)
|
|
2699
|
+
x = ((x % tileRange) + tileRange) % tileRange;
|
|
2700
|
+
return { x: x, y: y };
|
|
2701
|
+
}
|
|
2702
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RasterTileLayerFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2703
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RasterTileLayerFactory, providedIn: 'root' });
|
|
2704
|
+
}
|
|
2705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RasterTileLayerFactory, decorators: [{
|
|
2706
|
+
type: Injectable,
|
|
2707
|
+
args: [{
|
|
2708
|
+
providedIn: 'root',
|
|
2709
|
+
}]
|
|
2710
|
+
}] });
|
|
2711
|
+
|
|
2712
|
+
class RasterTileLayerComponent extends DestructibleComponent {
|
|
2713
|
+
postboy;
|
|
2714
|
+
factory;
|
|
2715
|
+
layer;
|
|
2716
|
+
constructor(postboy, factory) {
|
|
2717
|
+
super();
|
|
2718
|
+
this.postboy = postboy;
|
|
2719
|
+
this.factory = factory;
|
|
2720
|
+
}
|
|
2721
|
+
_settings = new RasterTileLayerSettings();
|
|
2722
|
+
set settings(value) {
|
|
2723
|
+
if (!value || this._settings.isSame(value))
|
|
2724
|
+
return;
|
|
2725
|
+
this._settings = value;
|
|
2726
|
+
this.initLayer();
|
|
2727
|
+
}
|
|
2728
|
+
ngOnInit() {
|
|
2729
|
+
this.postboy
|
|
2730
|
+
.sub(MapRenderedEvent)
|
|
2731
|
+
.pipe(filter((m) => !!m), first())
|
|
2732
|
+
.subscribe((m) => this.initLayer());
|
|
2733
|
+
}
|
|
2734
|
+
onDestroy = () => this.removeLayer();
|
|
2735
|
+
initLayer() {
|
|
2736
|
+
this.removeLayer();
|
|
2737
|
+
this.layer = this.factory.build(this._settings);
|
|
2738
|
+
this.postboy.fire(new AddRasterTileCommand(this.layer));
|
|
2739
|
+
}
|
|
2740
|
+
removeLayer() {
|
|
2741
|
+
if (this.layer)
|
|
2742
|
+
this.postboy.fire(new RemoveRasterTileCommand(this.layer));
|
|
2743
|
+
}
|
|
2744
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RasterTileLayerComponent, deps: [{ token: MapPostboyService }, { token: RasterTileLayerFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
2745
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RasterTileLayerComponent, selector: "art-raster-tile-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2746
|
+
}
|
|
2747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RasterTileLayerComponent, decorators: [{
|
|
2748
|
+
type: Component,
|
|
2749
|
+
args: [{ selector: 'art-raster-tile-layer', template: '', changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
2750
|
+
}], ctorParameters: function () { return [{ type: MapPostboyService }, { type: RasterTileLayerFactory }]; }, propDecorators: { settings: [{
|
|
2751
|
+
type: Input
|
|
2752
|
+
}] } });
|
|
2753
|
+
|
|
2466
2754
|
class MapPlateFactory {
|
|
2467
2755
|
build(settings) {
|
|
2468
2756
|
return new Map({
|
|
@@ -2952,7 +3240,8 @@ class MapModule {
|
|
|
2952
3240
|
PolygonsComponent,
|
|
2953
3241
|
ClusterLayerComponent,
|
|
2954
3242
|
MapControlZoomComponent,
|
|
2955
|
-
ImageLayerComponent
|
|
3243
|
+
ImageLayerComponent,
|
|
3244
|
+
RasterTileLayerComponent], imports: [CommonModule], exports: [MapPlateComponent,
|
|
2956
3245
|
FeatureLayerComponent,
|
|
2957
3246
|
MarkersComponent,
|
|
2958
3247
|
TileLayerComponent,
|
|
@@ -2960,7 +3249,8 @@ class MapModule {
|
|
|
2960
3249
|
PolygonsComponent,
|
|
2961
3250
|
ClusterLayerComponent,
|
|
2962
3251
|
MapControlZoomComponent,
|
|
2963
|
-
ImageLayerComponent
|
|
3252
|
+
ImageLayerComponent,
|
|
3253
|
+
RasterTileLayerComponent] });
|
|
2964
3254
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MapModule, imports: [CommonModule] });
|
|
2965
3255
|
}
|
|
2966
3256
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MapModule, decorators: [{
|
|
@@ -2979,6 +3269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2979
3269
|
ClusterLayerComponent,
|
|
2980
3270
|
MapControlZoomComponent,
|
|
2981
3271
|
ImageLayerComponent,
|
|
3272
|
+
RasterTileLayerComponent,
|
|
2982
3273
|
],
|
|
2983
3274
|
exports: [
|
|
2984
3275
|
MapPlateComponent,
|
|
@@ -2990,6 +3281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2990
3281
|
ClusterLayerComponent,
|
|
2991
3282
|
MapControlZoomComponent,
|
|
2992
3283
|
ImageLayerComponent,
|
|
3284
|
+
RasterTileLayerComponent,
|
|
2993
3285
|
],
|
|
2994
3286
|
}]
|
|
2995
3287
|
}] });
|
|
@@ -3190,5 +3482,5 @@ class StringifyFeatureHelper {
|
|
|
3190
3482
|
* Generated bundle index. Do not edit.
|
|
3191
3483
|
*/
|
|
3192
3484
|
|
|
3193
|
-
export { AddControlCommand, CalculateAreaExecutor, CancelDrawingCommand, CancelFeatureModificationCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, DrawSelectionAreaCommand, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, FilterFeaturesInAreaExecutor, FilterFeaturesInPointExecutor, FitToFeaturesCommand, FitToPolygonsCommand, GetFeaturesInAreaQuery, GetFeaturesInPointQuery, GetMapPositionExecutor, ImageLayerComponent, ImageLayerSettings, MapClickEvent, MapConstants, MapControl, MapControlZoomComponent, MapFeatureHoveredEvent, MapLyrs, MapLyrsLabel, MapModule, MapMoveEndEvent, MapPlateComponent, MapPointerMoveEvent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, ModifyFeatureCommand, OsmTileLayerComponent, PolygonModel, PolygonSelfIntersectionExecutor, PolygonStyleHelper, PolygonsComponent, RemoveControlCommand, SetMapCenterCommand, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings, ZoomControlSettings };
|
|
3485
|
+
export { AddControlCommand, CalculateAreaExecutor, CancelDrawingCommand, CancelFeatureModificationCommand, CloseTooltipCommand, ClusterLayerComponent, ClusterLayerSettings, DrawSelectionAreaCommand, DrawingType, FeatureLayerComponent, FeatureLayerSettings, FeatureOutputFormat, FilterFeaturesInAreaExecutor, FilterFeaturesInPointExecutor, FitToFeaturesCommand, FitToPolygonsCommand, GetFeaturesInAreaQuery, GetFeaturesInPointQuery, GetMapPositionExecutor, ImageLayerComponent, ImageLayerSettings, MapClickEvent, MapConstants, MapControl, MapControlZoomComponent, MapFeatureHoveredEvent, MapLyrs, MapLyrsLabel, MapModule, MapMoveEndEvent, MapPlateComponent, MapPointerMoveEvent, MapPostboyService, MapRenderedEvent, MapSettings, MarkerModel, MarkerStyleHelper, MarkersComponent, MessageRegistratorService, ModifyFeatureCommand, OsmTileLayerComponent, PolygonModel, PolygonSelfIntersectionExecutor, PolygonStyleHelper, PolygonsComponent, RasterTileLayerComponent, RasterTileLayerSettings, RemoveControlCommand, SetMapCenterCommand, StartDrawingCommand, StringifyFeatureHelper, TextStyleHelper, TileLayerComponent, TileLayerSettings, TooltipComponent, TooltipSettings, ZoomControlSettings };
|
|
3194
3486
|
//# sourceMappingURL=maps-components.mjs.map
|