@artstesh/maps 1.0.2 → 1.0.4

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.
Files changed (52) hide show
  1. package/dist/bundles/maps-components-src-map.umd.js +131 -71
  2. package/dist/bundles/maps-components-src-map.umd.js.map +1 -1
  3. package/dist/bundles/maps-components.umd.js +131 -71
  4. package/dist/bundles/maps-components.umd.js.map +1 -1
  5. package/dist/esm2015/map/map-plate/layers/tile-layer/tile-layer.component.js +1 -1
  6. package/dist/esm2015/map/map-plate/map-plate.component.js +12 -7
  7. package/dist/esm2015/map/messages/events/map-click.event.js +13 -0
  8. package/dist/esm2015/map/messages/index.js +2 -1
  9. package/dist/esm2015/map/models/marker-model.js +4 -7
  10. package/dist/esm2015/map/services/map-click.service.js +51 -0
  11. package/dist/esm2015/map/services/map-management.service.js +3 -1
  12. package/dist/esm2015/map/services/map-postboy.service.js +6 -17
  13. package/dist/esm2015/map/services/map-state.service.js +4 -2
  14. package/dist/esm2015/map/services/message-registrator.service.js +21 -12
  15. package/dist/esm2015/src/map/map-plate/layers/tile-layer/tile-layer.component.js +1 -1
  16. package/dist/esm2015/src/map/map-plate/map-plate.component.js +12 -7
  17. package/dist/esm2015/src/map/messages/events/map-click.event.js +13 -0
  18. package/dist/esm2015/src/map/messages/index.js +2 -1
  19. package/dist/esm2015/src/map/models/marker-model.js +4 -7
  20. package/dist/esm2015/src/map/services/map-click.service.js +51 -0
  21. package/dist/esm2015/src/map/services/map-management.service.js +3 -1
  22. package/dist/esm2015/src/map/services/map-postboy.service.js +6 -17
  23. package/dist/esm2015/src/map/services/map-state.service.js +4 -2
  24. package/dist/esm2015/src/map/services/message-registrator.service.js +21 -12
  25. package/dist/fesm2015/maps-components-src-map.js +111 -62
  26. package/dist/fesm2015/maps-components-src-map.js.map +1 -1
  27. package/dist/fesm2015/maps-components.js +111 -62
  28. package/dist/fesm2015/maps-components.js.map +1 -1
  29. package/dist/map/map-plate/map-plate.component.d.ts +4 -2
  30. package/dist/map/messages/events/map-click.event.d.ts +12 -0
  31. package/dist/map/messages/index.d.ts +1 -0
  32. package/dist/map/models/marker-model.d.ts +2 -2
  33. package/dist/map/services/map-click.service.d.ts +16 -0
  34. package/dist/map/services/map-management.service.d.ts +3 -1
  35. package/dist/map/services/map-postboy.service.d.ts +4 -7
  36. package/dist/map/services/map-state.service.d.ts +3 -1
  37. package/dist/map/services/message-registrator.service.d.ts +7 -2
  38. package/dist/package.json +2 -1
  39. package/dist/src/map/map-plate/map-plate.component.d.ts +4 -2
  40. package/dist/src/map/messages/events/map-click.event.d.ts +12 -0
  41. package/dist/src/map/messages/index.d.ts +1 -0
  42. package/dist/src/map/models/marker-model.d.ts +2 -2
  43. package/dist/src/map/services/map-click.service.d.ts +16 -0
  44. package/dist/src/map/services/map-management.service.d.ts +3 -1
  45. package/dist/src/map/services/map-postboy.service.d.ts +4 -7
  46. package/dist/src/map/services/map-state.service.d.ts +3 -1
  47. package/dist/src/map/services/message-registrator.service.d.ts +7 -2
  48. package/package.json +4 -3
  49. package/dist/esm2015/map/services/service.collector.js +0 -14
  50. package/dist/esm2015/src/map/services/service.collector.js +0 -14
  51. package/dist/map/services/service.collector.d.ts +0 -9
  52. package/dist/src/map/services/service.collector.d.ts +0 -9
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ol'), require('ol/geom'), require('ol/proj'), require('rxjs'), require('ol/Map'), require('ol/View'), require('ol/layer/Tile'), require('ol/source/OSM'), require('rxjs/operators'), require('ol/source'), require('ol/layer'), require('ol/style/Style'), require('ol/style')) :
3
- typeof define === 'function' && define.amd ? define('maps-components/src/map', ['exports', '@angular/core', '@angular/common', 'ol', 'ol/geom', 'ol/proj', 'rxjs', 'ol/Map', 'ol/View', 'ol/layer/Tile', 'ol/source/OSM', 'rxjs/operators', 'ol/source', 'ol/layer', 'ol/style/Style', 'ol/style'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["maps-components"] = global["maps-components"] || {}, global["maps-components"].src = global["maps-components"].src || {}, global["maps-components"].src.map = {}), global.ng.core, global.ng.common, global.ol, global.geom, global.proj, global.rxjs, global.Map, global.View, global.TileLayer, global.OSM, global.rxjs.operators, global.source, global.layer, global.Style, global.style));
5
- })(this, (function (exports, i0, i5, ol, geom, proj, rxjs, Map, View, TileLayer, OSM, operators, source, layer, Style, style) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('ol'), require('ol/geom'), require('ol/proj'), require('rxjs'), require('@artstesh/postboy'), require('ol/Map'), require('ol/View'), require('ol/layer/Tile'), require('ol/source/OSM'), require('rxjs/operators'), require('ol/source'), require('ol/layer'), require('ol/style/Style'), require('ol/style')) :
3
+ typeof define === 'function' && define.amd ? define('maps-components/src/map', ['exports', '@angular/core', '@angular/common', 'ol', 'ol/geom', 'ol/proj', 'rxjs', '@artstesh/postboy', 'ol/Map', 'ol/View', 'ol/layer/Tile', 'ol/source/OSM', 'rxjs/operators', 'ol/source', 'ol/layer', 'ol/style/Style', 'ol/style'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["maps-components"] = global["maps-components"] || {}, global["maps-components"].src = global["maps-components"].src || {}, global["maps-components"].src.map = {}), global.ng.core, global.ng.common, global.ol, global.geom, global.proj, global.rxjs, global.postboy, global.Map, global.View, global.TileLayer, global.OSM, global.rxjs.operators, global.source, global.layer, global.Style, global.style));
5
+ })(this, (function (exports, i0, i5, ol, geom, proj, rxjs, postboy, Map, View, TileLayer, OSM, operators, source, layer, Style, style) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -611,10 +611,8 @@
611
611
  function MarkerModel(lat, lng, id, info) {
612
612
  this.lat = lat;
613
613
  this.lng = lng;
614
- this.id = id;
615
614
  this.info = info;
616
- if (id == null)
617
- this.id = IdGenerator.get();
615
+ this.id = id == null ? IdGenerator.get() : id;
618
616
  this._feature = this.getFeature();
619
617
  }
620
618
  Object.defineProperty(MarkerModel.prototype, "feature", {
@@ -625,12 +623,10 @@
625
623
  configurable: true
626
624
  });
627
625
  MarkerModel.prototype.getFeature = function () {
628
- var _this = this;
629
626
  var feature = new ol.Feature(new geom.Point([this.lng, this.lat]));
630
627
  feature.setId(this.id);
631
- if (this.info) {
632
- Object.keys(this.info).forEach(function (k) { return feature.set(k, _this.info[k]); });
633
- }
628
+ if (this.info)
629
+ feature.set('info', this.info);
634
630
  return feature;
635
631
  };
636
632
  return MarkerModel;
@@ -674,6 +670,25 @@
674
670
  }(GenericMessage));
675
671
  MapRenderedEvent.ID = 'b6121807-3b89-4cd3-82cf-089d2cefdc4f';
676
672
 
673
+ var MapClickEvent = /** @class */ (function (_super) {
674
+ __extends(MapClickEvent, _super);
675
+ function MapClickEvent(coordinates, entities) {
676
+ var _this = _super.call(this) || this;
677
+ _this.coordinates = coordinates;
678
+ _this.entities = entities;
679
+ return _this;
680
+ }
681
+ Object.defineProperty(MapClickEvent.prototype, "id", {
682
+ get: function () {
683
+ return MapClickEvent.ID;
684
+ },
685
+ enumerable: false,
686
+ configurable: true
687
+ });
688
+ return MapClickEvent;
689
+ }(GenericMessage));
690
+ MapClickEvent.ID = '323df526-8d9c-49c6-83e8-6e9a1e7762f7';
691
+
677
692
  var AddLayerCommand = /** @class */ (function (_super) {
678
693
  __extends(AddLayerCommand, _super);
679
694
  function AddLayerCommand(layer) {
@@ -765,73 +780,34 @@
765
780
  }(GenericMessage));
766
781
  RemoveTileCommand.ID = 'c36ccc0b-5638-4819-b148-2de57a59a5b7';
767
782
 
768
- var MapPostboyService = /** @class */ (function () {
783
+ var MapPostboyService = /** @class */ (function (_super) {
784
+ __extends(MapPostboyService, _super);
769
785
  function MapPostboyService() {
770
- this.applications = {};
786
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
787
+ _this.observe = function (id) { return _this.subscribe(id); };
788
+ return _this;
771
789
  }
772
- MapPostboyService.prototype.register = function (id, sub) {
773
- this.applications[id] = sub;
774
- };
775
- MapPostboyService.prototype.subscribe = function (id) {
776
- if (!this.applications[id])
777
- throw new Error("There is no event with id " + id);
778
- return this.applications[id].asObservable();
779
- };
780
- MapPostboyService.prototype.fire = function (message) {
781
- if (!this.applications[message.id])
782
- throw new Error("There is no event with id " + message.id);
783
- this.applications[message.id].next(message);
784
- };
785
790
  return MapPostboyService;
786
- }());
787
- MapPostboyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
791
+ }(postboy.PostboyService));
792
+ MapPostboyService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
788
793
  MapPostboyService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService });
789
794
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPostboyService, decorators: [{
790
795
  type: i0.Injectable
791
796
  }] });
792
797
 
793
- var MessageRegistratorService = /** @class */ (function () {
794
- function MessageRegistratorService(service) {
795
- service.register(MapRenderedEvent.ID, new rxjs.ReplaySubject(1));
796
- service.register(AddLayerCommand.ID, new rxjs.Subject());
797
- service.register(PlaceLayerFeaturesCommand.ID, new rxjs.ReplaySubject(1));
798
- service.register(RemoveLayerCommand.ID, new rxjs.Subject());
799
- service.register(AddTileCommand.ID, new rxjs.Subject());
800
- service.register(RemoveTileCommand.ID, new rxjs.Subject());
801
- }
802
- return MessageRegistratorService;
803
- }());
804
- MessageRegistratorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
805
- MessageRegistratorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService });
806
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService, decorators: [{
807
- type: i0.Injectable
808
- }], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
809
-
810
- var MapStateService = /** @class */ (function () {
811
- function MapStateService(postboy) {
812
- var _this = this;
813
- this.postboy = postboy;
814
- postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) { return (_this.map = m); });
815
- }
816
- return MapStateService;
817
- }());
818
- MapStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
819
- MapStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService });
820
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService, decorators: [{
821
- type: i0.Injectable
822
- }], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
823
-
824
798
  var MapManagementService = /** @class */ (function () {
825
799
  function MapManagementService(postboy) {
826
800
  this.postboy = postboy;
827
801
  this.layers = {};
802
+ }
803
+ MapManagementService.prototype.up = function () {
828
804
  this.observeMapRender();
829
805
  this.observeAddLayer();
830
806
  this.observeRemoveLayer();
831
807
  this.observePlaceFeatures();
832
808
  this.observeAddTile();
833
809
  this.observeRemoveTile();
834
- }
810
+ };
835
811
  MapManagementService.prototype.observeRemoveTile = function () {
836
812
  var _this = this;
837
813
  this.postboy.subscribe(RemoveTileCommand.ID).subscribe(function (c) {
@@ -890,16 +866,94 @@
890
866
  type: i0.Injectable
891
867
  }], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
892
868
 
893
- var ServiceCollector = /** @class */ (function () {
894
- function ServiceCollector(registrator, management, state) {
869
+ var MapStateService = /** @class */ (function () {
870
+ function MapStateService(postboy) {
871
+ this.postboy = postboy;
895
872
  }
896
- return ServiceCollector;
873
+ MapStateService.prototype.up = function () {
874
+ var _this = this;
875
+ this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) { return (_this.map = m); });
876
+ };
877
+ return MapStateService;
897
878
  }());
898
- ServiceCollector.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ServiceCollector, deps: [{ token: MessageRegistratorService }, { token: MapManagementService }, { token: MapStateService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
899
- ServiceCollector.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ServiceCollector });
900
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ServiceCollector, decorators: [{
879
+ MapStateService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
880
+ MapStateService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService });
881
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapStateService, decorators: [{
901
882
  type: i0.Injectable
902
- }], ctorParameters: function () { return [{ type: MessageRegistratorService }, { type: MapManagementService }, { type: MapStateService }]; } });
883
+ }], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
884
+
885
+ var MapClickService = /** @class */ (function () {
886
+ function MapClickService(postboy) {
887
+ this.postboy = postboy;
888
+ }
889
+ MapClickService.prototype.up = function () {
890
+ this.observeMapRender();
891
+ };
892
+ MapClickService.prototype.observeMapRender = function () {
893
+ var _this = this;
894
+ this.postboy.subscribe(MapRenderedEvent.ID).subscribe(function (m) {
895
+ var _a;
896
+ _this.map = m.map;
897
+ (_a = _this.map) === null || _a === void 0 ? void 0 : _a.on('singleclick', function (e) {
898
+ _this.postboy.fire(_this.onClick(e));
899
+ });
900
+ });
901
+ };
902
+ MapClickService.prototype.onClick = function (ev) {
903
+ var _this = this;
904
+ var _a;
905
+ var model = new MapClickEvent(ev.coordinate, {});
906
+ (_a = this.map) === null || _a === void 0 ? void 0 : _a.forEachFeatureAtPixel(ev.pixel, function (f, l) {
907
+ _this.getFeatureCollectionWithInner([f])
908
+ .filter(function (f) { return !!f.getId(); })
909
+ .forEach(function (fs) {
910
+ var layerName = l.get('name');
911
+ if (!model.entities[layerName])
912
+ model.entities[layerName] = [];
913
+ model.entities[layerName].push(f.getId());
914
+ });
915
+ });
916
+ return model;
917
+ };
918
+ MapClickService.prototype.getFeatureCollectionWithInner = function (features) {
919
+ var result = [];
920
+ features === null || features === void 0 ? void 0 : features.forEach(function (f) {
921
+ var innerFeatures = f.get('features');
922
+ (innerFeatures === null || innerFeatures === void 0 ? void 0 : innerFeatures.length) ? result.push.apply(result, __spreadArray([], __read(innerFeatures))) : result.push(f);
923
+ });
924
+ return result;
925
+ };
926
+ return MapClickService;
927
+ }());
928
+ MapClickService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapClickService, deps: [{ token: MapPostboyService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
929
+ MapClickService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapClickService });
930
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapClickService, decorators: [{
931
+ type: i0.Injectable
932
+ }], ctorParameters: function () { return [{ type: MapPostboyService }]; } });
933
+
934
+ var MessageRegistratorService = /** @class */ (function (_super) {
935
+ __extends(MessageRegistratorService, _super);
936
+ function MessageRegistratorService(service, management, state, interaction) {
937
+ var _this = _super.call(this, service) || this;
938
+ _this.registerServices([management, state, interaction]);
939
+ return _this;
940
+ }
941
+ MessageRegistratorService.prototype._up = function () {
942
+ this.registerReplay(MapRenderedEvent.ID);
943
+ this.registerReplay(PlaceLayerFeaturesCommand.ID);
944
+ this.registerSubject(AddLayerCommand.ID);
945
+ this.registerSubject(RemoveLayerCommand.ID);
946
+ this.registerSubject(AddTileCommand.ID);
947
+ this.registerSubject(RemoveTileCommand.ID);
948
+ this.registerSubject(MapClickEvent.ID);
949
+ };
950
+ return MessageRegistratorService;
951
+ }(postboy.PostboyAbstractRegistrator));
952
+ MessageRegistratorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService, deps: [{ token: MapPostboyService }, { token: MapManagementService }, { token: MapStateService }, { token: MapClickService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
953
+ MessageRegistratorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService });
954
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MessageRegistratorService, decorators: [{
955
+ type: i0.Injectable
956
+ }], ctorParameters: function () { return [{ type: MapPostboyService }, { type: MapManagementService }, { type: MapStateService }, { type: MapClickService }]; } });
903
957
 
904
958
  var MapPlateFactory = /** @class */ (function () {
905
959
  function MapPlateFactory() {
@@ -1001,9 +1055,14 @@
1001
1055
  _this.elementRef = elementRef;
1002
1056
  _this.postboy = postboy;
1003
1057
  _this.mapFactory = mapFactory;
1058
+ _this.registrator = registrator;
1004
1059
  _this.detector = detector;
1005
1060
  _this.osmUrl = '';
1006
1061
  _this._settings = new MapSettings();
1062
+ _this.onDestroy = function () {
1063
+ _this.registrator.down();
1064
+ };
1065
+ registrator.up();
1007
1066
  return _this;
1008
1067
  }
1009
1068
  Object.defineProperty(MapPlateComponent.prototype, "settings", {
@@ -1037,8 +1096,8 @@
1037
1096
  };
1038
1097
  return MapPlateComponent;
1039
1098
  }(DestructibleComponent));
1040
- MapPlateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateComponent, deps: [{ token: i0__namespace.ElementRef }, { token: MapPostboyService }, { token: MapPlateFactory }, { token: ServiceCollector }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1041
- MapPlateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapPlateComponent, selector: "lib-map-plate", inputs: { settings: "settings" }, providers: [MessageRegistratorService, MapStateService, MapManagementService, ServiceCollector], usesInheritance: true, ngImport: i0__namespace, template: "<ng-content></ng-content>\n<lib-osm-tile-layer *ngIf=\"osmUrl && map\" [map]=\"map\" [url]=\"osmUrl\"></lib-osm-tile-layer>\n", styles: ["lib-map-plate{position:relative;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: OsmTileLayerComponent, selector: "lib-osm-tile-layer", inputs: ["url", "map"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1099
+ MapPlateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateComponent, deps: [{ token: i0__namespace.ElementRef }, { token: MapPostboyService }, { token: MapPlateFactory }, { token: MessageRegistratorService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1100
+ MapPlateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapPlateComponent, selector: "lib-map-plate", inputs: { settings: "settings" }, providers: [MessageRegistratorService, MapStateService, MapManagementService, MapClickService], usesInheritance: true, ngImport: i0__namespace, template: "<ng-content></ng-content>\n<lib-osm-tile-layer *ngIf=\"osmUrl && map\" [map]=\"map\" [url]=\"osmUrl\"></lib-osm-tile-layer>\n", styles: ["lib-map-plate{position:relative;display:flex;flex-direction:column;height:100%}\n"], components: [{ type: OsmTileLayerComponent, selector: "lib-osm-tile-layer", inputs: ["url", "map"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1042
1101
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapPlateComponent, decorators: [{
1043
1102
  type: i0.Component,
1044
1103
  args: [{
@@ -1046,9 +1105,9 @@
1046
1105
  templateUrl: './map-plate.component.html',
1047
1106
  styleUrls: ['./map-plate.component.scss'],
1048
1107
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1049
- providers: [MessageRegistratorService, MapStateService, MapManagementService, ServiceCollector],
1108
+ providers: [MessageRegistratorService, MapStateService, MapManagementService, MapClickService],
1050
1109
  }]
1051
- }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: MapPostboyService }, { type: MapPlateFactory }, { type: ServiceCollector }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { settings: [{
1110
+ }], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: MapPostboyService }, { type: MapPlateFactory }, { type: MessageRegistratorService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { settings: [{
1052
1111
  type: i0.Input
1053
1112
  }] } });
1054
1113
 
@@ -1446,6 +1505,7 @@
1446
1505
  exports.FeatureLayerComponent = FeatureLayerComponent;
1447
1506
  exports.FeatureLayerSettings = FeatureLayerSettings;
1448
1507
  exports.GenericMessage = GenericMessage;
1508
+ exports.MapClickEvent = MapClickEvent;
1449
1509
  exports.MapLyrsLabel = MapLyrsLabel;
1450
1510
  exports.MapModule = MapModule;
1451
1511
  exports.MapPlateComponent = MapPlateComponent;