@ndwnu/map 0.0.1-beta.2 → 0.0.1-beta.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/fesm2022/ndwnu-map.mjs +8 -8
- package/fesm2022/ndwnu-map.mjs.map +1 -1
- package/index.d.ts +260 -8
- package/package.json +3 -3
- package/lib/map/map-config.interface.d.ts +0 -34
- package/lib/map/map-constants.d.ts +0 -3
- package/lib/map/map-element.d.ts +0 -25
- package/lib/map/map-element.repository.d.ts +0 -101
- package/lib/map/map-layer.d.ts +0 -6722
- package/lib/map/map-source.d.ts +0 -21
- package/lib/map/map.component.d.ts +0 -19
- package/lib/map/maplibre-cursor.service.d.ts +0 -38
package/lib/map/map-source.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FeatureCollection } from 'geojson';
|
|
2
|
-
import { SourceSpecification } from 'maplibre-gl';
|
|
3
|
-
import { Observable, Subject } from 'rxjs';
|
|
4
|
-
import { MapLayer } from './map-layer';
|
|
5
|
-
import { MapElementConfig } from './map-element';
|
|
6
|
-
export declare abstract class MapSource<TElementType> {
|
|
7
|
-
#private;
|
|
8
|
-
readonly id: string;
|
|
9
|
-
protected readonly config: MapElementConfig<TElementType>;
|
|
10
|
-
layers: MapLayer<TElementType>[];
|
|
11
|
-
protected unsubscribe: Subject<void>;
|
|
12
|
-
constructor(id: string, config: MapElementConfig<TElementType>);
|
|
13
|
-
onInit(): void;
|
|
14
|
-
onDestroy(): void;
|
|
15
|
-
get featureCollection$(): Observable<FeatureCollection> | undefined;
|
|
16
|
-
set featureCollection$(value: Observable<FeatureCollection> | undefined);
|
|
17
|
-
get isInitialized(): boolean;
|
|
18
|
-
set isInitialized(value: boolean);
|
|
19
|
-
setVisible(visible: boolean): void;
|
|
20
|
-
protected abstract getSpecification(): Partial<SourceSpecification>;
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { AnimationOptions, Map } from 'maplibre-gl';
|
|
3
|
-
import { MapConfig } from './map-config.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class MapComponent implements AfterViewInit, OnDestroy {
|
|
6
|
-
#private;
|
|
7
|
-
mapContainer: import("@angular/core").Signal<ElementRef<any>>;
|
|
8
|
-
config: import("@angular/core").InputSignal<Partial<MapConfig>>;
|
|
9
|
-
map: Map;
|
|
10
|
-
ngAfterViewInit(): void;
|
|
11
|
-
ngOnDestroy(): void;
|
|
12
|
-
resizeMap(): void;
|
|
13
|
-
zoomToLevel(zoomLevel: number, options?: AnimationOptions): void;
|
|
14
|
-
protected abstract onLoadMap(): void;
|
|
15
|
-
protected abstract onRemoveMap(): void;
|
|
16
|
-
protected abstract onIdle(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapComponent, "ng-component", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Map } from 'maplibre-gl';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Service for managing MapLibre map cursor interactions.
|
|
5
|
-
*
|
|
6
|
-
* Maplibre has no automatic cursor handling for layers, so when you add a clickHandler
|
|
7
|
-
* to a layer, the user can click on it, but the cursor will not change to a pointer.
|
|
8
|
-
* This service provides methods to set the cursor to pointer when hovering over a layer,
|
|
9
|
-
* and to enable crosshair mode which takes precedence over all other cursor types.
|
|
10
|
-
*/
|
|
11
|
-
export declare class MaplibreCursorService {
|
|
12
|
-
#private;
|
|
13
|
-
/**
|
|
14
|
-
* Sets up mouse cursor handling for a map layer.
|
|
15
|
-
* Changes cursor to pointer when mouse enters the layer and resets when leaving.
|
|
16
|
-
*
|
|
17
|
-
* @param map - The MapLibre map instance
|
|
18
|
-
* @param layerId - ID of the layer to apply cursor behavior to
|
|
19
|
-
*/
|
|
20
|
-
setMouseCursor(map: Map, layerId: string): void;
|
|
21
|
-
/**
|
|
22
|
-
* Enables or disables crosshair cursor mode for the map.
|
|
23
|
-
* When enabled, crosshair cursor will take precedence over all other cursor types.
|
|
24
|
-
*
|
|
25
|
-
* @param value - True to enable crosshair mode, false to disable
|
|
26
|
-
* @param map - The MapLibre map instance to apply the cursor to
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* Enables or disables crosshair cursor mode for the map.
|
|
30
|
-
* When enabled, crosshair cursor will take precedence over all other cursor types.
|
|
31
|
-
*
|
|
32
|
-
* @param value - True to enable crosshair mode, false to disable
|
|
33
|
-
* @param map - The MapLibre map instance to apply the cursor to
|
|
34
|
-
*/
|
|
35
|
-
setCrosshairMode(value: boolean, map: Map): void;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaplibreCursorService, never>;
|
|
37
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MaplibreCursorService>;
|
|
38
|
-
}
|