@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,126 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Injectable, Inject } from '@angular/core';
|
|
3
|
+
import { HttpParams } from '@angular/common/http';
|
|
4
|
+
import { of } from 'rxjs';
|
|
5
|
+
import { map } from 'rxjs/operators';
|
|
6
|
+
import olWKT from 'ol/format/WKT';
|
|
7
|
+
import { FEATURE } from '../../../feature';
|
|
8
|
+
import { SearchSource } from './source';
|
|
9
|
+
import { computeTermSimilarity } from '../search.utils';
|
|
10
|
+
import { Cacheable } from 'ts-cacheable';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@angular/common/http";
|
|
13
|
+
import * as i2 from "@igo2/core";
|
|
14
|
+
/**
|
|
15
|
+
* Cadastre search source
|
|
16
|
+
*/
|
|
17
|
+
export class CadastreSearchSource extends SearchSource {
|
|
18
|
+
constructor(http, languageService, storageService, options) {
|
|
19
|
+
super(options, storageService);
|
|
20
|
+
this.http = http;
|
|
21
|
+
this.languageService = languageService;
|
|
22
|
+
}
|
|
23
|
+
getId() {
|
|
24
|
+
return CadastreSearchSource.id;
|
|
25
|
+
}
|
|
26
|
+
getType() {
|
|
27
|
+
return CadastreSearchSource.type;
|
|
28
|
+
}
|
|
29
|
+
/*
|
|
30
|
+
* Source : https://wiki.openstreetmap.org/wiki/Key:amenity
|
|
31
|
+
*/
|
|
32
|
+
getDefaultOptions() {
|
|
33
|
+
return {
|
|
34
|
+
title: 'Cadastre (Québec)',
|
|
35
|
+
searchUrl: 'https://carto.cptaq.gouv.qc.ca/php/find_lot_v1.php?'
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Search a place by name
|
|
40
|
+
* @param term Place name
|
|
41
|
+
* @returns Observable of <SearchResult<Feature>[]
|
|
42
|
+
*/
|
|
43
|
+
search(term, options) {
|
|
44
|
+
term = term.endsWith(',') ? term.slice(0, -1) : term;
|
|
45
|
+
term = term.startsWith(',') ? term.substr(1) : term;
|
|
46
|
+
term = term.replace(/ /g, '');
|
|
47
|
+
const params = this.computeSearchRequestParams(term, options || {});
|
|
48
|
+
if (!params.get('numero') || !params.get('numero').match(/^[0-9,]+$/g)) {
|
|
49
|
+
return of([]);
|
|
50
|
+
}
|
|
51
|
+
return this.http
|
|
52
|
+
.get(this.searchUrl, { params, responseType: 'text' })
|
|
53
|
+
.pipe(map((response) => this.extractResults(response, term)));
|
|
54
|
+
}
|
|
55
|
+
computeSearchRequestParams(term, options) {
|
|
56
|
+
return new HttpParams({
|
|
57
|
+
fromObject: Object.assign({
|
|
58
|
+
numero: term,
|
|
59
|
+
epsg: '4326'
|
|
60
|
+
}, this.params, options.params || {})
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
extractResults(response, term) {
|
|
64
|
+
return response
|
|
65
|
+
.split('<br />')
|
|
66
|
+
.filter((lot) => lot.length > 0)
|
|
67
|
+
.map((lot) => this.dataToResult(lot, term));
|
|
68
|
+
}
|
|
69
|
+
dataToResult(data, term) {
|
|
70
|
+
const lot = data.split(';');
|
|
71
|
+
const numero = lot[0];
|
|
72
|
+
const wkt = lot[7];
|
|
73
|
+
const geometry = this.computeGeometry(wkt);
|
|
74
|
+
const properties = {
|
|
75
|
+
NoLot: numero,
|
|
76
|
+
Route: '<span class="routing"> <u>' + this.languageService.translate.instant('igo.geo.seeRouting') + '</u> </span>'
|
|
77
|
+
};
|
|
78
|
+
const id = [this.getId(), 'cadastre', numero].join('.');
|
|
79
|
+
return {
|
|
80
|
+
source: this,
|
|
81
|
+
meta: {
|
|
82
|
+
dataType: FEATURE,
|
|
83
|
+
id,
|
|
84
|
+
title: numero,
|
|
85
|
+
score: computeTermSimilarity(term.trim(), numero),
|
|
86
|
+
icon: 'map-marker'
|
|
87
|
+
},
|
|
88
|
+
data: {
|
|
89
|
+
type: FEATURE,
|
|
90
|
+
projection: 'EPSG:4326',
|
|
91
|
+
geometry,
|
|
92
|
+
properties,
|
|
93
|
+
meta: {
|
|
94
|
+
id,
|
|
95
|
+
title: numero
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
computeGeometry(wkt) {
|
|
101
|
+
const feature = new olWKT().readFeature(wkt, {
|
|
102
|
+
dataProjection: 'EPSG:4326',
|
|
103
|
+
featureProjection: 'EPSG:4326'
|
|
104
|
+
});
|
|
105
|
+
return {
|
|
106
|
+
type: feature.getGeometry().getType(),
|
|
107
|
+
coordinates: feature.getGeometry().getCoordinates()
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
CadastreSearchSource.id = 'cadastre';
|
|
112
|
+
CadastreSearchSource.type = FEATURE;
|
|
113
|
+
CadastreSearchSource.ɵfac = function CadastreSearchSource_Factory(t) { return new (t || CadastreSearchSource)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.LanguageService), i0.ɵɵinject(i2.StorageService), i0.ɵɵinject('options')); };
|
|
114
|
+
CadastreSearchSource.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CadastreSearchSource, factory: CadastreSearchSource.ɵfac });
|
|
115
|
+
__decorate([
|
|
116
|
+
Cacheable({
|
|
117
|
+
maxCacheCount: 20
|
|
118
|
+
})
|
|
119
|
+
], CadastreSearchSource.prototype, "search", null);
|
|
120
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CadastreSearchSource, [{
|
|
121
|
+
type: Injectable
|
|
122
|
+
}], function () { return [{ type: i1.HttpClient }, { type: i2.LanguageService }, { type: i2.StorageService }, { type: undefined, decorators: [{
|
|
123
|
+
type: Inject,
|
|
124
|
+
args: ['options']
|
|
125
|
+
}] }]; }, { search: [] }); })();
|
|
126
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FkYXN0cmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9nZW8vc3JjL2xpYi9zZWFyY2gvc2hhcmVkL3NvdXJjZXMvY2FkYXN0cmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFBYyxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUU5RCxPQUFPLEVBQWMsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ3RDLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUVyQyxPQUFPLEtBQUssTUFBTSxlQUFlLENBQUM7QUFFbEMsT0FBTyxFQUFFLE9BQU8sRUFBNEIsTUFBTSxrQkFBa0IsQ0FBQztBQUdyRSxPQUFPLEVBQUUsWUFBWSxFQUFjLE1BQU0sVUFBVSxDQUFDO0FBSXBELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQ3hELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxjQUFjLENBQUM7Ozs7QUFHekM7O0dBRUc7QUF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UHJvamVjdGlvbjogJ0VQU0c6NDMyNidcclxuICAgIH0pO1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgdHlwZTogZmVhdHVyZS5nZXRHZW9tZXRyeSgpLmdldFR5cGUoKSBhcyBHZW9Kc29uR2VvbWV0cnlUeXBlcyxcclxuICAgICAgY29vcmRpbmF0ZXM6IChmZWF0dXJlLmdldEdlb21ldHJ5KCkgYXMgYW55KS5nZXRDb29yZGluYXRlcygpXHJcbiAgICB9O1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,23 @@
|
|
|
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 function cadastreSearchSourceFactory(http, languageService, storageService, config) {
|
|
10
|
+
return new CadastreSearchSource(http, languageService, storageService, config.getConfig(`searchSources.${CadastreSearchSource.id}`));
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Function that returns a provider for the Cadastre search source
|
|
14
|
+
*/
|
|
15
|
+
export function provideCadastreSearchSource() {
|
|
16
|
+
return {
|
|
17
|
+
provide: SearchSource,
|
|
18
|
+
useFactory: cadastreSearchSourceFactory,
|
|
19
|
+
multi: true,
|
|
20
|
+
deps: [HttpClient, LanguageService, StorageService, ConfigService]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FkYXN0cmUucHJvdmlkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZ2VvL3NyYy9saWIvc2VhcmNoL3NoYXJlZC9zb3VyY2VzL2N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iBbSHR0cENsaWVudCwgTGFuZ3VhZ2VTZXJ2aWNlLCBTdG9yYWdlU2VydmljZSwgQ29uZmlnU2VydmljZV1cclxuICB9O1xyXG59XHJcbiJdfQ==
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './cadastre';
|
|
2
|
+
export * from './cadastre.providers';
|
|
1
3
|
export * from './source';
|
|
2
4
|
export * from './source.interfaces';
|
|
3
5
|
export * from './icherche';
|
|
@@ -18,4 +20,4 @@ export * from './coordinates.providers';
|
|
|
18
20
|
export * from './workspace';
|
|
19
21
|
export * from './workspace.interfaces';
|
|
20
22
|
export * from './workspace.providers';
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9nZW8vc3JjL2xpYi9zZWFyY2gvc2hhcmVkL3NvdXJjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyxzQkFBc0IsQ0FBQztBQUNyQyxjQUFjLFVBQVUsQ0FBQztBQUN6QixjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyw0QkFBNEIsQ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hdGVzJztcclxuZXhwb3J0ICogZnJvbSAnLi9jb29yZGluYXRlcy5pbnRlcmZhY2VzJztcclxuZXhwb3J0ICogZnJvbSAnLi9jb29yZGluYXRlcy5wcm92aWRlcnMnO1xyXG5leHBvcnQgKiBmcm9tICcuL3dvcmtzcGFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vd29ya3NwYWNlLmludGVyZmFjZXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL3dvcmtzcGFjZS5wcm92aWRlcnMnO1xyXG4iXX0=
|
package/fesm2015/igo2-geo.mjs
CHANGED
|
@@ -49,7 +49,7 @@ import { asArray } from 'ol/color';
|
|
|
49
49
|
import { getVectorContext, getRenderPixel } from 'ol/render';
|
|
50
50
|
import olProjection from 'ol/proj/Projection';
|
|
51
51
|
import * as olfilter from 'ol/format/filter';
|
|
52
|
-
import
|
|
52
|
+
import olWKT from 'ol/format/WKT';
|
|
53
53
|
import olFormatWFS from 'ol/format/WFS';
|
|
54
54
|
import moment from 'moment';
|
|
55
55
|
import olFormatGML2 from 'ol/format/GML2';
|
|
@@ -1706,7 +1706,7 @@ class OgcFilterWriter {
|
|
|
1706
1706
|
const wfsExpression = filterOptions.expression;
|
|
1707
1707
|
let geometry;
|
|
1708
1708
|
if (wfsWktGeometry) {
|
|
1709
|
-
const wkt = new
|
|
1709
|
+
const wkt = new olWKT();
|
|
1710
1710
|
geometry = wkt.readGeometry(wfsWktGeometry, {
|
|
1711
1711
|
dataProjection: wfsSrsName,
|
|
1712
1712
|
featureProjection: wfsSrsName || 'EPSG:3857'
|
|
@@ -26248,7 +26248,7 @@ TimeFilterListBindingDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ ty
|
|
|
26248
26248
|
class WktService {
|
|
26249
26249
|
constructor() { }
|
|
26250
26250
|
wktToFeature(wkt, wktProj, featureProj) {
|
|
26251
|
-
return new
|
|
26251
|
+
return new olWKT().readFeature(wkt, {
|
|
26252
26252
|
dataProjection: wktProj,
|
|
26253
26253
|
featureProjection: featureProj
|
|
26254
26254
|
});
|
|
@@ -43967,7 +43967,7 @@ class EditionWorkspaceService {
|
|
|
43967
43967
|
this.relationLayers$ = new BehaviorSubject(undefined);
|
|
43968
43968
|
this.rowsInMapExtentCheckCondition$ = new BehaviorSubject(true);
|
|
43969
43969
|
this.loading = false;
|
|
43970
|
-
this.wktFormat = new
|
|
43970
|
+
this.wktFormat = new olWKT();
|
|
43971
43971
|
this.geoJsonFormat = new OlGeoJSON();
|
|
43972
43972
|
}
|
|
43973
43973
|
get zoomAuto() {
|
|
@@ -45701,6 +45701,142 @@ function provideOsrmDirectionsSource() {
|
|
|
45701
45701
|
};
|
|
45702
45702
|
}
|
|
45703
45703
|
|
|
45704
|
+
/**
|
|
45705
|
+
* Cadastre search source
|
|
45706
|
+
*/
|
|
45707
|
+
class CadastreSearchSource extends SearchSource {
|
|
45708
|
+
constructor(http, languageService, storageService, options) {
|
|
45709
|
+
super(options, storageService);
|
|
45710
|
+
this.http = http;
|
|
45711
|
+
this.languageService = languageService;
|
|
45712
|
+
}
|
|
45713
|
+
getId() {
|
|
45714
|
+
return CadastreSearchSource.id;
|
|
45715
|
+
}
|
|
45716
|
+
getType() {
|
|
45717
|
+
return CadastreSearchSource.type;
|
|
45718
|
+
}
|
|
45719
|
+
/*
|
|
45720
|
+
* Source : https://wiki.openstreetmap.org/wiki/Key:amenity
|
|
45721
|
+
*/
|
|
45722
|
+
getDefaultOptions() {
|
|
45723
|
+
return {
|
|
45724
|
+
title: 'Cadastre (Québec)',
|
|
45725
|
+
searchUrl: 'https://carto.cptaq.gouv.qc.ca/php/find_lot_v1.php?'
|
|
45726
|
+
};
|
|
45727
|
+
}
|
|
45728
|
+
/**
|
|
45729
|
+
* Search a place by name
|
|
45730
|
+
* @param term Place name
|
|
45731
|
+
* @returns Observable of <SearchResult<Feature>[]
|
|
45732
|
+
*/
|
|
45733
|
+
search(term, options) {
|
|
45734
|
+
term = term.endsWith(',') ? term.slice(0, -1) : term;
|
|
45735
|
+
term = term.startsWith(',') ? term.substr(1) : term;
|
|
45736
|
+
term = term.replace(/ /g, '');
|
|
45737
|
+
const params = this.computeSearchRequestParams(term, options || {});
|
|
45738
|
+
if (!params.get('numero') || !params.get('numero').match(/^[0-9,]+$/g)) {
|
|
45739
|
+
return of([]);
|
|
45740
|
+
}
|
|
45741
|
+
return this.http
|
|
45742
|
+
.get(this.searchUrl, { params, responseType: 'text' })
|
|
45743
|
+
.pipe(map((response) => this.extractResults(response, term)));
|
|
45744
|
+
}
|
|
45745
|
+
computeSearchRequestParams(term, options) {
|
|
45746
|
+
return new HttpParams({
|
|
45747
|
+
fromObject: Object.assign({
|
|
45748
|
+
numero: term,
|
|
45749
|
+
epsg: '4326'
|
|
45750
|
+
}, this.params, options.params || {})
|
|
45751
|
+
});
|
|
45752
|
+
}
|
|
45753
|
+
extractResults(response, term) {
|
|
45754
|
+
return response
|
|
45755
|
+
.split('<br />')
|
|
45756
|
+
.filter((lot) => lot.length > 0)
|
|
45757
|
+
.map((lot) => this.dataToResult(lot, term));
|
|
45758
|
+
}
|
|
45759
|
+
dataToResult(data, term) {
|
|
45760
|
+
const lot = data.split(';');
|
|
45761
|
+
const numero = lot[0];
|
|
45762
|
+
const wkt = lot[7];
|
|
45763
|
+
const geometry = this.computeGeometry(wkt);
|
|
45764
|
+
const properties = {
|
|
45765
|
+
NoLot: numero,
|
|
45766
|
+
Route: '<span class="routing"> <u>' + this.languageService.translate.instant('igo.geo.seeRouting') + '</u> </span>'
|
|
45767
|
+
};
|
|
45768
|
+
const id = [this.getId(), 'cadastre', numero].join('.');
|
|
45769
|
+
return {
|
|
45770
|
+
source: this,
|
|
45771
|
+
meta: {
|
|
45772
|
+
dataType: FEATURE,
|
|
45773
|
+
id,
|
|
45774
|
+
title: numero,
|
|
45775
|
+
score: computeTermSimilarity(term.trim(), numero),
|
|
45776
|
+
icon: 'map-marker'
|
|
45777
|
+
},
|
|
45778
|
+
data: {
|
|
45779
|
+
type: FEATURE,
|
|
45780
|
+
projection: 'EPSG:4326',
|
|
45781
|
+
geometry,
|
|
45782
|
+
properties,
|
|
45783
|
+
meta: {
|
|
45784
|
+
id,
|
|
45785
|
+
title: numero
|
|
45786
|
+
}
|
|
45787
|
+
}
|
|
45788
|
+
};
|
|
45789
|
+
}
|
|
45790
|
+
computeGeometry(wkt) {
|
|
45791
|
+
const feature = new olWKT().readFeature(wkt, {
|
|
45792
|
+
dataProjection: 'EPSG:4326',
|
|
45793
|
+
featureProjection: 'EPSG:4326'
|
|
45794
|
+
});
|
|
45795
|
+
return {
|
|
45796
|
+
type: feature.getGeometry().getType(),
|
|
45797
|
+
coordinates: feature.getGeometry().getCoordinates()
|
|
45798
|
+
};
|
|
45799
|
+
}
|
|
45800
|
+
}
|
|
45801
|
+
CadastreSearchSource.id = 'cadastre';
|
|
45802
|
+
CadastreSearchSource.type = FEATURE;
|
|
45803
|
+
CadastreSearchSource.ɵfac = function CadastreSearchSource_Factory(t) { return new (t || CadastreSearchSource)(i0.ɵɵinject(i1$2.HttpClient), i0.ɵɵinject(i2$1.LanguageService), i0.ɵɵinject(i2$1.StorageService), i0.ɵɵinject('options')); };
|
|
45804
|
+
CadastreSearchSource.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CadastreSearchSource, factory: CadastreSearchSource.ɵfac });
|
|
45805
|
+
__decorate([
|
|
45806
|
+
Cacheable({
|
|
45807
|
+
maxCacheCount: 20
|
|
45808
|
+
})
|
|
45809
|
+
], CadastreSearchSource.prototype, "search", null);
|
|
45810
|
+
(function () {
|
|
45811
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CadastreSearchSource, [{
|
|
45812
|
+
type: Injectable
|
|
45813
|
+
}], function () {
|
|
45814
|
+
return [{ type: i1$2.HttpClient }, { type: i2$1.LanguageService }, { type: i2$1.StorageService }, { type: undefined, decorators: [{
|
|
45815
|
+
type: Inject,
|
|
45816
|
+
args: ['options']
|
|
45817
|
+
}] }];
|
|
45818
|
+
}, { search: [] });
|
|
45819
|
+
})();
|
|
45820
|
+
|
|
45821
|
+
/**
|
|
45822
|
+
* Cadastre search source factory
|
|
45823
|
+
* @ignore
|
|
45824
|
+
*/
|
|
45825
|
+
function cadastreSearchSourceFactory(http, languageService, storageService, config) {
|
|
45826
|
+
return new CadastreSearchSource(http, languageService, storageService, config.getConfig(`searchSources.${CadastreSearchSource.id}`));
|
|
45827
|
+
}
|
|
45828
|
+
/**
|
|
45829
|
+
* Function that returns a provider for the Cadastre search source
|
|
45830
|
+
*/
|
|
45831
|
+
function provideCadastreSearchSource() {
|
|
45832
|
+
return {
|
|
45833
|
+
provide: SearchSource,
|
|
45834
|
+
useFactory: cadastreSearchSourceFactory,
|
|
45835
|
+
multi: true,
|
|
45836
|
+
deps: [HttpClient, LanguageService, StorageService, ConfigService]
|
|
45837
|
+
};
|
|
45838
|
+
}
|
|
45839
|
+
|
|
45704
45840
|
/**
|
|
45705
45841
|
* Nominatim search source
|
|
45706
45842
|
*/
|
|
@@ -46754,5 +46890,5 @@ ConfigFileToGeoDBService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token:
|
|
|
46754
46890
|
* Generated bundle index. Do not edit.
|
|
46755
46891
|
*/
|
|
46756
46892
|
|
|
46757
|
-
export { AddCatalogDialogComponent, ArcGISRestDataSource, BaseLayersSwitcherComponent, CapabilitiesService, CartoDataSource, Catalog, CatalogBrowserComponent, CatalogFactory, CatalogItemType, CatalogLibaryComponent, CatalogService, ClusterDataSource, CompositeCatalog, ConfigFileToGeoDBService, ConfirmationPopupComponent, CoordinatesReverseSearchSource, CoordinatesReverseSearchSourceFactory, CoordinatesSearchResultFormatter, CoordinatesUnit, DDtoDMS, DataService, DataSource, DataSourceService, DirectionRelativePositionType, DirectionType, DirectionsButtonsComponent, DirectionsComponent, DirectionsFormat, DirectionsInputsComponent, DirectionsResultsComponent, DirectionsService, DirectionsSource, DownloadButtonComponent, DownloadService, DrawComponent, DrawControl, DrawIconService, DrawStyleService, DropGeoFileDirective, EditionWorkspace, EditionWorkspaceService, EncodingFormat, EsriStyleGenerator, ExportButtonComponent, ExportError, ExportFormat, ExportInvalidFileError, ExportNothingToExportError, ExportService, FEATURE, FeatureDataSource, FeatureDetailsComponent, FeatureDetailsDirective, FeatureFormComponent, FeatureMotion, FeatureStore, FeatureStoreInMapExtentStrategy, FeatureStoreInMapResolutionStrategy, FeatureStoreLoadingLayerStrategy, FeatureStoreLoadingStrategy, FeatureStoreSearchIndexStrategy, FeatureStoreSelectionStrategy, FeatureWorkspace, FeatureWorkspaceService, FilterableDataSourcePipe, GeoDBService, GeoNetworkService, GeolocateButtonComponent, GeometryFormFieldComponent, GeometryFormFieldInputComponent, GeometrySliceError, GeometrySliceLineStringError, GeometrySliceMultiPolygonError, GeometrySliceTooManyIntersectionError, GeometryType, GoogleLinks, HomeExtentButtonComponent, HoverFeatureDirective, IChercheReverseSearchSource, IChercheSearchResultFormatter, IChercheSearchSource, ILayerSearchResultFormatter, ILayerSearchSource, IgoCatalogBrowserModule, IgoCatalogLibraryModule, IgoCatalogModule, IgoConfirmationPopupModule, IgoDataSourceModule, IgoDirectionsModule, IgoDownloadModule, IgoDrawModule, IgoDrawingToolModule, IgoFeatureDetailsModule, IgoFeatureFormModule, IgoFeatureModule, IgoFilterModule, IgoGeoModule, IgoGeoWorkspaceModule, IgoGeometryFormFieldModule, IgoGeometryModule, IgoHttpParameterCodec, IgoImportExportModule, IgoLayerModule, IgoMap, IgoMapModule, IgoMeasureModule, IgoMeasurerModule, IgoMetadataModule, IgoOgcFilterModule, IgoOverlayModule, IgoPrintModule, IgoQueryModule, IgoSearchBarModule, IgoSearchModule, IgoSearchResultsModule, IgoSearchSelectorModule, IgoSearchSettingsModule, IgoStyleListModule, IgoStyleModule, IgoToastModule, IgoWktModule, IgoWorkspaceSelectorModule, IgoWorkspaceUpdatorModule, ImageArcGISRestDataSource, ImageLayer, ImageWatcher, ImportError, ImportExportComponent, ImportInvalidFileError, ImportNothingToImportError, ImportOgreServerError, ImportSRSError, ImportService, ImportSizeError, ImportUnreadableFileError, InfoSectionComponent, InsertSourceInsertDBEnum, LAYER, LabelType, Layer, LayerDBService, LayerItemComponent, LayerLegendComponent, LayerLegendItemComponent, LayerLegendListBindingDirective, LayerLegendListComponent, LayerListBindingDirective, LayerListComponent, LayerListControlsEnum, LayerListDisplacement, LayerListSelectVisibleEnum, LayerListToolComponent, LayerListToolControlsEnum, LayerListToolService, LayerService, LinkedProperties, MEASURE_UNIT_AUTO, MVTDataSource, MapBrowserComponent, MapCenterComponent, MapController, MapGeolocationController, MapOfflineDirective, MapService, MapViewAction, MapViewController, MeasureAreaUnit, MeasureAreaUnitAbbreviation, MeasureFormatPipe, MeasureLengthUnit, MeasureLengthUnitAbbreviation, MeasureType, MeasurerComponent, MenuButtonComponent, MetadataAbstractComponent, MetadataButtonComponent, MetadataService, MiniBaseMapComponent, ModifyControl, NominatimSearchSource, OGCFilterService, OSMDataSource, OfflineButtonComponent, OgcFilterButtonComponent, OgcFilterComponent, OgcFilterFormComponent, OgcFilterOperator, OgcFilterOperatorType, OgcFilterSelectionComponent, OgcFilterTimeComponent, OgcFilterTimeSliderComponent, OgcFilterWidget, OgcFilterWriter, OgcFilterableFormComponent, OgcFilterableItemComponent, OgcFilterableListBindingDirective, OgcFilterableListComponent, OlDragSelectInteraction, OptionsApiService, OptionsService, OsmLinks, OsrmDirectionsSource, Overlay, OverlayAction, OverlayDirective, OverlayService, PointerPositionDirective, PrintComponent, PrintFormComponent, PrintLegendPosition, PrintOrientation, PrintOutputFormat, PrintPaperFormat, PrintResolution, PrintSaveImageFormat, PrintService, ProjectionService, ProposalType, QueryDirective, QueryFormat, QueryFormatMimeType, QueryHtmlTarget, QuerySearchSource, QueryService, ResponseType, RotationButtonComponent, RoutesFeatureStore, SEARCH_TYPES, STYLELIST_OPTIONS, SearchBarComponent, SearchPointerSummaryDirective, SearchResultAddButtonComponent, SearchResultMode, SearchResultsComponent, SearchResultsItemComponent, SearchSelectorComponent, SearchService, SearchSettingsComponent, SearchSource, SearchSourceService, SliceControl, SourceDirectionsType, SpatialFilterItemComponent, SpatialFilterItemType, SpatialFilterListComponent, SpatialFilterQueryType, SpatialFilterService, SpatialFilterType, SpatialFilterTypeComponent, StepFeatureStore, StopsFeatureStore, StopsStore, StoredQueriesReverseSearchSource, StoredQueriesSearchSource, StyleListService, StyleModalDrawingComponent, StyleModalLayerButtonComponent, StyleModalLayerComponent, StyleService, SwipeControlComponent, TileArcGISRestDataSource, TileDebugDataSource, TileLayer, TileWatcher, TimeFilterButtonComponent, TimeFilterFormComponent, TimeFilterItemComponent, TimeFilterListBindingDirective, TimeFilterListComponent, TimeFilterService, TimeFilterStyle, TimeFilterType, ToastComponent, TooltipType, TrackFeatureButtonComponent, TypeCapabilities, TypeCatalog, VectorLayer, VectorTileLayer, VectorWatcher, WFSDataSource, WFSService, WMSDataSource, WMTSDataSource, WakeLockButtonComponent, WebSocketDataSource, WfsWorkspace, WfsWorkspaceService, WktService, WorkspaceSearchSource, WorkspaceSelectorDirective, WorkspaceUpdatorDirective, XYZDataSource, ZoomButtonComponent, addDirectionToRoutesFeatureStore, addLayerAndFeaturesStyledToMap, addLayerAndFeaturesToMap, addLinearRingToOlPolygon, addStopToStopsFeatureStore, addStopToStore, buildUrl, checkWfsParams, clearOlGeometryMidpoints, computeBestAreaUnit, computeBestLengthUnit, computeLayerTitleFromFile, computeMVTOptionsOnHover, computeOlFeatureExtent, computeOlFeaturesDiff, computeOlFeaturesExtent, computeProjectionsConstraints, computeRelativePosition, computeStopsPosition, computeTermSimilarity, convertDDToDMS, createDefaultTileGrid, createDrawHoleInteractionStyle, createDrawInteractionStyle, createInteractionStyle, createMeasureInteractionStyle, createMeasureLayerStyle, createOlTooltipAtPoint, createOlTooltipDrawAtPoint, createOverlayDefaultStyle, createOverlayLayer, createOverlayLayerStyle, createOverlayMarkerStyle, ctrlKeyDown, defaultCoordinatesSearchResultFormatterFactory, defaultEpsg, defaultFieldNameGeometry, defaultIChercheSearchResultFormatterFactory, defaultMaxFeatures, defaultWfsVersion, directionsStyle, entitiesToRowData, exportToCSV, featureFromOl, featureRandomStyle, featureRandomStyleFunction, featureToOl, featureToSearchResult, featuresAreOutOfView, featuresAreTooDeepInView, findDiff, formatDistance, formatDuration, formatInstruction, formatMeasure, formatScale, formatWFSQueryString, generateArcgisRestIdFromSourceOptions, generateFeatureIdFromSourceOptions, generateId, generateIdFromSourceOptions, generateWMSIdFromSourceOptions, generateWMTSIdFromSourceOptions, generateWfsIdFromSourceOptions, generateXYZIdFromSourceOptions, getAllChildLayersByDeletion, getAllChildLayersByProperty, getCommonVectorSelectedStyle, getCommonVectorStyle, getDirectChildLayersByDeletion, getDirectChildLayersByProperty, getDirectParentLayerByDeletion, getDirectParentLayerByProperty, getFileExtension, getFormatFromOptions, getIgoLayerByLinkId, getLayersLegends, getLinkedLayersOptions, getMousePositionFromOlGeometryEvent, getOlTooltipAtCenter, getOlTooltipsAtMidpoints, getResolutionFromScale, getRootParentByDeletion, getRootParentByProperty, getRowsInMapExtent, getScaleFromResolution, getSelectedOnly, getTooltipsOfOlGeometry, gmlRegex, handleFileExportError, handleFileExportSuccess, handleFileImportError, handleFileImportSuccess, handleInvalidFileImportError, handleLayerPropertyChange, handleNothingToExportError, handleNothingToImportError, handleOgreServerImportError, handleSRSImportError, handleSizeFileImportError, handleUnreadbleFileImportError, hideOlFeature, hoverFeatureMarkerStyle, ichercheReverseSearchSourceFactory, ichercheSearchSourceFactory, ilayerSearchResultFormatterFactory, ilayerSearchSourceFactory, initLayerSyncFromRootParentLayers, initRoutesFeatureStore, initStepFeatureStore, initStopsFeatureStore, jsonRegex, layerFeatureIsQueryable, layerHasLinkDeletion, layerHasLinkWithProperty, layerIsQueryable, lonLatConversion, mapExtentStrategyActiveToolTip, measureOlGeometry, measureOlGeometryArea, measureOlGeometryLength, metersToFeet, metersToKilometers, metersToMiles, metersToUnit, moveToOlFeatures, mtmZoneFromLonLat, noElementSelected, nominatimSearchSourceFactory, ogcFilterWidgetFactory, olLayerFeatureIsQueryable, olLayerIsQueryable, olStyleToBasicIgoStyle, optionsApiFactory, osrmDirectionsSourcesFactory, pointerPositionSummaryMarkerStyle, provideCoordinatesReverseSearchSource, provideDefaultCoordinatesSearchResultFormatter, provideDefaultIChercheSearchResultFormatter, provideIChercheReverseSearchSource, provideIChercheSearchSource, provideILayerSearchResultFormatter, provideILayerSearchSource, provideNominatimSearchSource, provideOgcFilterWidget, provideOptionsApi, provideOsrmDirectionsSource, provideSearchSourceService, provideStoredQueriesReverseSearchSource, provideStoredQueriesSearchSource, provideStyleListLoader, provideStyleListOptions, provideWorkspaceSearchSource, removeStopFromStore, renderFeatureFromOl, roundCoordTo, roundCoordToString, scaleExtent, searchSourceServiceFactory, setRowsInMapExtent, setSelectedOnly, sliceOlGeometry, sliceOlLineString, sliceOlPolygon, sourceCanReverseSearch, sourceCanReverseSearchAsSummary, sourceCanSearch, squareMetersToAcres, squareMetersToHectares, squareMetersToSquareFeet, squareMetersToSquareKilometers, squareMetersToSquareMiles, squareMetersToUnit, standardizeUrl, storedqueriesReverseSearchSourceFactory, storedqueriesSearchSourceFactory, stringToLonLat, styleListFactory, translateBearing, translateModifier, tryAddLoadingStrategy, tryAddSelectionStrategy, tryBindStoreLayer, updateOlGeometryCenter, updateOlGeometryMidpoints, updateOlTooltipAtCenter, updateOlTooltipDrawAtCenter, updateOlTooltipsAtMidpoints, updateOlTooltipsDrawAtMidpoints, updateStoreSorting, utmZoneFromLonLat, viewStatesAreEqual, workspaceSearchSourceFactory, zoneMtm, zoneUtm };
|
|
46893
|
+
export { AddCatalogDialogComponent, ArcGISRestDataSource, BaseLayersSwitcherComponent, CadastreSearchSource, CapabilitiesService, CartoDataSource, Catalog, CatalogBrowserComponent, CatalogFactory, CatalogItemType, CatalogLibaryComponent, CatalogService, ClusterDataSource, CompositeCatalog, ConfigFileToGeoDBService, ConfirmationPopupComponent, CoordinatesReverseSearchSource, CoordinatesReverseSearchSourceFactory, CoordinatesSearchResultFormatter, CoordinatesUnit, DDtoDMS, DataService, DataSource, DataSourceService, DirectionRelativePositionType, DirectionType, DirectionsButtonsComponent, DirectionsComponent, DirectionsFormat, DirectionsInputsComponent, DirectionsResultsComponent, DirectionsService, DirectionsSource, DownloadButtonComponent, DownloadService, DrawComponent, DrawControl, DrawIconService, DrawStyleService, DropGeoFileDirective, EditionWorkspace, EditionWorkspaceService, EncodingFormat, EsriStyleGenerator, ExportButtonComponent, ExportError, ExportFormat, ExportInvalidFileError, ExportNothingToExportError, ExportService, FEATURE, FeatureDataSource, FeatureDetailsComponent, FeatureDetailsDirective, FeatureFormComponent, FeatureMotion, FeatureStore, FeatureStoreInMapExtentStrategy, FeatureStoreInMapResolutionStrategy, FeatureStoreLoadingLayerStrategy, FeatureStoreLoadingStrategy, FeatureStoreSearchIndexStrategy, FeatureStoreSelectionStrategy, FeatureWorkspace, FeatureWorkspaceService, FilterableDataSourcePipe, GeoDBService, GeoNetworkService, GeolocateButtonComponent, GeometryFormFieldComponent, GeometryFormFieldInputComponent, GeometrySliceError, GeometrySliceLineStringError, GeometrySliceMultiPolygonError, GeometrySliceTooManyIntersectionError, GeometryType, GoogleLinks, HomeExtentButtonComponent, HoverFeatureDirective, IChercheReverseSearchSource, IChercheSearchResultFormatter, IChercheSearchSource, ILayerSearchResultFormatter, ILayerSearchSource, IgoCatalogBrowserModule, IgoCatalogLibraryModule, IgoCatalogModule, IgoConfirmationPopupModule, IgoDataSourceModule, IgoDirectionsModule, IgoDownloadModule, IgoDrawModule, IgoDrawingToolModule, IgoFeatureDetailsModule, IgoFeatureFormModule, IgoFeatureModule, IgoFilterModule, IgoGeoModule, IgoGeoWorkspaceModule, IgoGeometryFormFieldModule, IgoGeometryModule, IgoHttpParameterCodec, IgoImportExportModule, IgoLayerModule, IgoMap, IgoMapModule, IgoMeasureModule, IgoMeasurerModule, IgoMetadataModule, IgoOgcFilterModule, IgoOverlayModule, IgoPrintModule, IgoQueryModule, IgoSearchBarModule, IgoSearchModule, IgoSearchResultsModule, IgoSearchSelectorModule, IgoSearchSettingsModule, IgoStyleListModule, IgoStyleModule, IgoToastModule, IgoWktModule, IgoWorkspaceSelectorModule, IgoWorkspaceUpdatorModule, ImageArcGISRestDataSource, ImageLayer, ImageWatcher, ImportError, ImportExportComponent, ImportInvalidFileError, ImportNothingToImportError, ImportOgreServerError, ImportSRSError, ImportService, ImportSizeError, ImportUnreadableFileError, InfoSectionComponent, InsertSourceInsertDBEnum, LAYER, LabelType, Layer, LayerDBService, LayerItemComponent, LayerLegendComponent, LayerLegendItemComponent, LayerLegendListBindingDirective, LayerLegendListComponent, LayerListBindingDirective, LayerListComponent, LayerListControlsEnum, LayerListDisplacement, LayerListSelectVisibleEnum, LayerListToolComponent, LayerListToolControlsEnum, LayerListToolService, LayerService, LinkedProperties, MEASURE_UNIT_AUTO, MVTDataSource, MapBrowserComponent, MapCenterComponent, MapController, MapGeolocationController, MapOfflineDirective, MapService, MapViewAction, MapViewController, MeasureAreaUnit, MeasureAreaUnitAbbreviation, MeasureFormatPipe, MeasureLengthUnit, MeasureLengthUnitAbbreviation, MeasureType, MeasurerComponent, MenuButtonComponent, MetadataAbstractComponent, MetadataButtonComponent, MetadataService, MiniBaseMapComponent, ModifyControl, NominatimSearchSource, OGCFilterService, OSMDataSource, OfflineButtonComponent, OgcFilterButtonComponent, OgcFilterComponent, OgcFilterFormComponent, OgcFilterOperator, OgcFilterOperatorType, OgcFilterSelectionComponent, OgcFilterTimeComponent, OgcFilterTimeSliderComponent, OgcFilterWidget, OgcFilterWriter, OgcFilterableFormComponent, OgcFilterableItemComponent, OgcFilterableListBindingDirective, OgcFilterableListComponent, OlDragSelectInteraction, OptionsApiService, OptionsService, OsmLinks, OsrmDirectionsSource, Overlay, OverlayAction, OverlayDirective, OverlayService, PointerPositionDirective, PrintComponent, PrintFormComponent, PrintLegendPosition, PrintOrientation, PrintOutputFormat, PrintPaperFormat, PrintResolution, PrintSaveImageFormat, PrintService, ProjectionService, ProposalType, QueryDirective, QueryFormat, QueryFormatMimeType, QueryHtmlTarget, QuerySearchSource, QueryService, ResponseType, RotationButtonComponent, RoutesFeatureStore, SEARCH_TYPES, STYLELIST_OPTIONS, SearchBarComponent, SearchPointerSummaryDirective, SearchResultAddButtonComponent, SearchResultMode, SearchResultsComponent, SearchResultsItemComponent, SearchSelectorComponent, SearchService, SearchSettingsComponent, SearchSource, SearchSourceService, SliceControl, SourceDirectionsType, SpatialFilterItemComponent, SpatialFilterItemType, SpatialFilterListComponent, SpatialFilterQueryType, SpatialFilterService, SpatialFilterType, SpatialFilterTypeComponent, StepFeatureStore, StopsFeatureStore, StopsStore, StoredQueriesReverseSearchSource, StoredQueriesSearchSource, StyleListService, StyleModalDrawingComponent, StyleModalLayerButtonComponent, StyleModalLayerComponent, StyleService, SwipeControlComponent, TileArcGISRestDataSource, TileDebugDataSource, TileLayer, TileWatcher, TimeFilterButtonComponent, TimeFilterFormComponent, TimeFilterItemComponent, TimeFilterListBindingDirective, TimeFilterListComponent, TimeFilterService, TimeFilterStyle, TimeFilterType, ToastComponent, TooltipType, TrackFeatureButtonComponent, TypeCapabilities, TypeCatalog, VectorLayer, VectorTileLayer, VectorWatcher, WFSDataSource, WFSService, WMSDataSource, WMTSDataSource, WakeLockButtonComponent, WebSocketDataSource, WfsWorkspace, WfsWorkspaceService, WktService, WorkspaceSearchSource, WorkspaceSelectorDirective, WorkspaceUpdatorDirective, XYZDataSource, ZoomButtonComponent, addDirectionToRoutesFeatureStore, addLayerAndFeaturesStyledToMap, addLayerAndFeaturesToMap, addLinearRingToOlPolygon, addStopToStopsFeatureStore, addStopToStore, buildUrl, cadastreSearchSourceFactory, checkWfsParams, clearOlGeometryMidpoints, computeBestAreaUnit, computeBestLengthUnit, computeLayerTitleFromFile, computeMVTOptionsOnHover, computeOlFeatureExtent, computeOlFeaturesDiff, computeOlFeaturesExtent, computeProjectionsConstraints, computeRelativePosition, computeStopsPosition, computeTermSimilarity, convertDDToDMS, createDefaultTileGrid, createDrawHoleInteractionStyle, createDrawInteractionStyle, createInteractionStyle, createMeasureInteractionStyle, createMeasureLayerStyle, createOlTooltipAtPoint, createOlTooltipDrawAtPoint, createOverlayDefaultStyle, createOverlayLayer, createOverlayLayerStyle, createOverlayMarkerStyle, ctrlKeyDown, defaultCoordinatesSearchResultFormatterFactory, defaultEpsg, defaultFieldNameGeometry, defaultIChercheSearchResultFormatterFactory, defaultMaxFeatures, defaultWfsVersion, directionsStyle, entitiesToRowData, exportToCSV, featureFromOl, featureRandomStyle, featureRandomStyleFunction, featureToOl, featureToSearchResult, featuresAreOutOfView, featuresAreTooDeepInView, findDiff, formatDistance, formatDuration, formatInstruction, formatMeasure, formatScale, formatWFSQueryString, generateArcgisRestIdFromSourceOptions, generateFeatureIdFromSourceOptions, generateId, generateIdFromSourceOptions, generateWMSIdFromSourceOptions, generateWMTSIdFromSourceOptions, generateWfsIdFromSourceOptions, generateXYZIdFromSourceOptions, getAllChildLayersByDeletion, getAllChildLayersByProperty, getCommonVectorSelectedStyle, getCommonVectorStyle, getDirectChildLayersByDeletion, getDirectChildLayersByProperty, getDirectParentLayerByDeletion, getDirectParentLayerByProperty, getFileExtension, getFormatFromOptions, getIgoLayerByLinkId, getLayersLegends, getLinkedLayersOptions, getMousePositionFromOlGeometryEvent, getOlTooltipAtCenter, getOlTooltipsAtMidpoints, getResolutionFromScale, getRootParentByDeletion, getRootParentByProperty, getRowsInMapExtent, getScaleFromResolution, getSelectedOnly, getTooltipsOfOlGeometry, gmlRegex, handleFileExportError, handleFileExportSuccess, handleFileImportError, handleFileImportSuccess, handleInvalidFileImportError, handleLayerPropertyChange, handleNothingToExportError, handleNothingToImportError, handleOgreServerImportError, handleSRSImportError, handleSizeFileImportError, handleUnreadbleFileImportError, hideOlFeature, hoverFeatureMarkerStyle, ichercheReverseSearchSourceFactory, ichercheSearchSourceFactory, ilayerSearchResultFormatterFactory, ilayerSearchSourceFactory, initLayerSyncFromRootParentLayers, initRoutesFeatureStore, initStepFeatureStore, initStopsFeatureStore, jsonRegex, layerFeatureIsQueryable, layerHasLinkDeletion, layerHasLinkWithProperty, layerIsQueryable, lonLatConversion, mapExtentStrategyActiveToolTip, measureOlGeometry, measureOlGeometryArea, measureOlGeometryLength, metersToFeet, metersToKilometers, metersToMiles, metersToUnit, moveToOlFeatures, mtmZoneFromLonLat, noElementSelected, nominatimSearchSourceFactory, ogcFilterWidgetFactory, olLayerFeatureIsQueryable, olLayerIsQueryable, olStyleToBasicIgoStyle, optionsApiFactory, osrmDirectionsSourcesFactory, pointerPositionSummaryMarkerStyle, provideCadastreSearchSource, provideCoordinatesReverseSearchSource, provideDefaultCoordinatesSearchResultFormatter, provideDefaultIChercheSearchResultFormatter, provideIChercheReverseSearchSource, provideIChercheSearchSource, provideILayerSearchResultFormatter, provideILayerSearchSource, provideNominatimSearchSource, provideOgcFilterWidget, provideOptionsApi, provideOsrmDirectionsSource, provideSearchSourceService, provideStoredQueriesReverseSearchSource, provideStoredQueriesSearchSource, provideStyleListLoader, provideStyleListOptions, provideWorkspaceSearchSource, removeStopFromStore, renderFeatureFromOl, roundCoordTo, roundCoordToString, scaleExtent, searchSourceServiceFactory, setRowsInMapExtent, setSelectedOnly, sliceOlGeometry, sliceOlLineString, sliceOlPolygon, sourceCanReverseSearch, sourceCanReverseSearchAsSummary, sourceCanSearch, squareMetersToAcres, squareMetersToHectares, squareMetersToSquareFeet, squareMetersToSquareKilometers, squareMetersToSquareMiles, squareMetersToUnit, standardizeUrl, storedqueriesReverseSearchSourceFactory, storedqueriesSearchSourceFactory, stringToLonLat, styleListFactory, translateBearing, translateModifier, tryAddLoadingStrategy, tryAddSelectionStrategy, tryBindStoreLayer, updateOlGeometryCenter, updateOlGeometryMidpoints, updateOlTooltipAtCenter, updateOlTooltipDrawAtCenter, updateOlTooltipsAtMidpoints, updateOlTooltipsDrawAtMidpoints, updateStoreSorting, utmZoneFromLonLat, viewStatesAreEqual, workspaceSearchSourceFactory, zoneMtm, zoneUtm };
|
|
46758
46894
|
//# sourceMappingURL=igo2-geo.mjs.map
|