@igo2/geo 1.15.3 → 1.15.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.
- package/esm2020/lib/search/shared/sources/cadastre.mjs +126 -0
- package/esm2020/lib/search/shared/sources/cadastre.providers.mjs +23 -0
- package/esm2020/lib/search/shared/sources/index.mjs +3 -1
- package/fesm2015/igo2-geo.mjs +141 -5
- package/fesm2015/igo2-geo.mjs.map +1 -1
- package/fesm2020/igo2-geo.mjs +137 -5
- package/fesm2020/igo2-geo.mjs.map +1 -1
- package/lib/search/shared/sources/cadastre.d.ts +33 -0
- package/lib/search/shared/sources/cadastre.providers.d.ts +18 -0
- package/lib/search/shared/sources/index.d.ts +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Feature } from '../../../feature';
|
|
4
|
+
import { SearchResult } from '../search.interfaces';
|
|
5
|
+
import { SearchSource, TextSearch } from './source';
|
|
6
|
+
import { SearchSourceOptions, TextSearchOptions } from './source.interfaces';
|
|
7
|
+
import { LanguageService, StorageService } from '@igo2/core';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Cadastre search source
|
|
11
|
+
*/
|
|
12
|
+
export declare class CadastreSearchSource extends SearchSource implements TextSearch {
|
|
13
|
+
private http;
|
|
14
|
+
private languageService;
|
|
15
|
+
static id: string;
|
|
16
|
+
static type: string;
|
|
17
|
+
constructor(http: HttpClient, languageService: LanguageService, storageService: StorageService, options: SearchSourceOptions);
|
|
18
|
+
getId(): string;
|
|
19
|
+
getType(): string;
|
|
20
|
+
protected getDefaultOptions(): SearchSourceOptions;
|
|
21
|
+
/**
|
|
22
|
+
* Search a place by name
|
|
23
|
+
* @param term Place name
|
|
24
|
+
* @returns Observable of <SearchResult<Feature>[]
|
|
25
|
+
*/
|
|
26
|
+
search(term: string | undefined, options?: TextSearchOptions): Observable<SearchResult<Feature>[]>;
|
|
27
|
+
private computeSearchRequestParams;
|
|
28
|
+
private extractResults;
|
|
29
|
+
private dataToResult;
|
|
30
|
+
private computeGeometry;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CadastreSearchSource, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CadastreSearchSource>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ConfigService, LanguageService, StorageService } from '@igo2/core';
|
|
3
|
+
import { SearchSource } from './source';
|
|
4
|
+
import { CadastreSearchSource } from './cadastre';
|
|
5
|
+
/**
|
|
6
|
+
* Cadastre search source factory
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
export declare function cadastreSearchSourceFactory(http: HttpClient, languageService: LanguageService, storageService: StorageService, config: ConfigService): CadastreSearchSource;
|
|
10
|
+
/**
|
|
11
|
+
* Function that returns a provider for the Cadastre search source
|
|
12
|
+
*/
|
|
13
|
+
export declare function provideCadastreSearchSource(): {
|
|
14
|
+
provide: typeof SearchSource;
|
|
15
|
+
useFactory: typeof cadastreSearchSourceFactory;
|
|
16
|
+
multi: boolean;
|
|
17
|
+
deps: (typeof HttpClient | typeof ConfigService | typeof LanguageService | typeof StorageService)[];
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/geo",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "IGO Community",
|
|
6
6
|
"keywords": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@angular/forms": "^14.3.0",
|
|
33
33
|
"@angular/material": "^14.2.7",
|
|
34
34
|
"@angular/platform-browser": "^14.3.0",
|
|
35
|
-
"@igo2/common": "^1.15.
|
|
36
|
-
"@igo2/core": "^1.15.
|
|
37
|
-
"@igo2/utils": "^1.15.
|
|
35
|
+
"@igo2/common": "^1.15.4",
|
|
36
|
+
"@igo2/core": "^1.15.4",
|
|
37
|
+
"@igo2/utils": "^1.15.4",
|
|
38
38
|
"flexsearch": "0.7.21",
|
|
39
39
|
"ol": "^7.3.0",
|
|
40
40
|
"proj4": "^2.8.0",
|