@artstesh/maps 1.1.0 → 1.1.2
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 +70 -25
- package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
- package/dist/bundles/maps-components.umd.js +70 -25
- package/dist/bundles/maps-components.umd.js.map +1 -1
- package/dist/esm2015/map/map-plate/controls/map-control-zoom/map-control-zoom.component.js +3 -3
- package/dist/esm2015/map/map-plate/features/markers/markers.component.js +5 -6
- package/dist/esm2015/map/map-plate/features/polygons/polygons.component.js +4 -4
- package/dist/esm2015/map/map-plate/layers/cluster-layer/cluster-layer.component.js +3 -3
- package/dist/esm2015/map/map-plate/layers/feature-layer/feature-layer.component.js +3 -3
- package/dist/esm2015/map/map-plate/layers/feature-layer/feature-layer.settings.js +44 -1
- package/dist/esm2015/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.js +3 -3
- package/dist/esm2015/map/map-plate/layers/tile-layer/tile-layer.component.js +3 -3
- package/dist/esm2015/map/map-plate/map-plate.component.js +4 -4
- package/dist/esm2015/map/map-plate/tooltips/tooltip/tooltip.component.js +3 -3
- package/dist/esm2015/map/messages/queries/get-features-in-area.query.js +1 -1
- package/dist/esm2015/map/models/drawing-type.enum.js +2 -1
- package/dist/esm2015/map/services/drawing/drawing-generation.service.js +4 -2
- package/dist/esm2015/map/services/feature.service.js +1 -1
- package/dist/esm2015/map/services/map-management.service.js +3 -3
- package/dist/esm2015/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.js +3 -3
- package/dist/esm2015/src/map/map-plate/features/markers/markers.component.js +5 -6
- package/dist/esm2015/src/map/map-plate/features/polygons/polygons.component.js +4 -4
- package/dist/esm2015/src/map/map-plate/layers/cluster-layer/cluster-layer.component.js +3 -3
- package/dist/esm2015/src/map/map-plate/layers/feature-layer/feature-layer.component.js +3 -3
- package/dist/esm2015/src/map/map-plate/layers/feature-layer/feature-layer.settings.js +44 -1
- package/dist/esm2015/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.js +3 -3
- package/dist/esm2015/src/map/map-plate/layers/tile-layer/tile-layer.component.js +3 -3
- package/dist/esm2015/src/map/map-plate/map-plate.component.js +4 -4
- package/dist/esm2015/src/map/map-plate/tooltips/tooltip/tooltip.component.js +3 -3
- package/dist/esm2015/src/map/messages/queries/get-features-in-area.query.js +1 -1
- package/dist/esm2015/src/map/models/drawing-type.enum.js +2 -1
- package/dist/esm2015/src/map/services/drawing/drawing-generation.service.js +4 -2
- package/dist/esm2015/src/map/services/feature.service.js +1 -1
- package/dist/esm2015/src/map/services/map-management.service.js +3 -3
- package/dist/fesm2015/maps-components-src-map.js +71 -26
- package/dist/fesm2015/maps-components-src-map.js.map +1 -1
- package/dist/fesm2015/maps-components.js +71 -26
- package/dist/fesm2015/maps-components.js.map +1 -1
- package/dist/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +1 -1
- package/dist/map/map-plate/features/markers/markers.component.d.ts +1 -1
- package/dist/map/map-plate/features/polygons/polygons.component.d.ts +1 -1
- package/dist/map/map-plate/layers/cluster-layer/cluster-layer.component.d.ts +1 -1
- package/dist/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +1 -1
- package/dist/map/map-plate/layers/feature-layer/feature-layer.settings.d.ts +46 -0
- package/dist/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +1 -1
- package/dist/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +1 -1
- package/dist/map/map-plate/map-plate.component.d.ts +1 -1
- package/dist/map/map-plate/tooltips/tooltip/tooltip.component.d.ts +1 -1
- package/dist/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/src/map/map-plate/controls/map-control-zoom/map-control-zoom.component.d.ts +1 -1
- package/dist/src/map/map-plate/features/markers/markers.component.d.ts +1 -1
- package/dist/src/map/map-plate/features/polygons/polygons.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/cluster-layer/cluster-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/feature-layer/feature-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/feature-layer/feature-layer.settings.d.ts +46 -0
- package/dist/src/map/map-plate/layers/osm-tile-layer/osm-tile-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/layers/tile-layer/tile-layer.component.d.ts +1 -1
- package/dist/src/map/map-plate/map-plate.component.d.ts +1 -1
- package/dist/src/map/map-plate/tooltips/tooltip/tooltip.component.d.ts +1 -1
- package/dist/src/map/models/drawing-type.enum.d.ts +2 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { getCenter, createEmpty, extend } from 'ol/extent';
|
|
|
9
9
|
import { get, useGeographic, transform } from 'ol/proj';
|
|
10
10
|
import { PostboyGenericMessage, PostboyCallbackMessage, PostboyExecutor, PostboyService, PostboyAbstractRegistrator } from '@artstesh/postboy';
|
|
11
11
|
import { Draw, Modify, Translate } from 'ol/interaction';
|
|
12
|
-
import { createRegularPolygon } from 'ol/interaction/Draw';
|
|
12
|
+
import { createRegularPolygon, createBox } from 'ol/interaction/Draw';
|
|
13
13
|
import { Zoom } from 'ol/control';
|
|
14
14
|
import { first, filter, auditTime } from 'rxjs/operators';
|
|
15
15
|
import { Vector, XYZ } from 'ol/source';
|
|
@@ -182,6 +182,7 @@ var DrawingType;
|
|
|
182
182
|
DrawingType[DrawingType["Polygon"] = 1] = "Polygon";
|
|
183
183
|
DrawingType[DrawingType["Circle"] = 2] = "Circle";
|
|
184
184
|
DrawingType[DrawingType["Square"] = 3] = "Square";
|
|
185
|
+
DrawingType[DrawingType["Box"] = 4] = "Box";
|
|
185
186
|
})(DrawingType || (DrawingType = {}));
|
|
186
187
|
|
|
187
188
|
var FeatureOutputFormat;
|
|
@@ -448,6 +449,8 @@ class DrawingGenerationService {
|
|
|
448
449
|
switch (type) {
|
|
449
450
|
case DrawingType.Circle:
|
|
450
451
|
return createRegularPolygon(32);
|
|
452
|
+
case DrawingType.Box:
|
|
453
|
+
return createBox();
|
|
451
454
|
case DrawingType.Square:
|
|
452
455
|
return createRegularPolygon(4);
|
|
453
456
|
}
|
|
@@ -590,14 +593,14 @@ class MapManagementService {
|
|
|
590
593
|
}
|
|
591
594
|
observePlaceFeatures() {
|
|
592
595
|
this.postboy.subscribe(PlaceLayerFeaturesCommand.ID).subscribe((c) => {
|
|
593
|
-
var _a;
|
|
596
|
+
var _a, _b;
|
|
594
597
|
if (!this.layers.has(c.layer))
|
|
595
598
|
return;
|
|
596
599
|
let source = this.layers.take(c.layer).getSource();
|
|
597
600
|
if (!!source['getSource'])
|
|
598
601
|
source = (_a = source) === null || _a === void 0 ? void 0 : _a.getSource();
|
|
599
602
|
source === null || source === void 0 ? void 0 : source.clear();
|
|
600
|
-
source === null || source === void 0 ? void 0 : source.addFeatures(c.features);
|
|
603
|
+
!!((_b = c.features) === null || _b === void 0 ? void 0 : _b.length) && (source === null || source === void 0 ? void 0 : source.addFeatures(c.features));
|
|
601
604
|
});
|
|
602
605
|
}
|
|
603
606
|
observeRemoveLayer() {
|
|
@@ -1072,11 +1075,11 @@ class TileLayerComponent extends DestructibleComponent {
|
|
|
1072
1075
|
}
|
|
1073
1076
|
}
|
|
1074
1077
|
TileLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TileLayerComponent, deps: [{ token: MapPostboyService }, { token: TileLayerFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
1075
|
-
TileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TileLayerComponent, selector: "
|
|
1078
|
+
TileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TileLayerComponent, selector: "art-tile-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1076
1079
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TileLayerComponent, decorators: [{
|
|
1077
1080
|
type: Component,
|
|
1078
1081
|
args: [{
|
|
1079
|
-
selector: '
|
|
1082
|
+
selector: 'art-tile-layer',
|
|
1080
1083
|
template: '',
|
|
1081
1084
|
styleUrls: [],
|
|
1082
1085
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1126,11 +1129,11 @@ class OsmTileLayerComponent extends DestructibleComponent {
|
|
|
1126
1129
|
}
|
|
1127
1130
|
}
|
|
1128
1131
|
OsmTileLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OsmTileLayerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1129
|
-
OsmTileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: OsmTileLayerComponent, selector: "
|
|
1132
|
+
OsmTileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: OsmTileLayerComponent, selector: "art-osm-tile-layer", inputs: { url: "url", map: "map" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1130
1133
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: OsmTileLayerComponent, decorators: [{
|
|
1131
1134
|
type: Component,
|
|
1132
1135
|
args: [{
|
|
1133
|
-
selector: '
|
|
1136
|
+
selector: 'art-osm-tile-layer',
|
|
1134
1137
|
template: '',
|
|
1135
1138
|
styleUrls: [],
|
|
1136
1139
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1141,13 +1144,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
1141
1144
|
type: Input
|
|
1142
1145
|
}] } });
|
|
1143
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* A layer that is responsible for showing and styling main features on the map, such as markers and polygons
|
|
1149
|
+
*/
|
|
1144
1150
|
class FeatureLayerSettings {
|
|
1145
1151
|
constructor() {
|
|
1152
|
+
/**
|
|
1153
|
+
* The identifier of the field, it is autogenerated by default, but can be set manually
|
|
1154
|
+
*/
|
|
1146
1155
|
this.name = IdGenerator.get();
|
|
1156
|
+
/**
|
|
1157
|
+
* The priority of showing - layers with higher zIndex cover others in case of collisions
|
|
1158
|
+
*/
|
|
1147
1159
|
this.zIndex = 1;
|
|
1160
|
+
/**
|
|
1161
|
+
* The maximum zoom at which the layer is visible. 19 by default
|
|
1162
|
+
*/
|
|
1148
1163
|
this.maxZoom = 19;
|
|
1164
|
+
/**
|
|
1165
|
+
* The minimum zoom at which the layer is visible. 0 by default
|
|
1166
|
+
*/
|
|
1149
1167
|
this.minZoom = 0;
|
|
1150
1168
|
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Creates a clone of the existing settings
|
|
1171
|
+
* @param model
|
|
1172
|
+
*/
|
|
1151
1173
|
static copy(model) {
|
|
1152
1174
|
const result = new FeatureLayerSettings();
|
|
1153
1175
|
result.name = model.name;
|
|
@@ -1157,21 +1179,45 @@ class FeatureLayerSettings {
|
|
|
1157
1179
|
result.style = model.style;
|
|
1158
1180
|
return result;
|
|
1159
1181
|
}
|
|
1182
|
+
/**
|
|
1183
|
+
Setter for {@link FeatureLayerSettings.zIndex}
|
|
1184
|
+
* @param zIndex
|
|
1185
|
+
*/
|
|
1160
1186
|
setZIndex(zIndex) {
|
|
1161
1187
|
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { zIndex }));
|
|
1162
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
* Setter for {@link FeatureLayerSettings.name}
|
|
1191
|
+
* @param name
|
|
1192
|
+
*/
|
|
1163
1193
|
setName(name) {
|
|
1164
1194
|
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { name }));
|
|
1165
1195
|
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Setter for {@link FeatureLayerSettings.maxZoom}
|
|
1198
|
+
* @param maxZoom
|
|
1199
|
+
*/
|
|
1166
1200
|
setMaxZoom(maxZoom) {
|
|
1167
1201
|
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { maxZoom }));
|
|
1168
1202
|
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Setter for {@link FeatureLayerSettings.minZoom}
|
|
1205
|
+
* @param minZoom
|
|
1206
|
+
*/
|
|
1169
1207
|
setMinZoom(minZoom) {
|
|
1170
1208
|
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { minZoom }));
|
|
1171
1209
|
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Setter for {@link FeatureLayerSettings.style}
|
|
1212
|
+
* @param style
|
|
1213
|
+
*/
|
|
1172
1214
|
setStyle(style) {
|
|
1173
1215
|
return FeatureLayerSettings.copy(Object.assign(Object.assign({}, this), { style }));
|
|
1174
1216
|
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Checks if the model has the same content
|
|
1219
|
+
* @param model - the object to compare
|
|
1220
|
+
*/
|
|
1175
1221
|
isSame(model) {
|
|
1176
1222
|
if (this.maxZoom !== model.maxZoom)
|
|
1177
1223
|
return false;
|
|
@@ -1243,11 +1289,11 @@ class FeatureLayerComponent extends DestructibleComponent {
|
|
|
1243
1289
|
}
|
|
1244
1290
|
}
|
|
1245
1291
|
FeatureLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FeatureLayerComponent, deps: [{ token: MapPostboyService }, { token: FeatureLayerFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
1246
|
-
FeatureLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FeatureLayerComponent, selector: "
|
|
1292
|
+
FeatureLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FeatureLayerComponent, selector: "art-feature-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1247
1293
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: FeatureLayerComponent, decorators: [{
|
|
1248
1294
|
type: Component,
|
|
1249
1295
|
args: [{
|
|
1250
|
-
selector: '
|
|
1296
|
+
selector: 'art-feature-layer',
|
|
1251
1297
|
template: '',
|
|
1252
1298
|
styleUrls: [],
|
|
1253
1299
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1439,11 +1485,11 @@ class ClusterLayerComponent extends DestructibleComponent {
|
|
|
1439
1485
|
}
|
|
1440
1486
|
}
|
|
1441
1487
|
ClusterLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClusterLayerComponent, deps: [{ token: MapPostboyService }, { token: ClusterLayerFactory }], target: i0.ɵɵFactoryTarget.Component });
|
|
1442
|
-
ClusterLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ClusterLayerComponent, selector: "
|
|
1488
|
+
ClusterLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ClusterLayerComponent, selector: "art-cluster-layer", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1443
1489
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ClusterLayerComponent, decorators: [{
|
|
1444
1490
|
type: Component,
|
|
1445
1491
|
args: [{
|
|
1446
|
-
selector: '
|
|
1492
|
+
selector: 'art-cluster-layer',
|
|
1447
1493
|
template: '',
|
|
1448
1494
|
styleUrls: [],
|
|
1449
1495
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1517,7 +1563,7 @@ class MapPlateComponent extends DestructibleComponent {
|
|
|
1517
1563
|
}
|
|
1518
1564
|
}
|
|
1519
1565
|
MapPlateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MapPlateComponent, deps: [{ token: i0.ElementRef }, { token: MapPostboyService }, { token: MapPlateFactory }, { token: MessageRegistratorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1520
|
-
MapPlateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapPlateComponent, selector: "
|
|
1566
|
+
MapPlateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapPlateComponent, selector: "art-map-plate", inputs: { settings: "settings" }, providers: [
|
|
1521
1567
|
MessageRegistratorService,
|
|
1522
1568
|
MapStateService,
|
|
1523
1569
|
MapManagementService,
|
|
@@ -1527,11 +1573,11 @@ MapPlateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
1527
1573
|
DrawingGenerationService,
|
|
1528
1574
|
FeatureService,
|
|
1529
1575
|
FeatureModificationService,
|
|
1530
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\r\n<
|
|
1576
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-content></ng-content>\r\n<art-osm-tile-layer *ngIf=\"osmUrl && map\" [map]=\"map\" [url]=\"osmUrl\"></art-osm-tile-layer>\r\n<art-feature-layer *ngIf=\"map\" [settings]=\"drawingLayerSettings\"></art-feature-layer>\r\n", styles: ["art-map-plate{position:relative;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: OsmTileLayerComponent, selector: "art-osm-tile-layer", inputs: ["url", "map"] }, { type: FeatureLayerComponent, selector: "art-feature-layer", inputs: ["settings"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1531
1577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MapPlateComponent, decorators: [{
|
|
1532
1578
|
type: Component,
|
|
1533
1579
|
args: [{
|
|
1534
|
-
selector: '
|
|
1580
|
+
selector: 'art-map-plate',
|
|
1535
1581
|
templateUrl: './map-plate.component.html',
|
|
1536
1582
|
styleUrls: ['./map-plate.component.scss'],
|
|
1537
1583
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1559,7 +1605,7 @@ class MarkersComponent extends DestructibleComponent {
|
|
|
1559
1605
|
this._markers = [];
|
|
1560
1606
|
}
|
|
1561
1607
|
set markers(value) {
|
|
1562
|
-
this._markers = value;
|
|
1608
|
+
this._markers = value !== null && value !== void 0 ? value : [];
|
|
1563
1609
|
this.putMarkers();
|
|
1564
1610
|
}
|
|
1565
1611
|
ngOnInit() {
|
|
@@ -1569,18 +1615,17 @@ class MarkersComponent extends DestructibleComponent {
|
|
|
1569
1615
|
.subscribe(() => this.putMarkers());
|
|
1570
1616
|
}
|
|
1571
1617
|
putMarkers() {
|
|
1572
|
-
|
|
1573
|
-
if (!((_a = this._markers) === null || _a === void 0 ? void 0 : _a.length))
|
|
1618
|
+
if (!this._markers)
|
|
1574
1619
|
return;
|
|
1575
1620
|
this.postboy.fire(new PlaceLayerFeaturesCommand(this.layerName, this._markers.map((m) => m.feature)));
|
|
1576
1621
|
}
|
|
1577
1622
|
}
|
|
1578
1623
|
MarkersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarkersComponent, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1579
|
-
MarkersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MarkersComponent, selector: "
|
|
1624
|
+
MarkersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MarkersComponent, selector: "art-markers", inputs: { layerName: "layerName", markers: "markers" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1580
1625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MarkersComponent, decorators: [{
|
|
1581
1626
|
type: Component,
|
|
1582
1627
|
args: [{
|
|
1583
|
-
selector: '
|
|
1628
|
+
selector: 'art-markers',
|
|
1584
1629
|
template: '',
|
|
1585
1630
|
styleUrls: [],
|
|
1586
1631
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1679,11 +1724,11 @@ class TooltipComponent extends DestructibleComponent {
|
|
|
1679
1724
|
}
|
|
1680
1725
|
}
|
|
1681
1726
|
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipComponent, deps: [{ token: MapPostboyService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1682
|
-
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TooltipComponent, selector: "
|
|
1727
|
+
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TooltipComponent, selector: "art-tooltip", inputs: { settings: "settings" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["tip"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div #tip [class]=\"['tooltip-wrapper', _settings.containerClass]\" [hidden]=\"!show\">\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".tooltip-wrapper{position:absolute}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1683
1728
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
1684
1729
|
type: Component,
|
|
1685
1730
|
args: [{
|
|
1686
|
-
selector: '
|
|
1731
|
+
selector: 'art-tooltip',
|
|
1687
1732
|
templateUrl: './tooltip.component.html',
|
|
1688
1733
|
styleUrls: ['./tooltip.component.scss'],
|
|
1689
1734
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1703,7 +1748,7 @@ class PolygonsComponent extends DestructibleComponent {
|
|
|
1703
1748
|
this._polygons = [];
|
|
1704
1749
|
}
|
|
1705
1750
|
set polygons(value) {
|
|
1706
|
-
this._polygons = value;
|
|
1751
|
+
this._polygons = value !== null && value !== void 0 ? value : [];
|
|
1707
1752
|
this.putPolygons();
|
|
1708
1753
|
}
|
|
1709
1754
|
ngOnInit() {
|
|
@@ -1719,11 +1764,11 @@ class PolygonsComponent extends DestructibleComponent {
|
|
|
1719
1764
|
}
|
|
1720
1765
|
}
|
|
1721
1766
|
PolygonsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PolygonsComponent, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1722
|
-
PolygonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PolygonsComponent, selector: "
|
|
1767
|
+
PolygonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PolygonsComponent, selector: "art-polygons", inputs: { layerName: "layerName", polygons: "polygons" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1723
1768
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: PolygonsComponent, decorators: [{
|
|
1724
1769
|
type: Component,
|
|
1725
1770
|
args: [{
|
|
1726
|
-
selector: '
|
|
1771
|
+
selector: 'art-polygons',
|
|
1727
1772
|
template: '',
|
|
1728
1773
|
styleUrls: [],
|
|
1729
1774
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -1814,11 +1859,11 @@ class MapControlZoomComponent extends DestructibleComponent {
|
|
|
1814
1859
|
}
|
|
1815
1860
|
}
|
|
1816
1861
|
MapControlZoomComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MapControlZoomComponent, deps: [{ token: MapPostboyService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1817
|
-
MapControlZoomComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapControlZoomComponent, selector: "
|
|
1862
|
+
MapControlZoomComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapControlZoomComponent, selector: "art-map-control-zoom", inputs: { settings: "settings" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1818
1863
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: MapControlZoomComponent, decorators: [{
|
|
1819
1864
|
type: Component,
|
|
1820
1865
|
args: [{
|
|
1821
|
-
selector: '
|
|
1866
|
+
selector: 'art-map-control-zoom',
|
|
1822
1867
|
template: '',
|
|
1823
1868
|
styleUrls: [],
|
|
1824
1869
|
changeDetection: ChangeDetectionStrategy.OnPush,
|