aur-openlayers 1.0.3 → 19.6.3
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/README.md +63 -63
- package/fesm2022/aur-openlayers.mjs +99 -40
- package/fesm2022/aur-openlayers.mjs.map +1 -1
- package/lib/map-framework/public/types.d.ts +9 -0
- package/lib/map-framework/runtime/fit-layer.utils.d.ts +2 -1
- package/lib/map-framework/runtime/interaction-manager.d.ts +1 -0
- package/lib/map-framework/runtime/layer-manager.d.ts +3 -0
- package/lib/map-framework/runtime/scheduler.d.ts +1 -0
- package/lib/map-framework/runtime/vector-layer-base.d.ts +1 -0
- package/package.json +5 -1
|
@@ -363,6 +363,11 @@ export type VectorLayerApi<M, G extends Geometry> = VectorLayerCollectionApi<M>
|
|
|
363
363
|
* Сбросить состояния стиля у фич к состоянию по умолчанию.
|
|
364
364
|
*/
|
|
365
365
|
clearFeatureStates: (ids: Id | ReadonlyArray<Id>) => void;
|
|
366
|
+
/**
|
|
367
|
+
* Возвращает extent всех фич базового источника (без кластеризации).
|
|
368
|
+
* Возвращает null, если фич нет.
|
|
369
|
+
*/
|
|
370
|
+
getExtent: () => import('ol/extent').Extent | null;
|
|
366
371
|
};
|
|
367
372
|
/**
|
|
368
373
|
* Источник появления popup-элемента.
|
|
@@ -432,6 +437,10 @@ export type MapContext = {
|
|
|
432
437
|
* Батчинг для группировки mutate/invalidate.
|
|
433
438
|
*/
|
|
434
439
|
batch: (fn: () => void, options?: BatchOptions) => void;
|
|
440
|
+
/** Центрирует карту на всех видимых слоях. No-op если нет фич. */
|
|
441
|
+
centerOnAllLayers: (opts?: ViewFitOptions) => void;
|
|
442
|
+
/** Центрирует карту на указанных слоях (скрытые пропускаются). No-op если нет фич. */
|
|
443
|
+
centerOnLayers: (layerIds: ReadonlyArray<string>, opts?: ViewFitOptions) => void;
|
|
435
444
|
};
|
|
436
445
|
/**
|
|
437
446
|
* Контроллер, который связывается с контекстом карты.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { ViewFitOptions, ViewFitPadding } from '../public/types';
|
|
1
|
+
import type { VectorLayerApi, ViewFitOptions, ViewFitPadding } from '../public/types';
|
|
2
2
|
export declare function toOlPadding(p?: ViewFitPadding, fallback?: [number, number, number, number] | undefined): [number, number, number, number] | undefined;
|
|
3
3
|
export declare function toOlFitOptions(opts?: ViewFitOptions): any;
|
|
4
|
+
export declare function collectLayersExtent(layers: Record<string, VectorLayerApi<any, any>>, layerIds?: ReadonlyArray<string>): import('ol/extent').Extent | null;
|
|
@@ -6,6 +6,8 @@ export declare class LayerManager<Layers extends readonly VectorLayerDescriptor<
|
|
|
6
6
|
private readonly layers;
|
|
7
7
|
private readonly apis;
|
|
8
8
|
private readonly interactions;
|
|
9
|
+
private readonly scheduler;
|
|
10
|
+
private readonly popupHost;
|
|
9
11
|
private readonly ctx;
|
|
10
12
|
private constructor();
|
|
11
13
|
static create<Layers extends readonly VectorLayerDescriptor<any, any, any, any>[]>(map: OlMap, schema: MapSchema<Layers>): LayerManager<Layers>;
|
|
@@ -14,4 +16,5 @@ export declare class LayerManager<Layers extends readonly VectorLayerDescriptor<
|
|
|
14
16
|
getApis(): Record<string, VectorLayerApi<any, any>>;
|
|
15
17
|
getContext(): MapContext;
|
|
16
18
|
refreshEnabled(): void;
|
|
19
|
+
dispose(): void;
|
|
17
20
|
}
|
|
@@ -44,6 +44,7 @@ export declare abstract class VectorLayerBase<M, G extends Geometry, OPTS extend
|
|
|
44
44
|
* Missing ids are ignored. No-op if none found.
|
|
45
45
|
*/
|
|
46
46
|
centerOnModels(ids: ReadonlyArray<string | number>, opts?: ViewFitOptions): void;
|
|
47
|
+
getExtent(): import('ol/extent').Extent | null;
|
|
47
48
|
setVisible(visible: boolean): void;
|
|
48
49
|
isVisible(): boolean;
|
|
49
50
|
setOpacity(opacity: number): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aur-openlayers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.6.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.0",
|
|
6
6
|
"@angular/core": "^19.2.0",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"tslib": "^2.3.0"
|
|
11
11
|
},
|
|
12
12
|
"sideEffects": false,
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/NikolayNN/aur-openlayers"
|
|
16
|
+
},
|
|
13
17
|
"module": "fesm2022/aur-openlayers.mjs",
|
|
14
18
|
"typings": "index.d.ts",
|
|
15
19
|
"exports": {
|