@igo2/geo 1.13.4 → 1.14.1

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 (73) hide show
  1. package/esm2020/lib/catalog/catalog-browser/catalog-browser.component.mjs +4 -1
  2. package/esm2020/lib/catalog/shared/catalog.abstract.mjs +1 -1
  3. package/esm2020/lib/datasource/shared/datasources/datasource.interface.mjs +1 -1
  4. package/esm2020/lib/datasource/shared/datasources/feature-datasource.interface.mjs +1 -1
  5. package/esm2020/lib/draw/draw/draw-popup.component.mjs +562 -32
  6. package/esm2020/lib/draw/draw/draw.component.mjs +360 -130
  7. package/esm2020/lib/draw/draw/draw.module.mjs +12 -4
  8. package/esm2020/lib/draw/shared/draw-style.service.mjs +2 -2
  9. package/esm2020/lib/draw/shared/draw.enum.mjs +14 -1
  10. package/esm2020/lib/draw/shared/draw.interface.mjs +1 -1
  11. package/esm2020/lib/draw/shared/draw.utils.mjs +19 -1
  12. package/esm2020/lib/filter/ogc-filter-time/ogc-filter-time.component.mjs +43 -16
  13. package/esm2020/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.mjs +21 -8
  14. package/esm2020/lib/geometry/geometry-form-field/geometry-form-field-input.component.mjs +12 -2
  15. package/esm2020/lib/geometry/shared/controls/draw.mjs +53 -10
  16. package/esm2020/lib/import-export/shared/export.service.mjs +2 -2
  17. package/esm2020/lib/import-export/shared/import.interface.mjs +1 -1
  18. package/esm2020/lib/import-export/shared/import.service.mjs +26 -6
  19. package/esm2020/lib/layer/shared/layers/layer.interface.mjs +1 -1
  20. package/esm2020/lib/map/shared/hover-feature.directive.mjs +2 -2
  21. package/esm2020/lib/map/shared/map.utils.mjs +4 -1
  22. package/esm2020/lib/map/shared/mapOffline.directive.mjs +7 -7
  23. package/esm2020/lib/offline/geoDB/configFileToGeoDB.service.mjs +33 -4
  24. package/esm2020/lib/offline/geoDB/geoDB.interface.mjs +1 -1
  25. package/esm2020/lib/offline/geoDB/geoDB.service.mjs +12 -12
  26. package/esm2020/lib/print/shared/geopdf.mjs +58 -0
  27. package/esm2020/lib/print/shared/index.mjs +2 -1
  28. package/esm2020/lib/print/shared/print.interface.mjs +1 -1
  29. package/esm2020/lib/print/shared/print.service.mjs +118 -64
  30. package/esm2020/lib/query/shared/query.service.mjs +7 -4
  31. package/esm2020/lib/search/search-bar/search-bar.component.mjs +30 -28
  32. package/esm2020/lib/search/search-results/search-results.component.mjs +22 -13
  33. package/esm2020/lib/search/shared/search.utils.mjs +2 -1
  34. package/esm2020/lib/search/shared/sources/icherche.mjs +70 -58
  35. package/esm2020/lib/search/shared/sources/index.mjs +1 -3
  36. package/esm2020/lib/workspace/shared/edition-workspace.service.mjs +20 -9
  37. package/fesm2015/igo2-geo.mjs +1505 -529
  38. package/fesm2015/igo2-geo.mjs.map +1 -1
  39. package/fesm2020/igo2-geo.mjs +1456 -525
  40. package/fesm2020/igo2-geo.mjs.map +1 -1
  41. package/lib/catalog/shared/catalog.abstract.d.ts +1 -0
  42. package/lib/datasource/shared/datasources/datasource.interface.d.ts +1 -0
  43. package/lib/datasource/shared/datasources/feature-datasource.interface.d.ts +1 -0
  44. package/lib/draw/draw/draw-popup.component.d.ts +52 -5
  45. package/lib/draw/draw/draw.component.d.ts +34 -4
  46. package/lib/draw/draw/draw.module.d.ts +3 -1
  47. package/lib/draw/shared/draw.enum.d.ts +11 -0
  48. package/lib/draw/shared/draw.interface.d.ts +4 -0
  49. package/lib/draw/shared/draw.utils.d.ts +2 -0
  50. package/lib/filter/ogc-filter-time/ogc-filter-time.component.d.ts +3 -1
  51. package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +2 -1
  52. package/lib/geometry/geometry-form-field/geometry-form-field-input.component.d.ts +7 -1
  53. package/lib/geometry/shared/controls/draw.d.ts +18 -0
  54. package/lib/import-export/shared/import.interface.d.ts +2 -1
  55. package/lib/import-export/shared/import.service.d.ts +7 -0
  56. package/lib/layer/shared/layers/layer.interface.d.ts +4 -0
  57. package/lib/map/shared/map.utils.d.ts +1 -0
  58. package/lib/offline/geoDB/configFileToGeoDB.service.d.ts +1 -0
  59. package/lib/offline/geoDB/geoDB.interface.d.ts +1 -0
  60. package/lib/offline/geoDB/geoDB.service.d.ts +3 -3
  61. package/lib/print/shared/geopdf.d.ts +1 -0
  62. package/lib/print/shared/index.d.ts +1 -0
  63. package/lib/print/shared/print.interface.d.ts +5 -0
  64. package/lib/print/shared/print.service.d.ts +17 -8
  65. package/lib/search/search-bar/search-bar.component.d.ts +8 -8
  66. package/lib/search/search-results/search-results.component.d.ts +4 -1
  67. package/lib/search/shared/sources/index.d.ts +0 -2
  68. package/lib/workspace/shared/edition-workspace.service.d.ts +4 -0
  69. package/package.json +4 -4
  70. package/esm2020/lib/search/shared/sources/cadastre.mjs +0 -126
  71. package/esm2020/lib/search/shared/sources/cadastre.providers.mjs +0 -23
  72. package/lib/search/shared/sources/cadastre.d.ts +0 -33
  73. package/lib/search/shared/sources/cadastre.providers.d.ts +0 -18
@@ -35,6 +35,7 @@ export declare abstract class Catalog implements ICatalog {
35
35
  sortDirection?: 'asc' | 'desc';
36
36
  setCrossOriginAnonymous?: boolean;
37
37
  showLegend?: boolean;
38
+ profils?: string[];
38
39
  protected catalogService: CatalogService;
39
40
  constructor(options: Catalog, service: CatalogService);
40
41
  abstract collectCatalogItems(): Observable<CatalogItem[]>;
@@ -44,6 +44,7 @@ export interface EditionOptions {
44
44
  deleteUrl: string;
45
45
  modifyUrl: string;
46
46
  geomType: Type;
47
+ geomDatabaseProj?: string;
47
48
  hasGeometry: boolean;
48
49
  addWithDraw?: boolean;
49
50
  messages?: any[];
@@ -7,6 +7,7 @@ import { DataSourceOptions } from './datasource.interface';
7
7
  export interface FeatureDataSourceOptions extends DataSourceOptions {
8
8
  formatType?: string;
9
9
  formatOptions?: any;
10
+ params?: any;
10
11
  features?: olFeature<OlGeometry>[];
11
12
  format?: olFormatFeature;
12
13
  url?: string;
@@ -1,16 +1,63 @@
1
+ import { LanguageService } from '@igo2/core';
1
2
  import { MatDialogRef } from '@angular/material/dialog';
3
+ import { CoordinatesUnit, GeometryType, LabelType } from '../shared/draw.enum';
4
+ import { IgoMap } from '../../map/shared';
5
+ import { MeasureLengthUnit, MeasureAreaUnit } from '../../measure/shared/measure.enum';
2
6
  import * as i0 from "@angular/core";
3
7
  export declare class DrawPopupComponent {
8
+ private languageService;
4
9
  dialogRef: MatDialogRef<DrawPopupComponent>;
5
10
  data: {
6
- currentLabel: string;
11
+ olGeometry: any;
12
+ map: IgoMap;
7
13
  };
8
14
  confirmFlag: boolean;
9
- constructor(dialogRef: MatDialogRef<DrawPopupComponent>, data: {
10
- currentLabel: string;
15
+ labelFlag: LabelType | [LabelType, LabelType];
16
+ coordinatesMeasureUnit: CoordinatesUnit;
17
+ lengthMeasureUnit: MeasureLengthUnit;
18
+ areaMeasureUnit: MeasureAreaUnit;
19
+ geometryType: typeof GeometryType;
20
+ labelType: typeof LabelType;
21
+ arrayBuiltInType: any[];
22
+ currentLabel: string;
23
+ currentCoordinates: string;
24
+ currentArea: string;
25
+ currentLength: string;
26
+ olGeometryType: GeometryType;
27
+ lengthInMeters: string;
28
+ areaInMetersSquare: string;
29
+ coordinatesInDD: string;
30
+ currentCoordinatesUnit: string;
31
+ private longlatDD;
32
+ private labelLength;
33
+ polygonCheck: number;
34
+ constructor(languageService: LanguageService, dialogRef: MatDialogRef<DrawPopupComponent>, data: {
35
+ olGeometry: any;
36
+ map: IgoMap;
11
37
  });
38
+ /**
39
+ * HTML Interactions
40
+ */
12
41
  cancelDrawing(): void;
13
- confirm(labelString: string): void;
42
+ confirm(input?: string): void;
43
+ onLabelTypeChange(labelType: LabelType, checked?: boolean): void;
44
+ onChangeLengthUnit(lengthUnit: MeasureLengthUnit): void;
45
+ onChangeAreaUnit(areaUnit: MeasureAreaUnit): void;
46
+ onChangeCoordinateUnit(coordinatesUnit: CoordinatesUnit): void;
47
+ buildArrayType(): void;
48
+ noLabelButton(): any;
49
+ get customOrPredefined(): LabelType.Predefined | LabelType.Custom;
50
+ optionAvailable(currentOption: LabelType): boolean;
51
+ get allLengthUnits(): string[];
52
+ getLengthUnitEnum(lengthUnit: MeasureLengthUnit): string;
53
+ get allAreaUnits(): string[];
54
+ get allCoordinatesUnits(): string[];
55
+ getAreaUnitEnum(areaUnit: MeasureAreaUnit): string;
56
+ private getRadius;
57
+ get lengthLabelT(): any;
58
+ getLabelLength(event?: any): void;
59
+ selectOptions(option: any): boolean;
60
+ getProperLengthLabel(option: any): any;
14
61
  static ɵfac: i0.ɵɵFactoryDeclaration<DrawPopupComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<DrawPopupComponent, "igo-draw-popup-component", never, { "confirmFlag": "confirmFlag"; }, {}, never, never, false>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<DrawPopupComponent, "igo-draw-popup-component", never, { "confirmFlag": "confirmFlag"; "labelFlag": "labelFlag"; "coordinatesMeasureUnit": "coordinatesMeasureUnit"; "lengthMeasureUnit": "lengthMeasureUnit"; "areaMeasureUnit": "areaMeasureUnit"; }, {}, never, never, false>;
16
63
  }
@@ -4,15 +4,16 @@ import { LanguageService } from '@igo2/core';
4
4
  import { MatDialog } from '@angular/material/dialog';
5
5
  import { FontType, GeometryType } from '../shared/draw.enum';
6
6
  import { IgoMap } from '../../map/shared/map';
7
- import { BehaviorSubject } from 'rxjs';
7
+ import { BehaviorSubject, Subscription } from 'rxjs';
8
8
  import { Draw, FeatureWithDraw } from '../shared/draw.interface';
9
- import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
9
+ import { UntypedFormGroup, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
10
10
  import { VectorLayer } from '../../layer/shared/layers/vector-layer';
11
11
  import { DrawControl } from '../../geometry/shared/controls/draw';
12
12
  import { EntityTableTemplate } from '@igo2/common';
13
13
  import type { Type } from 'ol/geom/Geometry';
14
14
  import { DrawStyleService } from '../shared/draw-style.service';
15
15
  import { DrawIconService } from '../shared/draw-icon.service';
16
+ import { MeasureLengthUnit } from '../../measure/shared/measure.enum';
16
17
  import * as i0 from "@angular/core";
17
18
  export declare class DrawComponent implements OnInit, OnDestroy {
18
19
  private languageService;
@@ -57,11 +58,22 @@ export declare class DrawComponent implements OnInit, OnDestroy {
57
58
  drawControlIsDisabled: boolean;
58
59
  drawControlIsActive: boolean;
59
60
  labelsAreShown: boolean;
61
+ freehandMode: boolean;
60
62
  private subscriptions$$;
61
63
  position: string;
62
64
  form: UntypedFormGroup;
63
65
  icons: Array<string>;
64
66
  icon: string;
67
+ radiusFormControl: UntypedFormControl;
68
+ measureUnit: MeasureLengthUnit;
69
+ radiusFormControlChange$$: Subscription;
70
+ predefinedRadius$: BehaviorSubject<number>;
71
+ radiusDrawEnd$: BehaviorSubject<number>;
72
+ /**
73
+ * Available measure units for the measure type given
74
+ * @internal
75
+ */
76
+ get measureUnits(): string[];
65
77
  private numberOfDrawings;
66
78
  isCreatingNewLayer: boolean;
67
79
  private currGeometryType;
@@ -113,7 +125,7 @@ export declare class DrawComponent implements OnInit, OnDestroy {
113
125
  /**
114
126
  * Called when the user double-clicks the selected drawing
115
127
  */
116
- editLabelDrawing(): void;
128
+ editLabelDrawing(feature: any): void;
117
129
  openShorcutsDialog(): void;
118
130
  deleteDrawings(): void;
119
131
  /**
@@ -125,6 +137,7 @@ export declare class DrawComponent implements OnInit, OnDestroy {
125
137
  * @internal
126
138
  */
127
139
  onToggleDrawControl(toggleIsChecked: boolean): void;
140
+ onToggleFreehandMode(event: any): void;
128
141
  /**
129
142
  * Display the current layer with the current store and the current layerSource
130
143
  */
@@ -160,13 +173,15 @@ export declare class DrawComponent implements OnInit, OnDestroy {
160
173
  onGeometryTypeChange(geometryType: Type): void;
161
174
  /**
162
175
  * Update the label of a geometry when a label is entered in a dialog box
163
- * @param olGeometry the geometry
176
+ * @param OlFeature the feature
164
177
  * @param label the label
165
178
  */
166
179
  private updateLabelOfOlGeometry;
167
180
  private updateFontSizeAndStyle;
168
181
  private updateFillAndStrokeColor;
169
182
  private updateOffset;
183
+ private updateLabelType;
184
+ private updateMeasureUnit;
170
185
  getFeatureFontSize(): string;
171
186
  getFeatureFontStyle(): string;
172
187
  getFeatureFillColor(): string;
@@ -200,10 +215,25 @@ export declare class DrawComponent implements OnInit, OnDestroy {
200
215
  * Activate a given control
201
216
  */
202
217
  private activateDrawControl;
218
+ /**
219
+ * get the geometry of design
220
+ *
221
+ */
222
+ isPoint(): boolean;
223
+ isLineString(): boolean;
224
+ isPolygon(): boolean;
225
+ isCircle(): boolean;
226
+ /**
227
+ * The fonction to predefine the radius of the user
228
+ *
229
+ */
230
+ changeRadius(radius: number): void;
231
+ onMeasureUnitChange(selectedMeasureUnit: MeasureLengthUnit): void;
203
232
  /**
204
233
  * Recreates the style of the feature stored
205
234
  */
206
235
  private elementStyle;
236
+ private getRadius;
207
237
  static ɵfac: i0.ɵɵFactoryDeclaration<DrawComponent, never>;
208
238
  static ɵcmp: i0.ɵɵComponentDeclaration<DrawComponent, "igo-draw", never, { "map": "map"; "stores": "stores"; "drawControls": "drawControls"; "activeDrawingLayer": "activeDrawingLayer"; }, { "activeLayerChange": "activeLayerChange"; "drawControlsEvent": "drawControlsEvent"; "layersIDEvent": "layersIDEvent"; "fillColor": "fillColor"; "strokeColor": "strokeColor"; "strokeWidth": "strokeWidth"; "fontSize": "fontSize"; "fontStyle": "fontStyle"; }, never, never, false>;
209
239
  }
@@ -22,11 +22,13 @@ import * as i20 from "@igo2/common";
22
22
  import * as i21 from "ngx-color-picker";
23
23
  import * as i22 from "@angular/platform-browser";
24
24
  import * as i23 from "@angular/platform-browser/animations";
25
+ import * as i24 from "@angular/material/radio";
26
+ import * as i25 from "@angular/material/checkbox";
25
27
  /**
26
28
  * @ignore
27
29
  */
28
30
  export declare class IgoDrawModule {
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoDrawModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDrawModule, [typeof i1.DrawComponent, typeof i2.DrawPopupComponent, typeof i3.DrawLayerPopupComponent, typeof i4.DrawShorcutsComponent], [typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatButtonToggleModule, typeof i9.MatDividerModule, typeof i10.MatFormFieldModule, typeof i11.MatIconModule, typeof i12.MatBadgeModule, typeof i13.MatTooltipModule, typeof i10.MatFormFieldModule, typeof i14.MatInputModule, typeof i15.MatListModule, typeof i16.MatSelectModule, typeof i17.MatSlideToggleModule, typeof i18.MatDialogModule, typeof i19.IgoLanguageModule, typeof i20.IgoEntityTableModule, typeof i21.ColorPickerModule, typeof i22.BrowserModule, typeof i23.BrowserAnimationsModule], [typeof i1.DrawComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoDrawModule, [typeof i1.DrawComponent, typeof i2.DrawPopupComponent, typeof i3.DrawLayerPopupComponent, typeof i4.DrawShorcutsComponent], [typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatButtonToggleModule, typeof i9.MatDividerModule, typeof i10.MatFormFieldModule, typeof i11.MatIconModule, typeof i12.MatBadgeModule, typeof i13.MatTooltipModule, typeof i10.MatFormFieldModule, typeof i14.MatInputModule, typeof i15.MatListModule, typeof i16.MatSelectModule, typeof i17.MatSlideToggleModule, typeof i18.MatDialogModule, typeof i19.IgoLanguageModule, typeof i20.IgoEntityTableModule, typeof i21.ColorPickerModule, typeof i22.BrowserModule, typeof i23.BrowserAnimationsModule, typeof i24.MatRadioModule, typeof i25.MatCheckboxModule], [typeof i1.DrawComponent]>;
31
33
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoDrawModule>;
32
34
  }
@@ -19,3 +19,14 @@ export declare enum FontType {
19
19
  BrushScriptMT = "Brush Script MT",
20
20
  ComicSansMS = "Comic Sans MS"
21
21
  }
22
+ export declare enum LabelType {
23
+ Coordinates = "Coordinates",
24
+ Length = "Length",
25
+ Area = "Area",
26
+ Predefined = "Predefined",
27
+ Custom = "Custom"
28
+ }
29
+ export declare enum CoordinatesUnit {
30
+ DecimalDegree = "DD",
31
+ DegreesMinutesSeconds = "DMS"
32
+ }
@@ -2,6 +2,8 @@ import { Feature } from '../../feature/shared/feature.interfaces';
2
2
  import { IgoMap } from '../../map/shared/map';
3
3
  import { DrawControl } from '../../geometry/shared/controls/draw';
4
4
  import { FeatureStore } from '../../feature';
5
+ import { CoordinatesUnit, LabelType } from '../shared/draw.enum';
6
+ import { MeasureAreaUnit, MeasureLengthUnit } from '../../measure/shared/measure.enum';
5
7
  export interface DrawOptions {
6
8
  icons?: string[];
7
9
  }
@@ -26,6 +28,8 @@ export interface FeatureWithDrawProperties {
26
28
  drawingStyle: DrawingStyle;
27
29
  offsetX: number;
28
30
  offsetY: number;
31
+ labelType: LabelType;
32
+ measureUnit: MeasureLengthUnit | MeasureAreaUnit | CoordinatesUnit;
29
33
  }
30
34
  export interface FeatureStoreDrawStrategyOptions {
31
35
  map: IgoMap;
@@ -4,6 +4,7 @@ import OlLineString from 'ol/geom/LineString';
4
4
  import OlPolygon from 'ol/geom/Polygon';
5
5
  import OlCircle from 'ol/geom/Circle';
6
6
  import OlOverlay from 'ol/Overlay';
7
+ import { CoordinatesUnit } from './draw.enum';
7
8
  /**
8
9
  * Create a default style
9
10
  * @param fillColor the fill color
@@ -31,3 +32,4 @@ export declare function updateOlTooltipDrawAtCenter(olGeometry: OlLineString | O
31
32
  * @returns OL overlay
32
33
  */
33
34
  export declare function createOlTooltipDrawAtPoint(olPoint: OlPoint): OlOverlay;
35
+ export declare function DDtoDMS(value: [number, number], unit: CoordinatesUnit): string[] | undefined;
@@ -49,6 +49,8 @@ export declare class OgcFilterTimeComponent implements OnInit {
49
49
  get sliderInterval(): number;
50
50
  get maxDate(): string;
51
51
  get displayFormat(): string;
52
+ filterBeginFunction: any;
53
+ filterEndFunction: any;
52
54
  constructor(ogcFilterTimeService: OGCFilterTimeService);
53
55
  ngOnInit(): void;
54
56
  parseFilter(filter: any): Date;
@@ -60,7 +62,7 @@ export declare class OgcFilterTimeComponent implements OnInit {
60
62
  yearSelected(year: any, datePicker?: any, property?: string, refreshFilter?: boolean): void;
61
63
  monthSelected(month: any, datePicker?: any, property?: string, refreshFilter?: boolean): void;
62
64
  calendarView(): "year" | "month" | "multi-year" | "clock";
63
- dateFilter(type: string, date: string): boolean;
65
+ dateFilter(type: string, date: string): void;
64
66
  getDateTime(date: any, pos: any): Date;
65
67
  handleMinuteIncrement(): number;
66
68
  handleHourIncrement(): number;
@@ -59,6 +59,7 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
59
59
  measureUnitChange: EventEmitter<MeasureLengthUnit>;
60
60
  radiusEvent: EventEmitter<number>;
61
61
  freehandControl: EventEmitter<boolean>;
62
+ predefinedRadius: EventEmitter<boolean>;
62
63
  clearButtonEvent: EventEmitter<any>;
63
64
  clearSearchEvent: EventEmitter<any>;
64
65
  export: EventEmitter<any>;
@@ -161,5 +162,5 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
161
162
  toggleVisibleList(): void;
162
163
  private createTableTemplate;
163
164
  static ɵfac: i0.ɵɵFactoryDeclaration<SpatialFilterItemComponent, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<SpatialFilterItemComponent, "igo-spatial-filter-item", never, { "map": "map"; "type": "type"; "queryType": "queryType"; "zone": "zone"; "loading": "loading"; "store": "store"; "layers": "layers"; "allLayers": "allLayers"; "thematicLength": "thematicLength"; }, { "toggleSearch": "toggleSearch"; "itemTypeChange": "itemTypeChange"; "thematicChange": "thematicChange"; "drawZoneEvent": "drawZoneEvent"; "bufferEvent": "bufferEvent"; "zoneWithBufferChange": "zoneWithBufferChange"; "measureUnitChange": "measureUnitChange"; "radiusEvent": "radiusEvent"; "freehandControl": "freehandControl"; "clearButtonEvent": "clearButtonEvent"; "clearSearchEvent": "clearSearchEvent"; "export": "export"; "openWorkspace": "openWorkspace"; "entityChange": "entityChange"; }, never, never, false>;
165
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpatialFilterItemComponent, "igo-spatial-filter-item", never, { "map": "map"; "type": "type"; "queryType": "queryType"; "zone": "zone"; "loading": "loading"; "store": "store"; "layers": "layers"; "allLayers": "allLayers"; "thematicLength": "thematicLength"; }, { "toggleSearch": "toggleSearch"; "itemTypeChange": "itemTypeChange"; "thematicChange": "thematicChange"; "drawZoneEvent": "drawZoneEvent"; "bufferEvent": "bufferEvent"; "zoneWithBufferChange": "zoneWithBufferChange"; "measureUnitChange": "measureUnitChange"; "radiusEvent": "radiusEvent"; "freehandControl": "freehandControl"; "predefinedRadius": "predefinedRadius"; "clearButtonEvent": "clearButtonEvent"; "clearSearchEvent": "clearSearchEvent"; "export": "export"; "openWorkspace": "openWorkspace"; "entityChange": "entityChange"; }, never, never, false>;
165
166
  }
@@ -61,6 +61,12 @@ export declare class GeometryFormFieldInputComponent implements OnInit, OnDestro
61
61
  get freehandDrawIsActive(): boolean;
62
62
  set freehandDrawIsActive(value: boolean);
63
63
  private _freehandDrawIsActive;
64
+ /**
65
+ * Whether freehand draw control should be active or not
66
+ */
67
+ get predefinedRadius(): boolean;
68
+ set predefinedRadius(value: boolean);
69
+ private _predefinedRadius;
64
70
  /**
65
71
  * Control options
66
72
  */
@@ -196,5 +202,5 @@ export declare class GeometryFormFieldInputComponent implements OnInit, OnDestro
196
202
  */
197
203
  private getGuideStyleFromDrawStyle;
198
204
  static ɵfac: i0.ɵɵFactoryDeclaration<GeometryFormFieldInputComponent, [null, { optional: true; self: true; }]>;
199
- static ɵcmp: i0.ɵɵComponentDeclaration<GeometryFormFieldInputComponent, "igo-geometry-form-field-input", never, { "map": "map"; "geometryType": "geometryType"; "drawGuide": "drawGuide"; "measure": "measure"; "drawControlIsActive": "drawControlIsActive"; "freehandDrawIsActive": "freehandDrawIsActive"; "controlOptions": "controlOptions"; "drawStyle": "drawStyle"; "overlayStyle": "overlayStyle"; "value": "value"; "radius": "radius"; }, {}, never, never, false>;
205
+ static ɵcmp: i0.ɵɵComponentDeclaration<GeometryFormFieldInputComponent, "igo-geometry-form-field-input", never, { "map": "map"; "geometryType": "geometryType"; "drawGuide": "drawGuide"; "measure": "measure"; "drawControlIsActive": "drawControlIsActive"; "freehandDrawIsActive": "freehandDrawIsActive"; "predefinedRadius": "predefinedRadius"; "controlOptions": "controlOptions"; "drawStyle": "drawStyle"; "overlayStyle": "overlayStyle"; "value": "value"; "radius": "radius"; }, {}, never, never, false>;
200
206
  }
@@ -46,8 +46,15 @@ export declare class DrawControl {
46
46
  * Freehand mode observable (defaults to false)
47
47
  */
48
48
  freehand$: BehaviorSubject<boolean>;
49
+ /**
50
+ * Observables from predefined radius (defaults to false and undefined)
51
+ */
52
+ ispredefinedRadius$: BehaviorSubject<boolean>;
53
+ predefinedRadius$: BehaviorSubject<number>;
54
+ radiusDrawEnd$: BehaviorSubject<number>;
49
55
  private keyDown$$;
50
56
  private olGeometryType;
57
+ private olInteractionStyle;
51
58
  private olMap;
52
59
  private olDrawingLayer;
53
60
  private olDrawInteraction;
@@ -57,7 +64,13 @@ export declare class DrawControl {
57
64
  private onDrawEndKey;
58
65
  private onDrawAbortKey;
59
66
  private onDrawKey;
67
+ radius: number;
60
68
  private mousePosition;
69
+ /**
70
+ * take the value of radius
71
+ */
72
+ get radiusVal(): number;
73
+ set radiusValData(radiusCercle: number);
61
74
  /**
62
75
  * Wheter the control is active
63
76
  */
@@ -77,11 +90,16 @@ export declare class DrawControl {
77
90
  * Return the drawing layer source
78
91
  */
79
92
  getSource(): OlVectorSource<OlGeometry>;
93
+ setOlInteractionStyle(style: any): void;
80
94
  /**
81
95
  * Set the current geometry type
82
96
  * @param geometryType the geometry type
83
97
  */
84
98
  setGeometryType(geometryType: Type): void;
99
+ /**
100
+ * Get the current geometry type
101
+ */
102
+ getGeometryType(): string | typeof OlGeometry;
85
103
  /**
86
104
  * Create a drawing source if none is defined in the options
87
105
  */
@@ -1,7 +1,8 @@
1
+ import { ExportFormat } from "./export.type";
1
2
  export interface ImportExportServiceOptions {
2
3
  url: string;
3
4
  clientSideFileSizeMaxMb?: number;
4
5
  forceNaming?: boolean;
5
- formats?: string[];
6
+ formats?: ExportFormat[];
6
7
  configFileToGeoDBService?: string;
7
8
  }
@@ -6,6 +6,13 @@ import * as i0 from "@angular/core";
6
6
  export declare class ImportService {
7
7
  private http;
8
8
  private config;
9
+ static formatExtensionAssociation: {
10
+ GeoJSON: string;
11
+ GML: string;
12
+ GPX: string;
13
+ KML: string;
14
+ Shapefile: string;
15
+ };
9
16
  static allowedMimeTypes: string[];
10
17
  static allowedZipMimeTypes: string[];
11
18
  static allowedExtensions: string[];
@@ -11,6 +11,7 @@ export interface LayerOptions {
11
11
  title?: string;
12
12
  id?: string;
13
13
  alias?: string;
14
+ security?: LayerSecurityOptions;
14
15
  baseLayer?: boolean;
15
16
  opacity?: number;
16
17
  visible?: boolean;
@@ -35,6 +36,9 @@ export interface LayerOptions {
35
36
  linkedLayers?: LayersLink;
36
37
  showButtonZoomToExtent?: boolean;
37
38
  }
39
+ export interface LayerSecurityOptions {
40
+ profils?: string[];
41
+ }
38
42
  export interface GeoWorkspaceOptions {
39
43
  srcId?: string;
40
44
  workspaceId?: string;
@@ -60,6 +60,7 @@ export declare function getScaleFromResolution(resolution: number, unit?: string
60
60
  */
61
61
  export declare function ctrlKeyDown(event: MapBrowserPointerEvent<any>): boolean;
62
62
  export declare function roundCoordTo(coord: [number, number], decimal?: number): [number, number];
63
+ export declare function roundCoordToString(coord: [number, number], decimal?: number): [string, string];
63
64
  /**
64
65
  * Returns an array of converted coordinates.
65
66
  * Conversion is done for every configured projections
@@ -8,6 +8,7 @@ export declare class ConfigFileToGeoDBService {
8
8
  private messageService;
9
9
  constructor(http: HttpClient, geoDBService: GeoDBService, messageService: MessageService);
10
10
  load(url: string): void;
11
+ private isZip;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigFileToGeoDBService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<ConfigFileToGeoDBService>;
13
14
  }
@@ -12,6 +12,7 @@ export interface GeoDataToIDB {
12
12
  action: "delete" | 'update';
13
13
  urls: string[];
14
14
  source?: string;
15
+ zippedBaseUrl?: string;
15
16
  }
16
17
  export interface DatasToIDB {
17
18
  geoDatas: GeoDataToIDB[];
@@ -8,7 +8,7 @@ export declare class GeoDBService {
8
8
  private compression;
9
9
  readonly dbName: string;
10
10
  collisionsMap: Map<number, string[]>;
11
- _newTiles: number;
11
+ _newData: number;
12
12
  constructor(ngxIndexedDBService: NgxIndexedDBService, compression: CompressionService);
13
13
  /**
14
14
  * Only blob can be will be compressed
@@ -24,14 +24,14 @@ export declare class GeoDBService {
24
24
  get(url: string): Observable<any>;
25
25
  getByID(url: string): Observable<any>;
26
26
  deleteByKey(url: string): Observable<any>;
27
- getRegionTileCountByID(id: number): Observable<number>;
27
+ getRegionCountByID(id: number): Observable<number>;
28
28
  getRegionByID(id: number): Observable<any[]>;
29
29
  deleteByRegionID(id: number): Observable<any>;
30
30
  openCursor(keyRange?: IDBKeyRange, mode?: DBMode): Observable<Event>;
31
31
  resetCounters(): void;
32
32
  resetCollisionsMap(): void;
33
33
  revertCollisions(): void;
34
- get newTiles(): number;
34
+ get newData(): number;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<GeoDBService, never>;
36
36
  static ɵprov: i0.ɵɵInjectableDeclaration<GeoDBService>;
37
37
  }
@@ -0,0 +1 @@
1
+ export default function jsGeoPdfPlugin(jsPDFAPI: any): void;
@@ -1,3 +1,4 @@
1
1
  export * from './print.interface';
2
2
  export * from './print.service';
3
3
  export * from './print.type';
4
+ export * from './geopdf';
@@ -15,3 +15,8 @@ export interface PrintOptions {
15
15
  isPrintService: boolean;
16
16
  doZipFile: boolean;
17
17
  }
18
+ export interface TextPdfSizeAndMargin {
19
+ fontSize: number;
20
+ marginLeft: number;
21
+ height: number;
22
+ }
@@ -1,10 +1,10 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, Subject } from 'rxjs';
3
- import jspdf from 'jspdf';
3
+ import jsPDF from 'jspdf';
4
4
  import { default as JSZip } from 'jszip';
5
5
  import { MessageService, ActivityService, LanguageService, ConfigService } from '@igo2/core';
6
6
  import { IgoMap } from '../../map/shared/map';
7
- import { PrintOptions } from './print.interface';
7
+ import { PrintOptions, TextPdfSizeAndMargin } from './print.interface';
8
8
  import * as i0 from "@angular/core";
9
9
  declare global {
10
10
  interface Navigator {
@@ -20,8 +20,19 @@ export declare class PrintService {
20
20
  zipFile: JSZip;
21
21
  nbFileToProcess: number;
22
22
  activityId: string;
23
+ imgSizeAdded: Array<number>;
24
+ TEXTPDFFONT: {
25
+ titleFont: string;
26
+ titleFontStyle: string;
27
+ subtitleFont: string;
28
+ subtitleFontStyle: string;
29
+ commentFont: string;
30
+ commentFontStyle: string;
31
+ commentFontSize: number;
32
+ };
23
33
  constructor(http: HttpClient, messageService: MessageService, activityService: ActivityService, languageService: LanguageService, configService: ConfigService);
24
34
  print(map: IgoMap, options: PrintOptions): Subject<any>;
35
+ addGeoRef(doc: any, map: any, width: any, height: any, resolution: any, margins: any): void;
25
36
  /**
26
37
  * Add measure overlay on the map on the document when the measure layer is present
27
38
  * @param doc - Pdf document where measure tooltip will be added
@@ -43,17 +54,14 @@ export declare class PrintService {
43
54
  * @return The image of the legend
44
55
  */
45
56
  getLayersLegendImage(map: any, format: string, doZipFile: boolean, resolution: number): Promise<Subject<unknown>>;
46
- getTitleSize(title: string, pageWidth: number, pageHeight: number, doc: jspdf): any[];
47
- getSubTitleSize(subtitle: string, pageWidth: number, pageHeight: number, doc: jspdf): any;
48
- private addTitle;
49
- private addSubTitle;
57
+ getTextPdfObjectSizeAndMarg(text: string, margins: any, font: string, fontSizeInPt: number, fontStyle: string, doc: jsPDF): TextPdfSizeAndMargin;
50
58
  /**
51
59
  * Add comment to the document
52
60
  * * @param doc - pdf document
53
61
  * * @param comment - Comment to add in the document
54
- * * @param size - Size of the document
55
62
  */
56
63
  private addComment;
64
+ private addTextInPdfDoc;
57
65
  /**
58
66
  * Add projection and/or scale to the document
59
67
  * @param doc - pdf document
@@ -107,7 +115,7 @@ export declare class PrintService {
107
115
  * Save document
108
116
  * @param doc - Document to save
109
117
  */
110
- protected saveDoc(doc: jspdf): Promise<void>;
118
+ protected saveDoc(doc: jsPDF): Promise<void>;
111
119
  /**
112
120
  * Calculate the best Image size to fit in pdf
113
121
  * @param doc - Pdf Document
@@ -145,6 +153,7 @@ export declare class PrintService {
145
153
  * @return Retun a zip file
146
154
  */
147
155
  private getZipFile;
156
+ private pdf_units2points;
148
157
  static ɵfac: i0.ɵɵFactoryDeclaration<PrintService, never>;
149
158
  static ɵprov: i0.ɵɵInjectableDeclaration<PrintService>;
150
159
  }
@@ -1,7 +1,7 @@
1
1
  import { OnInit, OnDestroy, EventEmitter, ElementRef } from '@angular/core';
2
2
  import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
3
3
  import { BehaviorSubject } from 'rxjs';
4
- import { LanguageService } from '@igo2/core';
4
+ import { ConfigService } from '@igo2/core';
5
5
  import { EntityStore } from '@igo2/common';
6
6
  import { SearchResult, Research } from '../shared/search.interfaces';
7
7
  import { SearchService } from '../shared/search.service';
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
13
13
  * into that store. An event is always emitted when a research is completed.
14
14
  */
15
15
  export declare class SearchBarComponent implements OnInit, OnDestroy {
16
- private languageService;
16
+ private configService;
17
17
  private searchService;
18
18
  private searchSourceService;
19
19
  /**
@@ -39,6 +39,10 @@ export declare class SearchBarComponent implements OnInit, OnDestroy {
39
39
  */
40
40
  private searchType$$;
41
41
  private researches$$;
42
+ /**
43
+ * whether to show search button or not
44
+ */
45
+ showSearchButton: boolean;
42
46
  /**
43
47
  * List of available search types
44
48
  */
@@ -91,10 +95,6 @@ export declare class SearchBarComponent implements OnInit, OnDestroy {
91
95
  * Minimum term length required to trigger a research
92
96
  */
93
97
  minLength: number;
94
- /**
95
- * Search icon
96
- */
97
- searchIcon: string;
98
98
  /**
99
99
  * Search Selector
100
100
  */
@@ -144,7 +144,7 @@ export declare class SearchBarComponent implements OnInit, OnDestroy {
144
144
  * @internal
145
145
  */
146
146
  get empty(): boolean;
147
- constructor(languageService: LanguageService, searchService: SearchService, searchSourceService: SearchSourceService);
147
+ constructor(configService: ConfigService, searchService: SearchService, searchSourceService: SearchSourceService);
148
148
  /**
149
149
  * Subscribe to the search term stream and trigger researches
150
150
  * @internal
@@ -216,5 +216,5 @@ export declare class SearchBarComponent implements OnInit, OnDestroy {
216
216
  */
217
217
  private onResearchCompleted;
218
218
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
219
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "igo-search-bar", never, { "searchTypes": "searchTypes"; "searchType": "searchType"; "term": "term"; "disabled": "disabled"; "pointerSummaryEnabled": "pointerSummaryEnabled"; "searchResultsGeometryEnabled": "searchResultsGeometryEnabled"; "floatLabel": "floatLabel"; "appearance": "appearance"; "placeholder": "placeholder"; "label": "label"; "color": "color"; "termSplitter": "termSplitter"; "debounce": "debounce"; "minLength": "minLength"; "searchIcon": "searchIcon"; "searchSelector": "searchSelector"; "searchSettings": "searchSettings"; "forceNA": "forceNA"; "store": "store"; }, { "pointerSummaryStatus": "pointerSummaryStatus"; "searchResultsGeometryStatus": "searchResultsGeometryStatus"; "searchTermChange": "searchTermChange"; "search": "search"; "searchTypeChange": "searchTypeChange"; "clearFeature": "clearFeature"; "searchSettingsChange": "searchSettingsChange"; }, never, never, false>;
219
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "igo-search-bar", never, { "searchTypes": "searchTypes"; "searchType": "searchType"; "term": "term"; "disabled": "disabled"; "pointerSummaryEnabled": "pointerSummaryEnabled"; "searchResultsGeometryEnabled": "searchResultsGeometryEnabled"; "floatLabel": "floatLabel"; "appearance": "appearance"; "placeholder": "placeholder"; "label": "label"; "color": "color"; "termSplitter": "termSplitter"; "debounce": "debounce"; "minLength": "minLength"; "searchSelector": "searchSelector"; "searchSettings": "searchSettings"; "forceNA": "forceNA"; "store": "store"; }, { "pointerSummaryStatus": "pointerSummaryStatus"; "searchResultsGeometryStatus": "searchResultsGeometryStatus"; "searchTermChange": "searchTermChange"; "search": "search"; "searchTypeChange": "searchTypeChange"; "clearFeature": "clearFeature"; "searchSettingsChange": "searchSettingsChange"; }, never, never, false>;
220
220
  }
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
2
2
  import type { TemplateRef } from '@angular/core';
3
3
  import { Observable, BehaviorSubject } from 'rxjs';
4
+ import { ConfigService } from '@igo2/core';
4
5
  import { EntityStore } from '@igo2/common';
5
6
  import { IgoMap } from '../../map';
6
7
  import { SearchService } from '../shared/search.service';
@@ -18,6 +19,8 @@ export declare enum SearchResultMode {
18
19
  export declare class SearchResultsComponent implements OnInit, OnDestroy {
19
20
  private cdRef;
20
21
  private searchService;
22
+ private configService;
23
+ private showResultsCount;
21
24
  /**
22
25
  * Reference to the SearchResultMode enum
23
26
  * @internal
@@ -99,7 +102,7 @@ export declare class SearchResultsComponent implements OnInit, OnDestroy {
99
102
  results: SearchResult[];
100
103
  }[]>;
101
104
  private _results$;
102
- constructor(cdRef: ChangeDetectorRef, searchService: SearchService);
105
+ constructor(cdRef: ChangeDetectorRef, searchService: SearchService, configService: ConfigService);
103
106
  /**
104
107
  * Bind the search results store to the watcher
105
108
  * @internal
@@ -1,5 +1,3 @@
1
- export * from './cadastre';
2
- export * from './cadastre.providers';
3
1
  export * from './source';
4
2
  export * from './source.interfaces';
5
3
  export * from './icherche';