@igo2/context 1.9.4 → 1.11.1
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/bundles/igo2-context.umd.js +247 -136
- package/bundles/igo2-context.umd.js.map +1 -1
- package/esm2015/lib/context-manager/context-list/context-list.component.js +1 -1
- package/esm2015/lib/context-manager/shared/context.interface.js +1 -1
- package/esm2015/lib/context-manager/shared/context.service.js +10 -9
- package/esm2015/lib/share-map/share-map/share-map-url.component.js +147 -69
- package/esm2015/lib/share-map/shared/share-map.service.js +3 -3
- package/fesm2015/igo2-context.js +175 -97
- package/fesm2015/igo2-context.js.map +1 -1
- package/lib/context-manager/shared/context.interface.d.ts +7 -1
- package/lib/context-manager/shared/context.service.d.ts +2 -3
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Message } from '@igo2/core';
|
|
2
2
|
import { Tool } from '@igo2/common';
|
|
3
|
-
import { MapViewOptions, LayerOptions, MapScaleLineOptions, MapAttributionOptions } from '@igo2/geo';
|
|
3
|
+
import { MapViewOptions, LayerOptions, MapScaleLineOptions, MapAttributionOptions, MapExtent } from '@igo2/geo';
|
|
4
4
|
import { TypePermission } from './context.enum';
|
|
5
5
|
export interface Context {
|
|
6
6
|
id?: string;
|
|
@@ -32,6 +32,12 @@ export interface DetailedContext extends Context {
|
|
|
32
32
|
}
|
|
33
33
|
export interface ContextMapView extends MapViewOptions {
|
|
34
34
|
keepCurrentView?: boolean;
|
|
35
|
+
homeExtent?: ContextHomeExtent;
|
|
36
|
+
}
|
|
37
|
+
export interface ContextHomeExtent {
|
|
38
|
+
extent?: MapExtent;
|
|
39
|
+
center?: [number, number];
|
|
40
|
+
zoom?: number;
|
|
35
41
|
}
|
|
36
42
|
export interface ContextMap {
|
|
37
43
|
view: ContextMapView;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
3
3
|
import { Tool } from '@igo2/common';
|
|
4
|
-
import { ConfigService, RouteService,
|
|
4
|
+
import { ConfigService, RouteService, MessageService, LanguageService } from '@igo2/core';
|
|
5
5
|
import { AuthService } from '@igo2/auth';
|
|
6
6
|
import type { IgoMap, Layer } from '@igo2/geo';
|
|
7
7
|
import { TypePermission } from './context.enum';
|
|
@@ -23,7 +23,6 @@ export declare class ContextService {
|
|
|
23
23
|
private mapViewFromRoute;
|
|
24
24
|
private options;
|
|
25
25
|
private baseUrl;
|
|
26
|
-
private contextMessage;
|
|
27
26
|
private tools;
|
|
28
27
|
private toolbar;
|
|
29
28
|
get defaultContextUri(): string;
|
|
@@ -45,7 +44,7 @@ export declare class ContextService {
|
|
|
45
44
|
addToolAssociation(contextId: string, toolId: string): Observable<void>;
|
|
46
45
|
deleteToolAssociation(contextId: string, toolId: string): Observable<any>;
|
|
47
46
|
getPermissions(id: string): Observable<ContextPermission[]>;
|
|
48
|
-
addPermissionAssociation(contextId: string, profil: string, type: TypePermission): Observable<ContextPermission[]
|
|
47
|
+
addPermissionAssociation(contextId: string, profil: string, type: TypePermission): Observable<ContextPermission[]>;
|
|
49
48
|
deletePermissionAssociation(contextId: string, permissionId: string): Observable<void>;
|
|
50
49
|
getLocalContexts(): Observable<ContextsList>;
|
|
51
50
|
getLocalContext(uri: string): Observable<DetailedContext>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@igo2/context",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "IGO Library",
|
|
5
5
|
"author": "MSP",
|
|
6
6
|
"keywords": [
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"@angular/core": "^12.2.9",
|
|
22
22
|
"@angular/forms": "^12.2.9",
|
|
23
23
|
"@angular/material": "^12.2.9",
|
|
24
|
-
"@igo2/auth": "^1.
|
|
25
|
-
"@igo2/common": "^1.
|
|
26
|
-
"@igo2/core": "^1.
|
|
27
|
-
"@igo2/utils": "^1.
|
|
28
|
-
"@igo2/geo": "^1.
|
|
24
|
+
"@igo2/auth": "^1.11.1",
|
|
25
|
+
"@igo2/common": "^1.11.1",
|
|
26
|
+
"@igo2/core": "^1.11.1",
|
|
27
|
+
"@igo2/utils": "^1.11.1",
|
|
28
|
+
"@igo2/geo": "^1.11.1",
|
|
29
29
|
"ol": "^6.8.1",
|
|
30
30
|
"rxjs": "^6.6.7"
|
|
31
31
|
},
|