@artstesh/maps 4.1.27 → 4.1.28
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/esm2020/map/map-plate/layers/index.mjs +3 -1
- package/dist/esm2020/map/map-plate/layers/raster-tile/raster-tile-layer.component.mjs +49 -0
- package/dist/esm2020/map/map-plate/layers/raster-tile/raster-tile-layer.factory.mjs +74 -0
- package/dist/esm2020/map/map-plate/layers/raster-tile/raster-tile-layer.settings.mjs +151 -0
- package/dist/esm2020/map/map.module.mjs +8 -3
- package/dist/esm2020/map/messages/commands/add-raster-tile-command.mjs +9 -0
- package/dist/esm2020/map/messages/commands/remove-raster-tile.command.mjs +9 -0
- package/dist/esm2020/map/ol-proxy.mjs +3 -0
- package/dist/esm2020/map/public-api.mjs +2 -2
- package/dist/esm2020/map/services/map-management.service.mjs +18 -9
- package/dist/esm2020/map/services/message-registrator.service.mjs +5 -1
- package/dist/esm2020/src/map/map-plate/layers/index.mjs +3 -1
- package/dist/esm2020/src/map/map-plate/layers/raster-tile/raster-tile-layer.component.mjs +49 -0
- package/dist/esm2020/src/map/map-plate/layers/raster-tile/raster-tile-layer.factory.mjs +74 -0
- package/dist/esm2020/src/map/map-plate/layers/raster-tile/raster-tile-layer.settings.mjs +151 -0
- package/dist/esm2020/src/map/map.module.mjs +8 -3
- package/dist/esm2020/src/map/messages/commands/add-raster-tile-command.mjs +9 -0
- package/dist/esm2020/src/map/messages/commands/remove-raster-tile.command.mjs +9 -0
- package/dist/esm2020/src/map/ol-proxy.mjs +3 -0
- package/dist/esm2020/src/map/public-api.mjs +2 -2
- package/dist/esm2020/src/map/services/map-management.service.mjs +18 -9
- package/dist/esm2020/src/map/services/message-registrator.service.mjs +5 -1
- package/dist/fesm2015/maps-components-src-map.mjs +300 -11
- package/dist/fesm2015/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2015/maps-components.mjs +300 -11
- package/dist/fesm2015/maps-components.mjs.map +1 -1
- package/dist/fesm2020/maps-components-src-map.mjs +300 -11
- package/dist/fesm2020/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2020/maps-components.mjs +300 -11
- package/dist/fesm2020/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';
|
|
@@ -884,6 +886,22 @@ class RemoveImageLayerCommand extends PostboyGenericMessage {
|
|
|
884
886
|
}
|
|
885
887
|
RemoveImageLayerCommand.ID = 'c8e7efdb-17ff-4cf9-89be-e688b8de3b95';
|
|
886
888
|
|
|
889
|
+
class AddRasterTileCommand extends PostboyGenericMessage {
|
|
890
|
+
constructor(layer) {
|
|
891
|
+
super();
|
|
892
|
+
this.layer = layer;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
AddRasterTileCommand.ID = 'd33447fe-eec0-4205-9b5d-0d79ddc74ad7';
|
|
896
|
+
|
|
897
|
+
class RemoveRasterTileCommand extends PostboyGenericMessage {
|
|
898
|
+
constructor(layer) {
|
|
899
|
+
super();
|
|
900
|
+
this.layer = layer;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
RemoveRasterTileCommand.ID = 'd1c4bf6a-e2f2-4385-a7a2-cecb525f8939';
|
|
904
|
+
|
|
887
905
|
class MapPostboyService extends PostboyService {
|
|
888
906
|
constructor() {
|
|
889
907
|
super();
|
|
@@ -911,19 +929,11 @@ class MapManagementService {
|
|
|
911
929
|
this.observeRemoveLayer();
|
|
912
930
|
this.observePlaceFeatures();
|
|
913
931
|
this.observeAddTile();
|
|
914
|
-
this.observeRemoveTile();
|
|
915
932
|
this.observeLayerQuery();
|
|
916
933
|
this.observeFeaturesInArea();
|
|
917
934
|
this.observeFeaturesInPoint();
|
|
918
935
|
this.observeImageLayer();
|
|
919
936
|
}
|
|
920
|
-
observeRemoveTile() {
|
|
921
|
-
this.postboy.sub(RemoveTileCommand).subscribe((c) => {
|
|
922
|
-
if (!this.map)
|
|
923
|
-
return;
|
|
924
|
-
this.map.removeLayer(c.layer);
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
937
|
observeLayerQuery() {
|
|
928
938
|
this.postboy.sub(GetLayerQuery).subscribe((ev) => ev.finish(this.layers.take(ev.name)));
|
|
929
939
|
}
|
|
@@ -933,6 +943,21 @@ class MapManagementService {
|
|
|
933
943
|
return;
|
|
934
944
|
this.map.addLayer(c.layer);
|
|
935
945
|
});
|
|
946
|
+
this.postboy.sub(RemoveTileCommand).subscribe((c) => {
|
|
947
|
+
if (!this.map)
|
|
948
|
+
return;
|
|
949
|
+
this.map.removeLayer(c.layer);
|
|
950
|
+
});
|
|
951
|
+
this.postboy.sub(AddRasterTileCommand).subscribe((c) => {
|
|
952
|
+
if (!this.map)
|
|
953
|
+
return;
|
|
954
|
+
this.map.addLayer(c.layer);
|
|
955
|
+
});
|
|
956
|
+
this.postboy.sub(RemoveRasterTileCommand).subscribe((c) => {
|
|
957
|
+
if (!this.map)
|
|
958
|
+
return;
|
|
959
|
+
this.map.removeLayer(c.layer);
|
|
960
|
+
});
|
|
936
961
|
}
|
|
937
962
|
observeImageLayer() {
|
|
938
963
|
this.postboy.sub(AddImageLayerCommand).subscribe((c) => {
|
|
@@ -1376,6 +1401,8 @@ class MessageRegistratorService extends PostboyAbstractRegistrator {
|
|
|
1376
1401
|
this.recordSubject(AddLayerCommand);
|
|
1377
1402
|
this.recordSubject(RemoveLayerCommand);
|
|
1378
1403
|
this.recordSubject(AddTileCommand);
|
|
1404
|
+
this.recordSubject(AddRasterTileCommand);
|
|
1405
|
+
this.recordSubject(RemoveRasterTileCommand);
|
|
1379
1406
|
this.recordSubject(RemoveImageLayerCommand);
|
|
1380
1407
|
this.recordSubject(AddImageLayerCommand);
|
|
1381
1408
|
this.recordSubject(RemoveTileCommand);
|
|
@@ -2360,6 +2387,264 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2360
2387
|
type: Input
|
|
2361
2388
|
}] } });
|
|
2362
2389
|
|
|
2390
|
+
class RasterTileLayerSettings {
|
|
2391
|
+
constructor() {
|
|
2392
|
+
/**
|
|
2393
|
+
* The maximum zoom level for a map view.
|
|
2394
|
+
*
|
|
2395
|
+
* @type {number}
|
|
2396
|
+
* @default 19
|
|
2397
|
+
*/
|
|
2398
|
+
this.maxZoom = 19;
|
|
2399
|
+
/**
|
|
2400
|
+
* The minimum zoom level allowed.
|
|
2401
|
+
*
|
|
2402
|
+
* @type {number}
|
|
2403
|
+
*/
|
|
2404
|
+
this.minZoom = 0;
|
|
2405
|
+
/**
|
|
2406
|
+
* The opacity of an element.
|
|
2407
|
+
*
|
|
2408
|
+
* @type {number}
|
|
2409
|
+
* @default 0.6
|
|
2410
|
+
*/
|
|
2411
|
+
this.opacity = 0.6;
|
|
2412
|
+
/**
|
|
2413
|
+
* Represents the tiles URL.
|
|
2414
|
+
* @typedef {string} url
|
|
2415
|
+
*
|
|
2416
|
+
* @example
|
|
2417
|
+
* 'https://example.ex/{z}/{x}/{y}.png'
|
|
2418
|
+
*/
|
|
2419
|
+
this.url = '';
|
|
2420
|
+
/**
|
|
2421
|
+
* The projection of the coordinate system.
|
|
2422
|
+
*
|
|
2423
|
+
* @type {string}
|
|
2424
|
+
* @default 'EPSG:3857'
|
|
2425
|
+
*/
|
|
2426
|
+
this.projection = 'EPSG:3857';
|
|
2427
|
+
/**
|
|
2428
|
+
* Additional headers that should be added to each tile request
|
|
2429
|
+
*
|
|
2430
|
+
* @type {Record<string, string>}
|
|
2431
|
+
* @default An empty array
|
|
2432
|
+
*/
|
|
2433
|
+
this.requestHeaders = null;
|
|
2434
|
+
this.operation = (d) => d[0] ?? [];
|
|
2435
|
+
}
|
|
2436
|
+
/**
|
|
2437
|
+
* Creates a copy of the given tile layer settings.
|
|
2438
|
+
*
|
|
2439
|
+
* @param {RasterTileLayerSettings} model - The tile layer settings to be copied.
|
|
2440
|
+
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the same properties as the model.
|
|
2441
|
+
*/
|
|
2442
|
+
static copy(model) {
|
|
2443
|
+
const result = new RasterTileLayerSettings();
|
|
2444
|
+
result.maxZoom = model.maxZoom;
|
|
2445
|
+
result.minZoom = model.minZoom;
|
|
2446
|
+
result.projection = model.projection;
|
|
2447
|
+
result.opacity = model.opacity;
|
|
2448
|
+
result.url = model.url;
|
|
2449
|
+
result.requestHeaders = model.requestHeaders;
|
|
2450
|
+
result.operation = model.operation;
|
|
2451
|
+
return result;
|
|
2452
|
+
}
|
|
2453
|
+
/**
|
|
2454
|
+
* Sets the URL of the RasterTileLayerSettings object.
|
|
2455
|
+
*
|
|
2456
|
+
* @param {string} url - The URL to be set.
|
|
2457
|
+
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
2458
|
+
*/
|
|
2459
|
+
setUrl(url) {
|
|
2460
|
+
return RasterTileLayerSettings.copy({ ...this, url });
|
|
2461
|
+
}
|
|
2462
|
+
/**
|
|
2463
|
+
* Sets the operation to apply on raster tile data.
|
|
2464
|
+
*
|
|
2465
|
+
* @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.
|
|
2466
|
+
* @return {RasterTileLayerSettings} A new instance of RasterTileLayerSettings with the updated operation.
|
|
2467
|
+
*/
|
|
2468
|
+
setOperation(operation) {
|
|
2469
|
+
return RasterTileLayerSettings.copy({ ...this, operation });
|
|
2470
|
+
}
|
|
2471
|
+
/**
|
|
2472
|
+
* Sets the requestHeaders of the RasterTileLayerSettings object.
|
|
2473
|
+
*
|
|
2474
|
+
* @param {Record<string, string>} requestHeaders - The headers which should be provided.
|
|
2475
|
+
* @return {RasterTileLayerSettings} - The updated RasterTileLayerSettings object.
|
|
2476
|
+
*/
|
|
2477
|
+
setRequestHeaders(requestHeaders) {
|
|
2478
|
+
return RasterTileLayerSettings.copy({ ...this, requestHeaders });
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* Sets the maximum zoom level for the tile layer.
|
|
2482
|
+
*
|
|
2483
|
+
* @param {number} maxZoom - The maximum zoom level.
|
|
2484
|
+
* @returns {RasterTileLayerSettings} - The updated tile layer settings object.
|
|
2485
|
+
*/
|
|
2486
|
+
setMaxZoom(maxZoom) {
|
|
2487
|
+
return RasterTileLayerSettings.copy({ ...this, maxZoom });
|
|
2488
|
+
}
|
|
2489
|
+
/**
|
|
2490
|
+
* Sets the minimum zoom level for the Tile Layer.
|
|
2491
|
+
*
|
|
2492
|
+
* @param {number} minZoom - The minimum zoom level to be set.
|
|
2493
|
+
* @return {RasterTileLayerSettings} The modified RasterTileLayerSettings object with the updated minimum zoom level.
|
|
2494
|
+
*/
|
|
2495
|
+
setMinZoom(minZoom) {
|
|
2496
|
+
return RasterTileLayerSettings.copy({ ...this, minZoom });
|
|
2497
|
+
}
|
|
2498
|
+
/**
|
|
2499
|
+
* Sets the opacity of the RasterTileLayerSettings.
|
|
2500
|
+
*
|
|
2501
|
+
* @param {number} opacity - The opacity value to set. Must be a number between 0 and 1.
|
|
2502
|
+
* @return {RasterTileLayerSettings} - A new instance of RasterTileLayerSettings with the opacity set.
|
|
2503
|
+
*/
|
|
2504
|
+
setOpacity(opacity) {
|
|
2505
|
+
return RasterTileLayerSettings.copy({ ...this, opacity });
|
|
2506
|
+
}
|
|
2507
|
+
/**
|
|
2508
|
+
* Sets the projection for the tile layer settings.
|
|
2509
|
+
*
|
|
2510
|
+
* @param {string} projection - The desired projection for the tile layer settings.
|
|
2511
|
+
* @return {RasterTileLayerSettings} - The updated tile layer settings with the new projection.
|
|
2512
|
+
*/
|
|
2513
|
+
setProjection(projection) {
|
|
2514
|
+
return RasterTileLayerSettings.copy({ ...this, projection });
|
|
2515
|
+
}
|
|
2516
|
+
/**
|
|
2517
|
+
* Checks if the current instance of RasterTileLayerSettings is equal to the given model.
|
|
2518
|
+
* @param {RasterTileLayerSettings} model - The model to compare against.
|
|
2519
|
+
* @return {boolean} - True if all properties of the current instance matches the properties of the model;
|
|
2520
|
+
* otherwise, false.
|
|
2521
|
+
*/
|
|
2522
|
+
isSame(model) {
|
|
2523
|
+
if (this.maxZoom !== model.maxZoom)
|
|
2524
|
+
return false;
|
|
2525
|
+
if (this.minZoom !== model.minZoom)
|
|
2526
|
+
return false;
|
|
2527
|
+
if (this.url !== model.url)
|
|
2528
|
+
return false;
|
|
2529
|
+
if (this.projection !== model.projection)
|
|
2530
|
+
return false;
|
|
2531
|
+
if (this.opacity !== model.opacity)
|
|
2532
|
+
return false;
|
|
2533
|
+
if (this.requestHeaders !== model.requestHeaders)
|
|
2534
|
+
return false;
|
|
2535
|
+
if (this.operation !== model.operation)
|
|
2536
|
+
return false;
|
|
2537
|
+
return true;
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
class RasterTileLayerFactory {
|
|
2542
|
+
build(settings) {
|
|
2543
|
+
const source = new XYZ({
|
|
2544
|
+
tileSize: 256,
|
|
2545
|
+
maxZoom: settings.maxZoom || 14,
|
|
2546
|
+
minZoom: settings.minZoom || 1,
|
|
2547
|
+
projection: get(settings.projection),
|
|
2548
|
+
tileUrlFunction: this.getTileFunc(settings),
|
|
2549
|
+
crossOrigin: 'Anonymous',
|
|
2550
|
+
tileLoadFunction: !!settings.requestHeaders
|
|
2551
|
+
? (tile, src) => this.tileLoader(tile, src, settings.requestHeaders)
|
|
2552
|
+
: undefined,
|
|
2553
|
+
});
|
|
2554
|
+
const raster = new RasterSource({
|
|
2555
|
+
sources: [source],
|
|
2556
|
+
operationType: 'image',
|
|
2557
|
+
operation: settings.operation,
|
|
2558
|
+
});
|
|
2559
|
+
return new ImageLayer({ source: raster, opacity: settings.opacity });
|
|
2560
|
+
}
|
|
2561
|
+
getTileFunc(settings) {
|
|
2562
|
+
return (tileCoord) => {
|
|
2563
|
+
const zoom = tileCoord[0];
|
|
2564
|
+
const x = tileCoord[1];
|
|
2565
|
+
const y = tileCoord[2];
|
|
2566
|
+
const normalizedCoord = this.getNormalizedCoord({ x: x, y: y }, zoom);
|
|
2567
|
+
const bound = 1 << zoom;
|
|
2568
|
+
return settings.url
|
|
2569
|
+
.replace('{x}', String(normalizedCoord?.x || x))
|
|
2570
|
+
.replace('{z}', String(zoom))
|
|
2571
|
+
.replace('{y}', String(bound - (normalizedCoord?.y || y) - 1));
|
|
2572
|
+
};
|
|
2573
|
+
}
|
|
2574
|
+
tileLoader(tile, src, headers) {
|
|
2575
|
+
const client = new XMLHttpRequest();
|
|
2576
|
+
client.open('GET', src);
|
|
2577
|
+
client.responseType = 'arraybuffer';
|
|
2578
|
+
Object.keys(headers).forEach((k) => client.setRequestHeader(k, headers[k]));
|
|
2579
|
+
client.onload = function () {
|
|
2580
|
+
if (this.response !== undefined) {
|
|
2581
|
+
const arrayBufferView = new Uint8Array(this.response);
|
|
2582
|
+
const blob = new Blob([arrayBufferView], { type: 'image/png' });
|
|
2583
|
+
const urlCreator = window.URL || window.webkitURL;
|
|
2584
|
+
tile.getImage().src = urlCreator.createObjectURL(blob);
|
|
2585
|
+
}
|
|
2586
|
+
};
|
|
2587
|
+
client.send();
|
|
2588
|
+
}
|
|
2589
|
+
getNormalizedCoord(coord, zoom) {
|
|
2590
|
+
const y = coord.y;
|
|
2591
|
+
let x = coord.x;
|
|
2592
|
+
const tileRange = 1 << zoom;
|
|
2593
|
+
if (y < 0 || y >= tileRange)
|
|
2594
|
+
return null;
|
|
2595
|
+
if (x < 0 || x >= tileRange)
|
|
2596
|
+
x = ((x % tileRange) + tileRange) % tileRange;
|
|
2597
|
+
return { x: x, y: y };
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
RasterTileLayerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RasterTileLayerFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2601
|
+
RasterTileLayerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RasterTileLayerFactory, providedIn: 'root' });
|
|
2602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RasterTileLayerFactory, decorators: [{
|
|
2603
|
+
type: Injectable,
|
|
2604
|
+
args: [{
|
|
2605
|
+
providedIn: 'root',
|
|
2606
|
+
}]
|
|
2607
|
+
}] });
|
|
2608
|
+
|
|
2609
|
+
class RasterTileLayerComponent extends DestructibleComponent {
|
|
2610
|
+
constructor(postboy, factory) {
|
|
2611
|
+
super();
|
|
2612
|
+
this.postboy = postboy;
|
|
2613
|
+
this.factory = factory;
|
|
2614
|
+
this._settings = new RasterTileLayerSettings();
|
|
2615
|
+
this.onDestroy = () => this.removeLayer();
|
|
2616
|
+
}
|
|
2617
|
+
set settings(value) {
|
|
2618
|
+
if (!value || this._settings.isSame(value))
|
|
2619
|
+
return;
|
|
2620
|
+
this._settings = value;
|
|
2621
|
+
this.initLayer();
|
|
2622
|
+
}
|
|
2623
|
+
ngOnInit() {
|
|
2624
|
+
this.postboy
|
|
2625
|
+
.sub(MapRenderedEvent)
|
|
2626
|
+
.pipe(filter((m) => !!m), first())
|
|
2627
|
+
.subscribe((m) => this.initLayer());
|
|
2628
|
+
}
|
|
2629
|
+
initLayer() {
|
|
2630
|
+
this.removeLayer();
|
|
2631
|
+
this.layer = this.factory.build(this._settings);
|
|
2632
|
+
this.postboy.fire(new AddRasterTileCommand(this.layer));
|
|
2633
|
+
}
|
|
2634
|
+
removeLayer() {
|
|
2635
|
+
if (this.layer)
|
|
2636
|
+
this.postboy.fire(new RemoveRasterTileCommand(this.layer));
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
RasterTileLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RasterTileLayerComponent, deps: [{ token: MapPostboyService }, { token: RasterTileLayerFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
2640
|
+
RasterTileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RasterTileLayerComponent, selector: "art-raster-tile-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RasterTileLayerComponent, decorators: [{
|
|
2642
|
+
type: Component,
|
|
2643
|
+
args: [{ selector: 'art-raster-tile-layer', template: '', changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
2644
|
+
}], ctorParameters: function () { return [{ type: MapPostboyService }, { type: RasterTileLayerFactory }]; }, propDecorators: { settings: [{
|
|
2645
|
+
type: Input
|
|
2646
|
+
}] } });
|
|
2647
|
+
|
|
2363
2648
|
class MapPlateFactory {
|
|
2364
2649
|
build(settings) {
|
|
2365
2650
|
return new Map({
|
|
@@ -2835,7 +3120,8 @@ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
|
2835
3120
|
PolygonsComponent,
|
|
2836
3121
|
ClusterLayerComponent,
|
|
2837
3122
|
MapControlZoomComponent,
|
|
2838
|
-
ImageLayerComponent
|
|
3123
|
+
ImageLayerComponent,
|
|
3124
|
+
RasterTileLayerComponent], imports: [CommonModule], exports: [MapPlateComponent,
|
|
2839
3125
|
FeatureLayerComponent,
|
|
2840
3126
|
MarkersComponent,
|
|
2841
3127
|
TileLayerComponent,
|
|
@@ -2843,7 +3129,8 @@ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
|
2843
3129
|
PolygonsComponent,
|
|
2844
3130
|
ClusterLayerComponent,
|
|
2845
3131
|
MapControlZoomComponent,
|
|
2846
|
-
ImageLayerComponent
|
|
3132
|
+
ImageLayerComponent,
|
|
3133
|
+
RasterTileLayerComponent] });
|
|
2847
3134
|
MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapModule, imports: [CommonModule] });
|
|
2848
3135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapModule, decorators: [{
|
|
2849
3136
|
type: NgModule,
|
|
@@ -2861,6 +3148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2861
3148
|
ClusterLayerComponent,
|
|
2862
3149
|
MapControlZoomComponent,
|
|
2863
3150
|
ImageLayerComponent,
|
|
3151
|
+
RasterTileLayerComponent,
|
|
2864
3152
|
],
|
|
2865
3153
|
exports: [
|
|
2866
3154
|
MapPlateComponent,
|
|
@@ -2872,6 +3160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2872
3160
|
ClusterLayerComponent,
|
|
2873
3161
|
MapControlZoomComponent,
|
|
2874
3162
|
ImageLayerComponent,
|
|
3163
|
+
RasterTileLayerComponent,
|
|
2875
3164
|
],
|
|
2876
3165
|
}]
|
|
2877
3166
|
}] });
|
|
@@ -3068,5 +3357,5 @@ class StringifyFeatureHelper {
|
|
|
3068
3357
|
* Generated bundle index. Do not edit.
|
|
3069
3358
|
*/
|
|
3070
3359
|
|
|
3071
|
-
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 };
|
|
3360
|
+
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 };
|
|
3072
3361
|
//# sourceMappingURL=maps-components-src-map.mjs.map
|