@igo2/geo 19.0.0-next.11 → 19.0.0-next.12

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.
@@ -3,7 +3,7 @@ import { EntityKey, EntityStoreOptions, EntityStoreStrategyOptions } from '@igo2
3
3
  import OlFeature from 'ol/Feature';
4
4
  import type { default as OlGeometry } from 'ol/geom/Geometry';
5
5
  import OlRenderFeature from 'ol/render/Feature';
6
- import { GeoJsonGeometryTypes } from 'geojson';
6
+ import { Geometry } from 'geojson';
7
7
  import { SourceFieldsOptionsParams } from '../../datasource/shared/datasources';
8
8
  import type { VectorLayer } from '../../layer/shared/layers/vector-layer';
9
9
  import type { IgoMap } from '../../map/shared/map';
@@ -31,10 +31,9 @@ export interface FeatureMeta {
31
31
  excludeAttribute?: string[];
32
32
  excludeAttributeOffline?: string[];
33
33
  }
34
- export interface FeatureGeometry {
35
- type: GeoJsonGeometryTypes;
36
- coordinates: any;
37
- }
34
+ export type FeatureGeometry = {
35
+ coordinates: any[];
36
+ } & Geometry;
38
37
  export interface FeatureStoreOptions extends EntityStoreOptions {
39
38
  map: IgoMap;
40
39
  layer?: VectorLayer;
@@ -80,7 +80,7 @@ export declare function featuresAreTooDeepInView(viewController: MapViewControll
80
80
  * @param scale If this is defined, the original view will be scaled
81
81
  * by that factor before any logic is applied.
82
82
  */
83
- export declare function moveToOlFeatures(viewController: MapViewController, olFeatures: OlFeature<OlGeometry>[], motion?: FeatureMotion, scale?: [number, number, number, number], areaRatio?: number): void;
83
+ export declare function moveToOlFeatures(viewController: MapViewController, olFeatures: OlFeature | OlFeature[], motion?: FeatureMotion, scale?: [number, number, number, number], areaRatio?: number): void;
84
84
  /**
85
85
  * Hide an OL feature
86
86
  * @param olFeature OL feature
@@ -24,7 +24,7 @@ export declare class ExportService {
24
24
  private exportAsync;
25
25
  protected exportToFile(olFeatures: OlFeature<OlGeometry>[], format: AnyExportFormat, title: string, projectionIn: string, projectionOut: string): Promise<void>;
26
26
  private formatFeatures;
27
- getFormatter(format: AnyExportFormat): import("ol/format/GML3").default | olformat.GPX | olformat.KML | olformat.GeoJSON<typeof OlFeature>;
27
+ getFormatter(format: AnyExportFormat): import("ol/format/GML3").default | olformat.GPX | olformat.KML | olformat.GeoJSON<OlFeature<OlGeometry>>;
28
28
  exportExcel(map: IgoMap, store: WorkspaceStore, data: ExportOptions): Promise<void>;
29
29
  private getTitleFromLayers;
30
30
  private getLayerTitleFromId;
@@ -7,6 +7,7 @@ import { StorageService } from '@igo2/core/storage';
7
7
  import olFeature from 'ol/Feature';
8
8
  import GeoJSON from 'ol/format/GeoJSON';
9
9
  import WKT from 'ol/format/WKT';
10
+ import type { default as OlGeometry } from 'ol/geom/Geometry';
10
11
  import { BehaviorSubject, Observable } from 'rxjs';
11
12
  import { RelationOptions } from '../../datasource/shared/datasources';
12
13
  import { ImageLayer, LayerService, VectorLayer } from '../../layer/shared';
@@ -29,7 +30,7 @@ export declare class EditionWorkspaceService {
29
30
  rowsInMapExtentCheckCondition$: BehaviorSubject<boolean>;
30
31
  loading: boolean;
31
32
  wktFormat: WKT;
32
- geoJsonFormat: GeoJSON<typeof olFeature>;
33
+ geoJsonFormat: GeoJSON<olFeature<OlGeometry>>;
33
34
  get zoomAuto(): boolean;
34
35
  constructor(layerService: LayerService, storageService: StorageService, configService: ConfigService, messageService: MessageService, http: HttpClient, dialog: MatDialog, styleService: StyleService, authInterceptor?: AuthInterceptor);
35
36
  createWorkspace(layer: ImageLayer, map: IgoMap): EditionWorkspace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@igo2/geo",
3
- "version": "19.0.0-next.11",
3
+ "version": "19.0.0-next.12",
4
4
  "description": "IGO Library",
5
5
  "author": "IGO Community",
6
6
  "keywords": [
@@ -32,13 +32,23 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@turf/helpers": "^6.5.0",
36
- "@turf/line-intersect": "^6.5.0",
37
- "@turf/point-on-feature": "^6.5.0",
35
+ "@mat-datetimepicker/core": "^15.0.1",
36
+ "@turf/helpers": "^7.2.0",
37
+ "@turf/line-intersect": "^7.2.0",
38
+ "@turf/point-on-feature": "^7.2.0",
39
+ "file-saver": "^2.0.2",
40
+ "flexsearch": "0.7.21",
41
+ "html2canvas": "^1.4.1",
42
+ "jspdf-autotable": "^5.0.0",
43
+ "jspdf": "^3.0.0",
44
+ "jszip": "^3.10.1",
45
+ "moment": "^2.30.0",
46
+ "ngx-indexed-db": "^19.0.0",
38
47
  "nosleep.js": "^0.12.0",
48
+ "striptags": "^3.2.0",
39
49
  "ts-cacheable": "^1.0.6",
40
50
  "ts-md5": "^1.3.0",
41
- "tslib": "^2.6.0"
51
+ "tslib": "^2.8.0"
42
52
  },
43
53
  "peerDependencies": {
44
54
  "@angular/animations": "^19.0.0",
@@ -48,24 +58,14 @@
48
58
  "@angular/material": "^19.0.0",
49
59
  "@angular/material-moment-adapter": "^19.0.0",
50
60
  "@angular/platform-browser": "^19.0.0",
51
- "@igo2/auth": "^19.0.0-next.11",
52
- "@igo2/common": "^19.0.0-next.11",
53
- "@igo2/core": "^19.0.0-next.11",
54
- "@igo2/utils": "^19.0.0-next.11",
55
- "@mat-datetimepicker/core": "^15.0.1",
56
- "file-saver": "^2.0.2",
57
- "flexsearch": "0.7.21",
58
- "html2canvas": "^1.4.1",
59
- "jspdf": "^3.0.0",
60
- "jspdf-autotable": "^5.0.0",
61
- "jszip": "^3.10.1",
62
- "moment": "^2.30.0",
63
- "ngx-indexed-db": "^19.0.0",
64
- "ol": "9.1.0",
65
- "ol-mapbox-style": "^12.0.0",
66
- "proj4": "^2.12.0",
67
- "rxjs": "^7.8.0",
68
- "striptags": "^3.2.0"
61
+ "@igo2/auth": "^19.0.0-next.12",
62
+ "@igo2/common": "^19.0.0-next.12",
63
+ "@igo2/core": "^19.0.0-next.12",
64
+ "@igo2/utils": "^19.0.0-next.12",
65
+ "ol-mapbox-style": "^12.5.0",
66
+ "ol": "10.5.0",
67
+ "proj4": "^2.15.0",
68
+ "rxjs": "^7.8.0"
69
69
  },
70
70
  "engines": {
71
71
  "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
package/style/style.css CHANGED
@@ -347,4 +347,8 @@
347
347
 
348
348
  .ol-overviewmap .ol-overviewmap-box:hover {
349
349
  cursor: move;
350
+ }
351
+
352
+ .ol-overviewmap .ol-viewport:hover {
353
+ cursor: pointer;
350
354
  }