@igo2/geo 16.1.1 → 16.3.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.
- package/esm2022/lib/catalog/index.mjs +1 -1
- package/esm2022/lib/catalog/shared/catalog.service.mjs +64 -26
- package/esm2022/lib/datasource/shared/capabilities.interface.mjs +7 -1
- package/esm2022/lib/datasource/shared/datasources/carto-datasource.mjs +2 -2
- package/esm2022/lib/feature/index.mjs +1 -1
- package/esm2022/lib/feature/shared/feature.interfaces.mjs +1 -1
- package/esm2022/lib/feature/shared/store.mjs +3 -3
- package/esm2022/lib/filter/index.mjs +1 -1
- package/esm2022/lib/filter/shared/ogc-filter.interface.mjs +1 -1
- package/esm2022/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.mjs +2 -2
- package/esm2022/lib/geometry/index.mjs +1 -1
- package/esm2022/lib/import-export/index.mjs +1 -1
- package/esm2022/lib/layer/index.mjs +1 -1
- package/esm2022/lib/layer/shared/layers/layer.interface.mjs +1 -1
- package/esm2022/lib/layer/shared/layers/layer.mjs +1 -1
- package/esm2022/lib/layer/utils/image-watcher.mjs +1 -1
- package/esm2022/lib/layer/utils/tile-watcher.mjs +1 -1
- package/esm2022/lib/layer/utils/vector-watcher.mjs +1 -1
- package/esm2022/lib/map/baselayers-switcher/baselayers-switcher.animation.mjs +5 -1
- package/esm2022/lib/map/baselayers-switcher/baselayers-switcher.component.mjs +3 -3
- package/esm2022/lib/map/baselayers-switcher/mini-basemap.component.mjs +7 -9
- package/esm2022/lib/map/shared/controllers/geolocation.mjs +1 -1
- package/esm2022/lib/map/shared/controllers/view.mjs +2 -1
- package/esm2022/lib/map/shared/hover-feature.directive.mjs +4 -4
- package/esm2022/lib/map/shared/linkedLayers.utils.mjs +1 -1
- package/esm2022/lib/map/shared/map.mjs +1 -1
- package/esm2022/lib/measure/index.mjs +1 -1
- package/esm2022/lib/metadata/index.mjs +1 -1
- package/esm2022/lib/overlay/shared/overlay.mjs +2 -2
- package/esm2022/lib/search/index.mjs +1 -1
- package/esm2022/lib/search/search-results/search-results.component.mjs +2 -2
- package/esm2022/lib/search/shared/search-pointer-summary.directive.mjs +2 -2
- package/esm2022/lib/style/shared/vector/vector-style.interface.mjs +1 -1
- package/fesm2022/igo2-geo.mjs +90 -44
- package/fesm2022/igo2-geo.mjs.map +1 -1
- package/lib/datasource/shared/capabilities.interface.d.ts +16 -0
- package/lib/feature/shared/feature.interfaces.d.ts +1 -1
- package/lib/feature/shared/store.d.ts +2 -2
- package/lib/filter/shared/ogc-filter.interface.d.ts +2 -2
- package/lib/filter/spatial-filter/spatial-filter-item/spatial-filter-item.component.d.ts +3 -3
- package/lib/layer/shared/layers/layer.d.ts +1 -1
- package/lib/layer/shared/layers/layer.interface.d.ts +2 -0
- package/lib/layer/utils/image-watcher.d.ts +1 -1
- package/lib/layer/utils/tile-watcher.d.ts +2 -2
- package/lib/layer/utils/vector-watcher.d.ts +1 -1
- package/lib/map/shared/controllers/geolocation.d.ts +1 -1
- package/lib/map/shared/linkedLayers.utils.d.ts +1 -1
- package/lib/map/shared/map.d.ts +1 -1
- package/lib/overlay/shared/overlay.d.ts +2 -2
- package/lib/search/search-results/search-results.component.d.ts +2 -2
- package/lib/style/shared/vector/vector-style.interface.d.ts +1 -1
- package/package.json +6 -5
- package/src/_index.scss +2 -0
- package/src/lib/search/search-bar/search-bar.theming.scss +0 -9
|
@@ -6,3 +6,19 @@ export declare enum TypeCapabilities {
|
|
|
6
6
|
tilearcgisrest = "esriJSON"
|
|
7
7
|
}
|
|
8
8
|
export type TypeCapabilitiesStrings = keyof typeof TypeCapabilities;
|
|
9
|
+
export interface ArcGISRestCapabilitiesLayer {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
parentLayerId: number;
|
|
13
|
+
defaultVisibility?: boolean;
|
|
14
|
+
subLayerIds: number[];
|
|
15
|
+
minScale: number;
|
|
16
|
+
maxScale: number;
|
|
17
|
+
type: ArcGISRestCapabilitiesLayerTypes;
|
|
18
|
+
geometryType?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare enum ArcGISRestCapabilitiesLayerTypes {
|
|
21
|
+
FeatureLayer = "Feature Layer",
|
|
22
|
+
RasterLayer = "Raster Layer",
|
|
23
|
+
GroupLayer = "Group Layer"
|
|
24
|
+
}
|
|
@@ -6,7 +6,7 @@ import OlRenderFeature from 'ol/render/Feature';
|
|
|
6
6
|
import { GeoJsonGeometryTypes } from 'geojson';
|
|
7
7
|
import { SourceFieldsOptionsParams } from '../../datasource/shared/datasources';
|
|
8
8
|
import { VectorLayer } from '../../layer/shared/layers/vector-layer';
|
|
9
|
-
import { IgoMap } from '../../map/shared/map';
|
|
9
|
+
import type { IgoMap } from '../../map/shared/map';
|
|
10
10
|
import { FeatureMotion } from './feature.enums';
|
|
11
11
|
export interface Feature<P = {
|
|
12
12
|
[key: string]: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityKey,
|
|
1
|
+
import { EntityKey, EntityStore } from '@igo2/common';
|
|
2
2
|
import OlFeature from 'ol/Feature';
|
|
3
3
|
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
4
4
|
import { Document } from 'flexsearch';
|
|
@@ -12,7 +12,7 @@ import { Feature, FeatureStoreOptions } from './feature.interfaces';
|
|
|
12
12
|
* features and the map layer to display them on. Synchronization
|
|
13
13
|
* between the store and the layer is handled by strategies.
|
|
14
14
|
*/
|
|
15
|
-
export declare class FeatureStore<T extends Feature = Feature> extends
|
|
15
|
+
export declare class FeatureStore<T extends Feature = Feature> extends EntityStore<T> {
|
|
16
16
|
/**
|
|
17
17
|
* Vector layer to display the features on
|
|
18
18
|
*/
|
|
@@ -25,7 +25,7 @@ export interface WFSWriteGetFeatureOptions {
|
|
|
25
25
|
filter?: olFormatFilter;
|
|
26
26
|
resultType?: string;
|
|
27
27
|
}
|
|
28
|
-
export type AnyBaseOgcFilterOptions =
|
|
28
|
+
export type AnyBaseOgcFilterOptions = OgcFilterConditionsArrayOptions | OgcFilterSpatialOptions | OgcFilterDuringOptions | OgcFilterIsBetweenOptions | OgcFilterEqualToOptions | OgcFilterGreaterLessOptions | OgcFilterIsLikeOptions | OgcFilterIsNullOptions;
|
|
29
29
|
export type IgoOgcFilterObject = IgoLogicalArrayOptions | AnyBaseOgcFilterOptions;
|
|
30
30
|
export interface OgcFiltersOptions {
|
|
31
31
|
enabled?: boolean;
|
|
@@ -116,7 +116,7 @@ export interface IgoDomSelector {
|
|
|
116
116
|
propertyName: string;
|
|
117
117
|
domValue: DOMValue[];
|
|
118
118
|
}
|
|
119
|
-
export interface
|
|
119
|
+
export interface OgcFilterConditionsArrayOptions {
|
|
120
120
|
conditions: OgcFilter[];
|
|
121
121
|
}
|
|
122
122
|
export interface OgcFilterSpatialOptions {
|
|
@@ -3,7 +3,7 @@ import { NestedTreeControl } from '@angular/cdk/tree';
|
|
|
3
3
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
4
4
|
import { UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
|
6
|
-
import {
|
|
6
|
+
import { EntityStore, EntityTableTemplate } from '@igo2/common';
|
|
7
7
|
import { LanguageService, MessageService } from '@igo2/core';
|
|
8
8
|
import type { Type } from 'ol/geom/Geometry';
|
|
9
9
|
import * as olStyle from 'ol/style';
|
|
@@ -33,8 +33,8 @@ export declare class SpatialFilterItemComponent implements OnDestroy, OnInit {
|
|
|
33
33
|
queryType: SpatialFilterQueryType;
|
|
34
34
|
zone: Feature;
|
|
35
35
|
loading: any;
|
|
36
|
-
get store():
|
|
37
|
-
set store(store:
|
|
36
|
+
get store(): EntityStore<Feature>;
|
|
37
|
+
set store(store: EntityStore<Feature>);
|
|
38
38
|
private _store;
|
|
39
39
|
/**
|
|
40
40
|
* Available measure units for the measure type given
|
|
@@ -6,7 +6,7 @@ import olSource from 'ol/source/Source';
|
|
|
6
6
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
7
|
import { DataSource } from '../../../datasource/shared/datasources/datasource';
|
|
8
8
|
import { Legend } from '../../../datasource/shared/datasources/datasource.interface';
|
|
9
|
-
import { MapBase } from '../../../map/shared/map.abstract';
|
|
9
|
+
import type { MapBase } from '../../../map/shared/map.abstract';
|
|
10
10
|
import { GeoDBService } from '../../../offline/geoDB/geoDB.service';
|
|
11
11
|
import { LayerDBService } from '../../../offline/layerDB/layerDB.service';
|
|
12
12
|
import { LayerOptions } from './layer.interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MessageService } from '@igo2/core';
|
|
2
2
|
import { Watcher } from '@igo2/utils';
|
|
3
|
-
import { ImageLayer } from '../shared/layers/image-layer';
|
|
3
|
+
import type { ImageLayer } from '../shared/layers/image-layer';
|
|
4
4
|
export declare class ImageWatcher extends Watcher {
|
|
5
5
|
protected id: string;
|
|
6
6
|
protected loaded: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Watcher } from '@igo2/utils';
|
|
2
|
-
import { TileLayer } from '../shared/layers/tile-layer';
|
|
3
|
-
import { VectorTileLayer } from '../shared/layers/vectortile-layer';
|
|
2
|
+
import type { TileLayer } from '../shared/layers/tile-layer';
|
|
3
|
+
import type { VectorTileLayer } from '../shared/layers/vectortile-layer';
|
|
4
4
|
export declare class TileWatcher extends Watcher {
|
|
5
5
|
private id;
|
|
6
6
|
private loaded;
|
|
@@ -2,7 +2,7 @@ import { ConfigService, StorageService } from '@igo2/core';
|
|
|
2
2
|
import olGeolocation from 'ol/Geolocation';
|
|
3
3
|
import OlMap from 'ol/Map';
|
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { MapBase } from '../map.abstract';
|
|
5
|
+
import type { MapBase } from '../map.abstract';
|
|
6
6
|
import { MapViewOptions } from '../map.interface';
|
|
7
7
|
import { MapController } from './controller';
|
|
8
8
|
import { GeolocationBuffer, MapGeolocationControllerOptions, MapGeolocationState } from './geolocation.interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectEvent } from 'ol/Object';
|
|
2
2
|
import { Layer, LinkedProperties } from '../../layer/shared/layers';
|
|
3
|
-
import { MapBase } from '../shared/map.abstract';
|
|
3
|
+
import type { MapBase } from '../shared/map.abstract';
|
|
4
4
|
export declare function getLinkedLayersOptions(layer: Layer): import("../../layer/shared/layers").LayersLink;
|
|
5
5
|
export declare function getIgoLayerByLinkId(map: MapBase, id: string): Layer;
|
|
6
6
|
export declare function layerHasLinkWithProperty(layer: Layer, property: LinkedProperties): boolean;
|
package/lib/map/shared/map.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { Layer } from '../../layer/shared/layers';
|
|
|
12
12
|
import { Overlay } from '../../overlay/shared/overlay';
|
|
13
13
|
import { MapGeolocationController } from './controllers/geolocation';
|
|
14
14
|
import { MapViewController } from './controllers/view';
|
|
15
|
-
import { MapBase } from './map.abstract';
|
|
15
|
+
import type { MapBase } from './map.abstract';
|
|
16
16
|
import { MapControlsOptions, MapExtent, MapOptions, MapViewOptions } from './map.interface';
|
|
17
17
|
export declare class IgoMap implements MapBase {
|
|
18
18
|
private storageService?;
|
|
@@ -2,7 +2,7 @@ import OlFeature from 'ol/Feature';
|
|
|
2
2
|
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
3
3
|
import { FeatureDataSource } from '../../datasource/shared/datasources';
|
|
4
4
|
import { Feature, FeatureMotion } from '../../feature/shared';
|
|
5
|
-
import { MapBase } from '../../map/shared/map.abstract';
|
|
5
|
+
import type { MapBase } from '../../map/shared/map.abstract';
|
|
6
6
|
/**
|
|
7
7
|
* This class is simply a shortcut for adding features to a map.
|
|
8
8
|
* It does nothing more than a standard layer but it's shipped with
|
|
@@ -38,7 +38,7 @@ export declare class Overlay<T extends MapBase = MapBase> {
|
|
|
38
38
|
/**
|
|
39
39
|
* Add a feature to the overlay and, optionally, move to it
|
|
40
40
|
* @param feature Feature
|
|
41
|
-
* @param motion Optional: Apply this motion to the map view
|
|
41
|
+
* @param motion Optional: Apply this motion to the map view (default on FeatureMotion.Default)
|
|
42
42
|
*/
|
|
43
43
|
addFeature(feature: Feature, motion?: FeatureMotion): void;
|
|
44
44
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import type { TemplateRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { EntityStore } from '@igo2/common';
|
|
4
4
|
import { ConfigService } from '@igo2/core';
|
|
5
5
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
6
6
|
import { IgoMap } from '../../map/shared/map';
|
|
@@ -41,7 +41,7 @@ export declare class SearchResultsComponent implements OnInit, OnDestroy {
|
|
|
41
41
|
/**
|
|
42
42
|
* Search results store
|
|
43
43
|
*/
|
|
44
|
-
store:
|
|
44
|
+
store: EntityStore<SearchResult>;
|
|
45
45
|
/**
|
|
46
46
|
* to show hide results icons
|
|
47
47
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import olFeature from 'ol/Feature';
|
|
2
2
|
import type { default as OlGeometry } from 'ol/geom/Geometry';
|
|
3
3
|
import olStyle from 'ol/style/Style';
|
|
4
|
-
import { Feature } from '../../../feature/shared/feature.interfaces';
|
|
4
|
+
import type { Feature } from '../../../feature/shared/feature.interfaces';
|
|
5
5
|
export interface FeatureCommonVectorStyleOptions extends CommonVectorStyleOptions {
|
|
6
6
|
feature: Feature | olFeature<OlGeometry>;
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/geo",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.3.0",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
19
19
|
".": {
|
|
20
|
+
"sass": "./src/_index.scss",
|
|
20
21
|
"types": "./index.d.ts",
|
|
21
22
|
"esm2022": "./esm2022/igo2-geo.mjs",
|
|
22
23
|
"esm": "./esm2022/igo2-geo.mjs",
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"./style": {
|
|
26
27
|
"sass": "./style/style.scss"
|
|
27
28
|
},
|
|
28
|
-
"./
|
|
29
|
+
"./theme": {
|
|
29
30
|
"sass": "./src/geo-theme.scss"
|
|
30
31
|
},
|
|
31
32
|
"./package.json": {
|
|
@@ -49,9 +50,9 @@
|
|
|
49
50
|
"@angular/forms": "^16.2.5",
|
|
50
51
|
"@angular/material": "^16.2.4",
|
|
51
52
|
"@angular/platform-browser": "^16.2.5",
|
|
52
|
-
"@igo2/common": "^16.
|
|
53
|
-
"@igo2/core": "^16.
|
|
54
|
-
"@igo2/utils": "^16.
|
|
53
|
+
"@igo2/common": "^16.3.0",
|
|
54
|
+
"@igo2/core": "^16.3.0",
|
|
55
|
+
"@igo2/utils": "^16.3.0",
|
|
55
56
|
"@mat-datetimepicker/core": "~12.0.0",
|
|
56
57
|
"file-saver": "^2.0.2",
|
|
57
58
|
"flexsearch": "0.7.21",
|
package/src/_index.scss
ADDED
|
@@ -26,15 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
@mixin density($theme) {
|
|
29
|
-
$density: mat.get-density-config($theme);
|
|
30
|
-
|
|
31
|
-
$theme: map.merge(
|
|
32
|
-
$theme,
|
|
33
|
-
(
|
|
34
|
-
density: $density - 2
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
|
|
38
29
|
igo-search-bar {
|
|
39
30
|
@include mat.form-field-density($theme);
|
|
40
31
|
@include mat.icon-button-density($theme);
|