@igo2/geo 1.9.4 → 1.10.0

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 (47) hide show
  1. package/bundles/igo2-geo.umd.js +743 -320
  2. package/bundles/igo2-geo.umd.js.map +1 -1
  3. package/esm2015/lib/datasource/shared/capabilities.service.js +4 -4
  4. package/esm2015/lib/datasource/shared/datasources/datasource.interface.js +1 -1
  5. package/esm2015/lib/datasource/shared/datasources/mvt-datasource.js +2 -2
  6. package/esm2015/lib/filter/filter.module.js +6 -3
  7. package/esm2015/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.js +185 -95
  8. package/esm2015/lib/import-export/import-export/import-export.component.js +176 -65
  9. package/esm2015/lib/import-export/shared/export.interface.js +1 -1
  10. package/esm2015/lib/layer/layer-legend/layer-legend.component.js +17 -15
  11. package/esm2015/lib/layer/layer.module.js +8 -5
  12. package/esm2015/lib/layer/shared/layer.service.js +19 -16
  13. package/esm2015/lib/layer/shared/layers/layer.js +15 -5
  14. package/esm2015/lib/layer/shared/layers/vector-layer.interface.js +1 -1
  15. package/esm2015/lib/layer/shared/layers/vectortile-layer.interface.js +1 -1
  16. package/esm2015/lib/layer/shared/style.service.js +21 -16
  17. package/esm2015/lib/layer/shared/vector-style.interface.js +1 -1
  18. package/esm2015/lib/layer/utils/index.js +2 -1
  19. package/esm2015/lib/layer/utils/layer.utils.js +11 -0
  20. package/esm2015/lib/map/shared/hover-feature.directive.js +228 -78
  21. package/esm2015/lib/query/shared/query.interfaces.js +1 -1
  22. package/esm2015/lib/query/shared/query.utils.js +2 -2
  23. package/esm2015/lib/search/shared/search-pointer-summary.directive.js +15 -5
  24. package/esm2015/lib/search/shared/search.interfaces.js +1 -1
  25. package/esm2015/lib/search/shared/sources/icherche.js +3 -2
  26. package/fesm2015/igo2-geo.js +705 -315
  27. package/fesm2015/igo2-geo.js.map +1 -1
  28. package/lib/datasource/shared/datasources/datasource.interface.d.ts +1 -0
  29. package/lib/filter/filter.module.d.ts +1 -1
  30. package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +7 -2
  31. package/lib/import-export/import-export/import-export.component.d.ts +2 -0
  32. package/lib/import-export/shared/export.interface.d.ts +2 -1
  33. package/lib/layer/layer-legend/layer-legend.component.d.ts +0 -4
  34. package/lib/layer/layer.module.d.ts +1 -1
  35. package/lib/layer/shared/layer.service.d.ts +1 -1
  36. package/lib/layer/shared/layers/layer.d.ts +1 -0
  37. package/lib/layer/shared/layers/vector-layer.interface.d.ts +1 -0
  38. package/lib/layer/shared/layers/vectortile-layer.interface.d.ts +1 -0
  39. package/lib/layer/shared/style.service.d.ts +4 -1
  40. package/lib/layer/shared/vector-style.interface.d.ts +9 -5
  41. package/lib/layer/utils/index.d.ts +1 -0
  42. package/lib/layer/utils/layer.utils.d.ts +2 -0
  43. package/lib/map/shared/hover-feature.directive.d.ts +14 -5
  44. package/lib/query/shared/query.interfaces.d.ts +1 -1
  45. package/lib/search/shared/search-pointer-summary.directive.d.ts +6 -0
  46. package/lib/search/shared/search.interfaces.d.ts +1 -0
  47. package/package.json +4 -4
@@ -35,6 +35,7 @@ export interface Legend {
35
35
  };
36
36
  title?: string;
37
37
  currentStyle?: string;
38
+ imgGraphValue?: string;
38
39
  }
39
40
  export interface TileGridOptions {
40
41
  extent: [number, number, number, number];
@@ -48,6 +48,6 @@ import * as i45 from "@angular/material/badge";
48
48
  export declare class IgoFilterModule {
49
49
  static forRoot(): ModuleWithProviders<IgoFilterModule>;
50
50
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoFilterModule, never>;
51
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFilterModule, [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.MatAutocompleteModule, typeof i22.MatIconModule, typeof i23.MatButtonModule, typeof i24.MatTabsModule, typeof i25.MatRadioModule, typeof i26.MatMenuModule, typeof i27.MatTableModule, typeof i28.MatTreeModule, typeof i29.MatButtonToggleModule, typeof i30.MatCheckboxModule, typeof i31.MatSliderModule, typeof i32.MatSlideToggleModule, typeof i33.MatFormFieldModule, typeof i34.MatInputModule, typeof i35.MatOptionModule, typeof i36.MatSelectModule, typeof i37.MatListModule, typeof i38.MatTooltipModule, typeof i39.MatDatepickerModule, typeof i35.MatNativeDateModule, typeof i40.MatDatetimepickerModule, typeof i40.MatNativeDatetimeModule, typeof i41.IgoLanguageModule, typeof i42.IgoLayerModule, typeof i43.IgoCollapsibleModule, typeof i43.IgoListModule, typeof i43.IgoKeyValueModule, typeof i44.IgoGeometryModule, typeof i45.MatBadgeModule], [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent]>;
51
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoFilterModule, [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent], [typeof i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.MatAutocompleteModule, typeof i22.MatIconModule, typeof i23.MatButtonModule, typeof i24.MatTabsModule, typeof i25.MatRadioModule, typeof i26.MatMenuModule, typeof i27.MatTableModule, typeof i28.MatTreeModule, typeof i29.MatButtonToggleModule, typeof i30.MatCheckboxModule, typeof i31.MatSliderModule, typeof i32.MatSlideToggleModule, typeof i33.MatFormFieldModule, typeof i34.MatInputModule, typeof i35.MatOptionModule, typeof i36.MatSelectModule, typeof i37.MatListModule, typeof i38.MatTooltipModule, typeof i39.MatDatepickerModule, typeof i35.MatNativeDateModule, typeof i40.MatDatetimepickerModule, typeof i40.MatNativeDatetimeModule, typeof i41.IgoLanguageModule, typeof i42.IgoLayerModule, typeof i43.IgoCollapsibleModule, typeof i43.IgoListModule, typeof i43.IgoEntityModule, typeof i43.IgoKeyValueModule, typeof i44.IgoGeometryModule, typeof i45.MatBadgeModule], [typeof i1.FilterableDataSourcePipe, typeof i2.TimeFilterButtonComponent, typeof i3.TimeFilterFormComponent, typeof i4.TimeFilterItemComponent, typeof i5.TimeFilterListComponent, typeof i6.TimeFilterListBindingDirective, typeof i7.OgcFilterFormComponent, typeof i8.OgcFilterButtonComponent, typeof i9.OgcFilterSelectionComponent, typeof i10.OgcFilterableFormComponent, typeof i11.OgcFilterableItemComponent, typeof i12.OgcFilterableListComponent, typeof i13.OgcFilterableListBindingDirective, typeof i14.SpatialFilterTypeComponent, typeof i15.SpatialFilterListComponent, typeof i16.SpatialFilterItemComponent, typeof i17.OgcFilterTimeComponent, typeof i18.OgcFilterTimeSliderComponent]>;
52
52
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoFilterModule>;
53
53
  }
@@ -12,7 +12,7 @@ import * as olStyle from 'ol/style';
12
12
  import { MatTreeNestedDataSource } from '@angular/material/tree';
13
13
  import { SpatialFilterService } from '../../shared/spatial-filter.service';
14
14
  import { MeasureLengthUnit } from '../../../measure';
15
- import { EntityStore } from '@igo2/common';
15
+ import { EntityStore, EntityTableTemplate } from '@igo2/common';
16
16
  import { Layer } from '../../../layer/shared';
17
17
  import { NestedTreeControl } from '@angular/cdk/tree';
18
18
  import { SpatialFilterThematic } from './../../shared/spatial-filter.interface';
@@ -63,6 +63,7 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
63
63
  clearSearchEvent: EventEmitter<any>;
64
64
  export: EventEmitter<any>;
65
65
  openWorkspace: EventEmitter<any>;
66
+ entityChange: EventEmitter<any>;
66
67
  itemType: SpatialFilterItemType[];
67
68
  selectedItemType: SpatialFilterItemType;
68
69
  selectedSourceAddress: any;
@@ -101,6 +102,8 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
101
102
  bufferFormControl: FormControl;
102
103
  measureUnit: MeasureLengthUnit;
103
104
  zoneWithBuffer: any;
105
+ listIsVisible: boolean;
106
+ tableTemplate: EntityTableTemplate;
104
107
  constructor(cdRef: ChangeDetectorRef, spatialFilterService: SpatialFilterService, messageService: MessageService, languageService: LanguageService);
105
108
  ngOnInit(): void;
106
109
  /**
@@ -155,6 +158,8 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
155
158
  * Manage radius value at user change
156
159
  */
157
160
  getRadius(): void;
161
+ toggleVisibleList(): void;
162
+ private createTableTemplate;
158
163
  static ɵfac: i0.ɵɵFactoryDeclaration<SpatialFilterItemComponent, never>;
159
- 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"; }, never, 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>;
160
165
  }
@@ -82,6 +82,8 @@ export declare class ImportExportComponent implements OnDestroy, OnInit {
82
82
  importFiles(files: File[]): void;
83
83
  handlePopup(preCheck?: boolean): boolean;
84
84
  handleExportFormSubmit(data: ExportOptions): void;
85
+ private createTitleEmptyRows;
86
+ private circleToPoint;
85
87
  private buildForm;
86
88
  private onFileImportSuccess;
87
89
  private onFileImportError;
@@ -5,6 +5,7 @@ export interface ExportOptions {
5
5
  layers: string[];
6
6
  layersWithSelection?: string[];
7
7
  name?: string;
8
+ combineLayers?: boolean;
9
+ separator?: boolean;
8
10
  featureInMapExtent?: boolean;
9
- circlesToPolygons?: boolean;
10
11
  }
@@ -58,10 +58,6 @@ export declare class LayerLegendComponent implements OnInit, OnDestroy {
58
58
  /**
59
59
  * activeLegend
60
60
  */
61
- legendGraphic: {
62
- [srcKey: string]: string;
63
- };
64
- currentItemTitle: string;
65
61
  constructor(capabilitiesService: CapabilitiesService, languageService: LanguageService, http: HttpClient, cdRef: ChangeDetectorRef);
66
62
  /**
67
63
  * On init, subscribe to the map's resolution and update the legend accordingly
@@ -29,6 +29,6 @@ import * as i26 from "@igo2/common";
29
29
  export declare class IgoLayerModule {
30
30
  static forRoot(): ModuleWithProviders<IgoLayerModule>;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<IgoLayerModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLayerModule, [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent], [typeof i10.MatInputModule, typeof i11.MatFormFieldModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.MatDividerModule, typeof i15.MatMenuModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.MatSlideToggleModule, typeof i19.MatSelectModule, typeof i20.MatTooltipModule, typeof i21.MatListModule, typeof i22.MatSliderModule, typeof i23.MatBadgeModule, typeof i24.MatCheckboxModule, typeof i25.IgoLanguageModule, typeof i26.IgoListModule, typeof i26.IgoCollapsibleModule, typeof i26.IgoImageModule, typeof i26.IgoPanelModule, typeof i26.IgoMatBadgeIconModule], [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLayerModule, [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent], [typeof i10.MatInputModule, typeof i11.MatFormFieldModule, typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.MatDividerModule, typeof i15.MatMenuModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.MatSlideToggleModule, typeof i19.MatSelectModule, typeof i20.MatTooltipModule, typeof i21.MatListModule, typeof i22.MatSliderModule, typeof i23.MatBadgeModule, typeof i24.MatCheckboxModule, typeof i25.IgoLanguageModule, typeof i26.IgoListModule, typeof i26.IgoCollapsibleModule, typeof i26.IgoImageModule, typeof i26.IgoPanelModule, typeof i26.IgoMatBadgeIconModule, typeof i26.IgoCustomHtmlModule], [typeof i1.LayerItemComponent, typeof i2.LayerLegendItemComponent, typeof i3.LayerLegendComponent, typeof i4.LayerListComponent, typeof i5.LayerListToolComponent, typeof i6.LayerLegendListComponent, typeof i7.LayerListBindingDirective, typeof i8.LayerLegendListBindingDirective, typeof i9.TrackFeatureButtonComponent]>;
33
33
  static ɵinj: i0.ɵɵInjectorDeclaration<IgoLayerModule>;
34
34
  }
@@ -15,7 +15,7 @@ export declare class LayerService {
15
15
  private authInterceptor;
16
16
  constructor(http: HttpClient, styleService: StyleService, dataSourceService: DataSourceService, messageService: MessageService, languageService: LanguageService, authInterceptor: AuthInterceptor);
17
17
  createLayer(layerOptions: AnyLayerOptions): Layer;
18
- createAsyncLayer(layerOptions: AnyLayerOptions, detailedContextUri?: string): Observable<Layer>;
18
+ createAsyncLayer(_layerOptions: AnyLayerOptions, detailedContextUri?: string): Observable<Layer>;
19
19
  private createImageLayer;
20
20
  private createTileLayer;
21
21
  private createVectorLayer;
@@ -50,6 +50,7 @@ export declare abstract class Layer {
50
50
  constructor(options: LayerOptions, messageService?: MessageService, authInterceptor?: AuthInterceptor);
51
51
  protected abstract createOlLayer(): olLayer<olSource>;
52
52
  setMap(igoMap: IgoMap | undefined): void;
53
+ private showMessage;
53
54
  private observeResolution;
54
55
  private unobserveResolution;
55
56
  private updateInResolutionsRange;
@@ -27,6 +27,7 @@ export interface VectorLayerOptions extends LayerOptions {
27
27
  ol?: olLayerVector<olSourceVector<OlGeometry>>;
28
28
  animation?: VectorAnimation;
29
29
  styleByAttribute?: StyleByAttribute;
30
+ hoverStyle?: StyleByAttribute;
30
31
  clusterBaseStyle?: {
31
32
  [key: string]: any;
32
33
  } | olStyle | olStyle[];
@@ -13,5 +13,6 @@ export interface VectorTileLayerOptions extends LayerOptions {
13
13
  ol?: olLayerVectorTile;
14
14
  declutter?: boolean;
15
15
  styleByAttribute?: StyleByAttribute;
16
+ hoverStyle?: StyleByAttribute;
16
17
  mapboxStyle?: MapboxStyle;
17
18
  }
@@ -1,6 +1,9 @@
1
+ import type { default as OlGeometry } from 'ol/geom/Geometry';
1
2
  import * as olstyle from 'ol/style';
3
+ import OlFeature from 'ol/Feature';
2
4
  import { StyleByAttribute } from './vector-style.interface';
3
5
  import { ClusterParam } from './clusterParam';
6
+ import RenderFeature from 'ol/render/Feature';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare class StyleService {
6
9
  style: olstyle.Style;
@@ -10,7 +13,7 @@ export declare class StyleService {
10
13
  private parseStyle;
11
14
  private getOlKey;
12
15
  private getOlCls;
13
- createStyleByAttribute(feature: any, styleByAttribute: StyleByAttribute): any;
16
+ createStyleByAttribute(feature: RenderFeature | OlFeature<OlGeometry>, styleByAttribute: StyleByAttribute): any;
14
17
  createClusterStyle(feature: any, clusterParam: ClusterParam, layerStyle: any): any;
15
18
  getLabel(feature: any, labelMatch: any): string;
16
19
  private guessTypeFeature;
@@ -1,5 +1,5 @@
1
- import olStyle from 'ol/style/Style';
2
1
  export interface StyleByAttribute {
2
+ anchor?: Array<[number, number]>;
3
3
  type?: string;
4
4
  attribute?: string;
5
5
  data?: Array<any>;
@@ -9,14 +9,18 @@ export interface StyleByAttribute {
9
9
  radius?: Array<number>;
10
10
  icon?: Array<string>;
11
11
  scale?: Array<number>;
12
- label?: string | {
13
- [key: string]: any;
14
- } | olStyle | olStyle[];
12
+ label?: IgoLabel;
15
13
  baseStyle?: {
16
14
  [key: string]: any;
17
- } | olStyle | olStyle[];
15
+ };
18
16
  hoverStyle?: StyleByAttribute;
19
17
  }
18
+ export interface IgoLabel {
19
+ attribute: string;
20
+ style?: {
21
+ [key: string]: any;
22
+ };
23
+ }
20
24
  export interface MapboxStyle {
21
25
  url: string;
22
26
  source: string;
@@ -1,4 +1,5 @@
1
1
  export * from './image-watcher';
2
+ export * from './layer.utils';
2
3
  export * from './layerSync-watcher';
3
4
  export * from './tile-watcher';
4
5
  export * from './outputLegend';
@@ -0,0 +1,2 @@
1
+ import { AnyLayerOptions } from "../shared/layers/any-layer.interface";
2
+ export declare function computeMVTOptionsOnHover(layerOptions: AnyLayerOptions): AnyLayerOptions;
@@ -2,12 +2,16 @@ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { IgoMap } from '../../map/shared/map';
3
3
  import { MapBrowserComponent } from '../../map/map-browser/map-browser.component';
4
4
  import { Feature } from '../../feature/shared/feature.interfaces';
5
- import olFeature from 'ol/Feature';
6
- import * as olstyle from 'ol/style';
7
- import * as olgeom from 'ol/geom';
5
+ import type { default as OlGeometry } from 'ol/geom/Geometry';
6
+ import OlFeature from 'ol/Feature';
7
+ import * as OlStyle from 'ol/style';
8
+ import * as OlGeom from 'ol/geom';
9
+ import { VectorLayer, VectorTileLayer } from '../../layer/shared/layers';
8
10
  import { FeatureStore } from '../../feature/shared/store';
9
11
  import { MediaService } from '@igo2/core';
10
12
  import { StyleService } from '../../layer/shared/style.service';
13
+ import RenderFeature from 'ol/render/Feature';
14
+ import { StyleByAttribute } from '../../layer/shared/vector-style.interface';
11
15
  import * as i0 from "@angular/core";
12
16
  /**
13
17
  * This directive makes the mouse coordinate trigger a reverse search on available search sources.
@@ -24,6 +28,9 @@ export declare class HoverFeatureDirective implements OnInit, OnDestroy {
24
28
  private lastTimeoutRequest;
25
29
  private store$$;
26
30
  private layers$$;
31
+ private selectionLayer;
32
+ private selectionMVT;
33
+ private mvtStyleOptions;
27
34
  /**
28
35
  * Listener to the pointer move event
29
36
  */
@@ -56,6 +63,7 @@ export declare class HoverFeatureDirective implements OnInit, OnDestroy {
56
63
  * @internal
57
64
  */
58
65
  private initStore;
66
+ createHoverStyle(feature: RenderFeature | OlFeature<OlGeometry>, hoverStyle: StyleByAttribute): any;
59
67
  /**
60
68
  * Stop listening to pointermove and reverse search results.
61
69
  * @internal
@@ -104,6 +112,8 @@ export declare class HoverFeatureDirective implements OnInit, OnDestroy {
104
112
  * @param event OL map browser pointer event
105
113
  */
106
114
  private onMapEvent;
115
+ canProcessHover(igoLayer: VectorLayer | VectorTileLayer): boolean;
116
+ handleRenderFeature(feature: RenderFeature | OlFeature<OlGeometry>): OlFeature<OlGeometry>;
107
117
  /**
108
118
  * Add a feature to the pointer store
109
119
  * @param text string
@@ -112,7 +122,6 @@ export declare class HoverFeatureDirective implements OnInit, OnDestroy {
112
122
  private setLayerStyleFromOptions;
113
123
  private getHoverSummary;
114
124
  private getGeometry;
115
- private getSameFeatureNeighbour;
116
125
  /**
117
126
  * Clear the pointer store features
118
127
  */
@@ -125,4 +134,4 @@ export declare class HoverFeatureDirective implements OnInit, OnDestroy {
125
134
  * @param feature OlFeature
126
135
  * @returns OL style function
127
136
  */
128
- export declare function hoverFeatureMarker(feature: olFeature<olgeom.Geometry>, resolution: number): olstyle.Style[];
137
+ export declare function hoverFeatureMarker(feature: OlFeature<OlGeom.Geometry>, resolution: number): OlStyle.Style[];
@@ -14,7 +14,7 @@ export interface QueryableDataSourceOptions extends DataSourceOptions {
14
14
  queryFormat?: QueryFormat;
15
15
  queryTitle?: string;
16
16
  queryUrl?: string;
17
- queryFeature?: boolean;
17
+ queryLayerFeatures?: boolean;
18
18
  mapLabel?: string;
19
19
  queryHtmlTarget?: QueryHtmlTarget;
20
20
  ol?: olSourceVector<OlGeometry> | olSource;
@@ -105,6 +105,12 @@ export declare class SearchPointerSummaryDirective implements OnInit, OnDestroy,
105
105
  * @param event OL map browser pointer event
106
106
  */
107
107
  private onMapEvent;
108
+ /**
109
+ * Sort the results by display order.
110
+ * @param r1 First result
111
+ * @param r2 Second result
112
+ */
113
+ private sortByOrder;
108
114
  private onSearchCoordinate;
109
115
  private onSearch;
110
116
  /**
@@ -16,6 +16,7 @@ export interface SearchResult<T = {
16
16
  id: string;
17
17
  title: string;
18
18
  titleHtml?: string;
19
+ pointerSummaryTitle?: string;
19
20
  icon: string;
20
21
  score?: number;
21
22
  nextPage?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/geo",
3
- "version": "1.9.4",
3
+ "version": "1.10.0",
4
4
  "description": "IGO Library",
5
5
  "author": "MSP",
6
6
  "keywords": [
@@ -29,9 +29,9 @@
29
29
  "@angular/core": "^12.2.9",
30
30
  "@angular/forms": "^12.2.9",
31
31
  "@angular/material": "^12.2.9",
32
- "@igo2/common": "^1.9.4",
33
- "@igo2/core": "^1.9.4",
34
- "@igo2/utils": "^1.9.4",
32
+ "@igo2/common": "^1.10.0",
33
+ "@igo2/core": "^1.10.0",
34
+ "@igo2/utils": "^1.10.0",
35
35
  "ol": "^6.8.1",
36
36
  "proj4": "^2.7.5",
37
37
  "rxjs": "^6.6.7",