@artstesh/maps 1.1.26 → 1.1.27
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 +333 -15
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +333 -15
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/map-plate/layers/index.js +3 -1
- package/dist/esm2015/map/map-plate/layers/raster-tile/raster-tile-layer.component.js +54 -0
- package/dist/esm2015/map/map-plate/layers/raster-tile/raster-tile-layer.factory.js +74 -0
- package/dist/esm2015/map/map-plate/layers/raster-tile/raster-tile-layer.settings.js +151 -0
- package/dist/esm2015/map/map.module.js +8 -3
- package/dist/esm2015/map/messages/commands/add-raster-tile-command.js +9 -0
- package/dist/esm2015/map/messages/commands/remove-raster-tile.command.js +9 -0
- package/dist/esm2015/map/ol-proxy.js +3 -0
- package/dist/esm2015/map/public-api.js +2 -2
- package/dist/esm2015/map/services/map-management.service.js +18 -9
- package/dist/esm2015/map/services/message-registrator.service.js +5 -1
- package/dist/esm2015/src/map/map-plate/layers/index.js +3 -1
- package/dist/esm2015/src/map/map-plate/layers/raster-tile/raster-tile-layer.component.js +54 -0
- package/dist/esm2015/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.js +74 -0
- package/dist/esm2015/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.js +151 -0
- package/dist/esm2015/src/map/map.module.js +8 -3
- package/dist/esm2015/src/map/messages/commands/add-raster-tile-command.js +9 -0
- package/dist/esm2015/src/map/messages/commands/remove-raster-tile.command.js +9 -0
- package/dist/esm2015/src/map/ol-proxy.js +3 -0
- package/dist/esm2015/src/map/public-api.js +2 -2
- package/dist/esm2015/src/map/services/map-management.service.js +18 -9
- package/dist/esm2015/src/map/services/message-registrator.service.js +5 -1
- package/dist/fesm2015/maps-components-src-map.js +305 -11
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +305 -11
- package/dist/fesm2015/maps-components.js.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/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 i6 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';
|
|
@@ -885,6 +887,22 @@ class RemoveImageLayerCommand extends PostboyGenericMessage {
|
|
|
885
887
|
}
|
|
886
888
|
RemoveImageLayerCommand.ID = 'c8e7efdb-17ff-4cf9-89be-e688b8de3b95';
|
|
887
889
|
|
|
890
|
+
class AddRasterTileCommand extends PostboyGenericMessage {
|
|
891
|
+
constructor(layer) {
|
|
892
|
+
super();
|
|
893
|
+
this.layer = layer;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
AddRasterTileCommand.ID = 'd33447fe-eec0-4205-9b5d-0d79ddc74ad7';
|
|
897
|
+
|
|
898
|
+
class RemoveRasterTileCommand extends PostboyGenericMessage {
|
|
899
|
+
constructor(layer) {
|
|
900
|
+
super();
|
|
901
|
+
this.layer = layer;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
RemoveRasterTileCommand.ID = 'd1c4bf6a-e2f2-4385-a7a2-cecb525f8939';
|
|
905
|
+
|
|
888
906
|
class MapPostboyService extends PostboyService {
|
|
889
907
|
constructor() {
|
|
890
908
|
super();
|
|
@@ -912,19 +930,11 @@ class MapManagementService {
|
|
|
912
930
|
this.observeRemoveLayer();
|
|
913
931
|
this.observePlaceFeatures();
|
|
914
932
|
this.observeAddTile();
|
|
915
|
-
this.observeRemoveTile();
|
|
916
933
|
this.observeLayerQuery();
|
|
917
934
|
this.observeFeaturesInArea();
|
|
918
935
|
this.observeFeaturesInPoint();
|
|
919
936
|
this.observeImageLayer();
|
|
920
937
|
}
|
|
921
|
-
observeRemoveTile() {
|
|
922
|
-
this.postboy.sub(RemoveTileCommand).subscribe((c) => {
|
|
923
|
-
if (!this.map)
|
|
924
|
-
return;
|
|
925
|
-
this.map.removeLayer(c.layer);
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
938
|
observeLayerQuery() {
|
|
929
939
|
this.postboy.sub(GetLayerQuery).subscribe((ev) => ev.finish(this.layers.take(ev.name)));
|
|
930
940
|
}
|
|
@@ -934,6 +944,21 @@ class MapManagementService {
|
|
|
934
944
|
return;
|
|
935
945
|
this.map.addLayer(c.layer);
|
|
936
946
|
});
|
|
947
|
+
this.postboy.sub(RemoveTileCommand).subscribe((c) => {
|
|
948
|
+
if (!this.map)
|
|
949
|
+
return;
|
|
950
|
+
this.map.removeLayer(c.layer);
|
|
951
|
+
});
|
|
952
|
+
this.postboy.sub(AddRasterTileCommand).subscribe((c) => {
|
|
953
|
+
if (!this.map)
|
|
954
|
+
return;
|
|
955
|
+
this.map.addLayer(c.layer);
|
|
956
|
+
});
|
|
957
|
+
this.postboy.sub(RemoveRasterTileCommand).subscribe((c) => {
|
|
958
|
+
if (!this.map)
|
|
959
|
+
return;
|
|
960
|
+
this.map.removeLayer(c.layer);
|
|
961
|
+
});
|
|
937
962
|
}
|
|
938
963
|
observeImageLayer() {
|
|
939
964
|
this.postboy.sub(AddImageLayerCommand).subscribe((c) => {
|
|
@@ -1392,6 +1417,8 @@ class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
|
1392
1417
|
this.recordSubject(AddLayerCommand);
|
|
1393
1418
|
this.recordSubject(RemoveLayerCommand);
|
|
1394
1419
|
this.recordSubject(AddTileCommand);
|
|
1420
|
+
this.recordSubject(AddRasterTileCommand);
|
|
1421
|
+
this.recordSubject(RemoveRasterTileCommand);
|
|
1395
1422
|
this.recordSubject(RemoveImageLayerCommand);
|
|
1396
1423
|
this.recordSubject(AddImageLayerCommand);
|
|
1397
1424
|
this.recordSubject(RemoveTileCommand);
|
|
@@ -2406,6 +2433,269 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2406
2433
|
type: Input
|
|
2407
2434
|
}] } });
|
|
2408
2435
|
|
|
2436
|
+
class RasterTileLayerSettings {
|
|
2437
|
+
constructor() {
|
|
2438
|
+
/**
|
|
2439
|
+
* The maximum zoom level for a map view.
|
|
2440
|
+
*
|
|
2441
|
+
* @type {number}
|
|
2442
|
+
* @default 19
|
|
2443
|
+
*/
|
|
2444
|
+
this.maxZoom = 19;
|
|
2445
|
+
/**
|
|
2446
|
+
* The minimum zoom level allowed.
|
|
2447
|
+
*
|
|
2448
|
+
* @type {number}
|
|
2449
|
+
*/
|
|
2450
|
+
this.minZoom = 0;
|
|
2451
|
+
/**
|
|
2452
|
+
* The opacity of an element.
|
|
2453
|
+
*
|
|
2454
|
+
* @type {number}
|
|
2455
|
+
* @default 0.6
|
|
2456
|
+
*/
|
|
2457
|
+
this.opacity = 0.6;
|
|
2458
|
+
/**
|
|
2459
|
+
* Represents the tiles URL.
|
|
2460
|
+
* @typedef {string} url
|
|
2461
|
+
*
|
|
2462
|
+
* @example
|
|
2463
|
+
* 'https://example.ex/{z}/{x}/{y}.png'
|
|
2464
|
+
*/
|
|
2465
|
+
this.url = '';
|
|
2466
|
+
/**
|
|
2467
|
+
* The projection of the coordinate system.
|
|
2468
|
+
*
|
|
2469
|
+
* @type {string}
|
|
2470
|
+
* @default 'EPSG:3857'
|
|
2471
|
+
*/
|
|
2472
|
+
this.projection = 'EPSG:3857';
|
|
2473
|
+
/**
|
|
2474
|
+
* Additional headers that should be added to each tile request
|
|
2475
|
+
*
|
|
2476
|
+
* @type {Record<string, string>}
|
|
2477
|
+
* @default An empty array
|
|
2478
|
+
*/
|
|
2479
|
+
this.requestHeaders = null;
|
|
2480
|
+
this.operation = (d) => { var _a; return (_a = d[0]) !== null && _a !== void 0 ? _a : []; };
|
|
2481
|
+
}
|
|
2482
|
+
/**
|
|
2483
|
+
* Creates a copy of the given tile layer settings.
|
|
2484
|
+
*
|
|
2485
|
+
* @param {RasterTileLayerSettings} model - The tile layer settings to be copied.
|
|
2486
|
+
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the same properties as the model.
|
|
2487
|
+
*/
|
|
2488
|
+
static copy(model) {
|
|
2489
|
+
const result = new RasterTileLayerSettings();
|
|
2490
|
+
result.maxZoom = model.maxZoom;
|
|
2491
|
+
result.minZoom = model.minZoom;
|
|
2492
|
+
result.projection = model.projection;
|
|
2493
|
+
result.opacity = model.opacity;
|
|
2494
|
+
result.url = model.url;
|
|
2495
|
+
result.requestHeaders = model.requestHeaders;
|
|
2496
|
+
result.operation = model.operation;
|
|
2497
|
+
return result;
|
|
2498
|
+
}
|
|
2499
|
+
/**
|
|
2500
|
+
* Sets the URL of the RasterTileLayerSettings object.
|
|
2501
|
+
*
|
|
2502
|
+
* @param {string} url - The URL to be set.
|
|
2503
|
+
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
2504
|
+
*/
|
|
2505
|
+
setUrl(url) {
|
|
2506
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { url }));
|
|
2507
|
+
}
|
|
2508
|
+
/**
|
|
2509
|
+
* Sets the operation to apply on raster tile data.
|
|
2510
|
+
*
|
|
2511
|
+
* @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.
|
|
2512
|
+
* @return {RasterTileLayerSettings} A new instance of RasterTileLayerSettings with the updated operation.
|
|
2513
|
+
*/
|
|
2514
|
+
setOperation(operation) {
|
|
2515
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { operation }));
|
|
2516
|
+
}
|
|
2517
|
+
/**
|
|
2518
|
+
* Sets the requestHeaders of the RasterTileLayerSettings object.
|
|
2519
|
+
*
|
|
2520
|
+
* @param {Record<string, string>} requestHeaders - The headers which should be provided.
|
|
2521
|
+
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
2522
|
+
*/
|
|
2523
|
+
setRequestHeaders(requestHeaders) {
|
|
2524
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { requestHeaders }));
|
|
2525
|
+
}
|
|
2526
|
+
/**
|
|
2527
|
+
* Sets the maximum zoom level for the tile layer.
|
|
2528
|
+
*
|
|
2529
|
+
* @param {number} maxZoom - The maximum zoom level.
|
|
2530
|
+
* @returns {RasterTileLayerSettings} - The updated tile layer settings object.
|
|
2531
|
+
*/
|
|
2532
|
+
setMaxZoom(maxZoom) {
|
|
2533
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { maxZoom }));
|
|
2534
|
+
}
|
|
2535
|
+
/**
|
|
2536
|
+
* Sets the minimum zoom level for the Tile Layer.
|
|
2537
|
+
*
|
|
2538
|
+
* @param {number} minZoom - The minimum zoom level to be set.
|
|
2539
|
+
* @return {RasterTileLayerSettings} The modified RasterTileLayerSettings object with the updated minimum zoom level.
|
|
2540
|
+
*/
|
|
2541
|
+
setMinZoom(minZoom) {
|
|
2542
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { minZoom }));
|
|
2543
|
+
}
|
|
2544
|
+
/**
|
|
2545
|
+
* Sets the opacity of the RasterTileLayerSettings.
|
|
2546
|
+
*
|
|
2547
|
+
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
2548
|
+
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the opacity set.
|
|
2549
|
+
*/
|
|
2550
|
+
setOpacity(opacity) {
|
|
2551
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { opacity }));
|
|
2552
|
+
}
|
|
2553
|
+
/**
|
|
2554
|
+
* Sets the projection for the tile layer settings.
|
|
2555
|
+
*
|
|
2556
|
+
* @param {string} projection - The desired projection for the tile layer settings.
|
|
2557
|
+
* @return {RasterTileLayerSettings} - The updated tile layer settings with the new projection.
|
|
2558
|
+
*/
|
|
2559
|
+
setProjection(projection) {
|
|
2560
|
+
return RasterTileLayerSettings.copy(Object.assign(Object.assign({}, this), { projection }));
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
* Checks if the current instance of RasterTileLayerSettings is equal to the given model.
|
|
2564
|
+
* @param {RasterTileLayerSettings} model - The model to compare against.
|
|
2565
|
+
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
2566
|
+
* otherwise, false.
|
|
2567
|
+
*/
|
|
2568
|
+
isSame(model) {
|
|
2569
|
+
if (this.maxZoom !== model.maxZoom)
|
|
2570
|
+
return false;
|
|
2571
|
+
if (this.minZoom !== model.minZoom)
|
|
2572
|
+
return false;
|
|
2573
|
+
if (this.url !== model.url)
|
|
2574
|
+
return false;
|
|
2575
|
+
if (this.projection !== model.projection)
|
|
2576
|
+
return false;
|
|
2577
|
+
if (this.opacity !== model.opacity)
|
|
2578
|
+
return false;
|
|
2579
|
+
if (this.requestHeaders !== model.requestHeaders)
|
|
2580
|
+
return false;
|
|
2581
|
+
if (this.operation !== model.operation)
|
|
2582
|
+
return false;
|
|
2583
|
+
return true;
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
class RasterTileLayerFactory {
|
|
2588
|
+
build(settings) {
|
|
2589
|
+
const source = new XYZ({
|
|
2590
|
+
tileSize: 256,
|
|
2591
|
+
maxZoom: settings.maxZoom || 14,
|
|
2592
|
+
minZoom: settings.minZoom || 1,
|
|
2593
|
+
projection: get(settings.projection),
|
|
2594
|
+
tileUrlFunction: this.getTileFunc(settings),
|
|
2595
|
+
crossOrigin: 'Anonymous',
|
|
2596
|
+
tileLoadFunction: !!settings.requestHeaders
|
|
2597
|
+
? (tile, src) => this.tileLoader(tile, src, settings.requestHeaders)
|
|
2598
|
+
: undefined,
|
|
2599
|
+
});
|
|
2600
|
+
const raster = new RasterSource({
|
|
2601
|
+
sources: [source],
|
|
2602
|
+
operationType: 'image',
|
|
2603
|
+
operation: settings.operation,
|
|
2604
|
+
});
|
|
2605
|
+
return new ImageLayer({ source: raster, opacity: settings.opacity });
|
|
2606
|
+
}
|
|
2607
|
+
getTileFunc(settings) {
|
|
2608
|
+
return (tileCoord) => {
|
|
2609
|
+
const zoom = tileCoord[0];
|
|
2610
|
+
const x = tileCoord[1];
|
|
2611
|
+
const y = tileCoord[2];
|
|
2612
|
+
const normalizedCoord = this.getNormalizedCoord({ x: x, y: y }, zoom);
|
|
2613
|
+
const bound = 1 << zoom;
|
|
2614
|
+
return settings.url
|
|
2615
|
+
.replace('{x}', String((normalizedCoord === null || normalizedCoord === void 0 ? void 0 : normalizedCoord.x) || x))
|
|
2616
|
+
.replace('{z}', String(zoom))
|
|
2617
|
+
.replace('{y}', String(bound - ((normalizedCoord === null || normalizedCoord === void 0 ? void 0 : normalizedCoord.y) || y) - 1));
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
tileLoader(tile, src, headers) {
|
|
2621
|
+
const client = new XMLHttpRequest();
|
|
2622
|
+
client.open('GET', src);
|
|
2623
|
+
client.responseType = 'arraybuffer';
|
|
2624
|
+
Object.keys(headers).forEach((k) => client.setRequestHeader(k, headers[k]));
|
|
2625
|
+
client.onload = function () {
|
|
2626
|
+
if (this.response !== undefined) {
|
|
2627
|
+
const arrayBufferView = new Uint8Array(this.response);
|
|
2628
|
+
const blob = new Blob([arrayBufferView], { type: 'image/png' });
|
|
2629
|
+
const urlCreator = window.URL || window.webkitURL;
|
|
2630
|
+
tile.getImage().src = urlCreator.createObjectURL(blob);
|
|
2631
|
+
}
|
|
2632
|
+
};
|
|
2633
|
+
client.send();
|
|
2634
|
+
}
|
|
2635
|
+
getNormalizedCoord(coord, zoom) {
|
|
2636
|
+
const y = coord.y;
|
|
2637
|
+
let x = coord.x;
|
|
2638
|
+
const tileRange = 1 << zoom;
|
|
2639
|
+
if (y < 0 || y >= tileRange)
|
|
2640
|
+
return null;
|
|
2641
|
+
if (x < 0 || x >= tileRange)
|
|
2642
|
+
x = ((x % tileRange) + tileRange) % tileRange;
|
|
2643
|
+
return { x: x, y: y };
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
RasterTileLayerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RasterTileLayerFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2647
|
+
RasterTileLayerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RasterTileLayerFactory, providedIn: 'root' });
|
|
2648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RasterTileLayerFactory, decorators: [{
|
|
2649
|
+
type: Injectable,
|
|
2650
|
+
args: [{
|
|
2651
|
+
providedIn: 'root',
|
|
2652
|
+
}]
|
|
2653
|
+
}] });
|
|
2654
|
+
|
|
2655
|
+
class RasterTileLayerComponent extends DestructibleComponent {
|
|
2656
|
+
constructor(postboy, factory) {
|
|
2657
|
+
super();
|
|
2658
|
+
this.postboy = postboy;
|
|
2659
|
+
this.factory = factory;
|
|
2660
|
+
this._settings = new RasterTileLayerSettings();
|
|
2661
|
+
this.onDestroy = () => this.removeLayer();
|
|
2662
|
+
}
|
|
2663
|
+
set settings(value) {
|
|
2664
|
+
if (!value || this._settings.isSame(value))
|
|
2665
|
+
return;
|
|
2666
|
+
this._settings = value;
|
|
2667
|
+
this.initLayer();
|
|
2668
|
+
}
|
|
2669
|
+
ngOnInit() {
|
|
2670
|
+
this.postboy
|
|
2671
|
+
.sub(MapRenderedEvent)
|
|
2672
|
+
.pipe(filter((m) => !!m), first())
|
|
2673
|
+
.subscribe((m) => this.initLayer());
|
|
2674
|
+
}
|
|
2675
|
+
initLayer() {
|
|
2676
|
+
this.removeLayer();
|
|
2677
|
+
this.layer = this.factory.build(this._settings);
|
|
2678
|
+
this.postboy.fire(new AddRasterTileCommand(this.layer));
|
|
2679
|
+
}
|
|
2680
|
+
removeLayer() {
|
|
2681
|
+
if (this.layer)
|
|
2682
|
+
this.postboy.fire(new RemoveRasterTileCommand(this.layer));
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
RasterTileLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RasterTileLayerComponent, deps: [{ token: MapPostboyService }, { token: RasterTileLayerFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
2686
|
+
RasterTileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RasterTileLayerComponent, selector: "art-raster-tile-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RasterTileLayerComponent, decorators: [{
|
|
2688
|
+
type: Component,
|
|
2689
|
+
args: [{
|
|
2690
|
+
selector: 'art-raster-tile-layer',
|
|
2691
|
+
template: '',
|
|
2692
|
+
styleUrls: [],
|
|
2693
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2694
|
+
}]
|
|
2695
|
+
}], ctorParameters: function () { return [{ type: MapPostboyService }, { type: RasterTileLayerFactory }]; }, propDecorators: { settings: [{
|
|
2696
|
+
type: Input
|
|
2697
|
+
}] } });
|
|
2698
|
+
|
|
2409
2699
|
class MapPlateFactory {
|
|
2410
2700
|
build(settings) {
|
|
2411
2701
|
return new Map({
|
|
@@ -2910,7 +3200,8 @@ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
|
2910
3200
|
PolygonsComponent,
|
|
2911
3201
|
ClusterLayerComponent,
|
|
2912
3202
|
MapControlZoomComponent,
|
|
2913
|
-
ImageLayerComponent
|
|
3203
|
+
ImageLayerComponent,
|
|
3204
|
+
RasterTileLayerComponent], imports: [CommonModule], exports: [MapPlateComponent,
|
|
2914
3205
|
FeatureLayerComponent,
|
|
2915
3206
|
MarkersComponent,
|
|
2916
3207
|
TileLayerComponent,
|
|
@@ -2918,7 +3209,8 @@ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
|
2918
3209
|
PolygonsComponent,
|
|
2919
3210
|
ClusterLayerComponent,
|
|
2920
3211
|
MapControlZoomComponent,
|
|
2921
|
-
ImageLayerComponent
|
|
3212
|
+
ImageLayerComponent,
|
|
3213
|
+
RasterTileLayerComponent] });
|
|
2922
3214
|
MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MapModule, imports: [[CommonModule]] });
|
|
2923
3215
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MapModule, decorators: [{
|
|
2924
3216
|
type: NgModule,
|
|
@@ -2936,6 +3228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2936
3228
|
ClusterLayerComponent,
|
|
2937
3229
|
MapControlZoomComponent,
|
|
2938
3230
|
ImageLayerComponent,
|
|
3231
|
+
RasterTileLayerComponent,
|
|
2939
3232
|
],
|
|
2940
3233
|
exports: [
|
|
2941
3234
|
MapPlateComponent,
|
|
@@ -2947,6 +3240,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
2947
3240
|
ClusterLayerComponent,
|
|
2948
3241
|
MapControlZoomComponent,
|
|
2949
3242
|
ImageLayerComponent,
|
|
3243
|
+
RasterTileLayerComponent,
|
|
2950
3244
|
],
|
|
2951
3245
|
}]
|
|
2952
3246
|
}] });
|
|
@@ -3147,5 +3441,5 @@ class StringifyFeatureHelper {
|
|
|
3147
3441
|
* Generated bundle index. Do not edit.
|
|
3148
3442
|
*/
|
|
3149
3443
|
|
|
3150
|
-
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 };
|
|
3444
|
+
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 };
|
|
3151
3445
|
//# sourceMappingURL=maps-components.js.map
|