@tic-nova/ngx-mapbox-gl 14.0.0
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 +3 -0
- package/esm2022/index.js +32 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/lib/control/attribution-control.directive.js +39 -0
- package/esm2022/lib/control/attribution-control.directive.js.map +1 -0
- package/esm2022/lib/control/control.component.js +62 -0
- package/esm2022/lib/control/control.component.js.map +1 -0
- package/esm2022/lib/control/fullscreen-control.directive.js +39 -0
- package/esm2022/lib/control/fullscreen-control.directive.js.map +1 -0
- package/esm2022/lib/control/geolocate-control.directive.js +52 -0
- package/esm2022/lib/control/geolocate-control.directive.js.map +1 -0
- package/esm2022/lib/control/navigation-control.directive.js +39 -0
- package/esm2022/lib/control/navigation-control.directive.js.map +1 -0
- package/esm2022/lib/control/scale-control.directive.js +45 -0
- package/esm2022/lib/control/scale-control.directive.js.map +1 -0
- package/esm2022/lib/draggable/draggable.directive.js +121 -0
- package/esm2022/lib/draggable/draggable.directive.js.map +1 -0
- package/esm2022/lib/image/image.component.js +79 -0
- package/esm2022/lib/image/image.component.js.map +1 -0
- package/esm2022/lib/layer/layer.component.js +139 -0
- package/esm2022/lib/layer/layer.component.js.map +1 -0
- package/esm2022/lib/map/map.component.js +381 -0
- package/esm2022/lib/map/map.component.js.map +1 -0
- package/esm2022/lib/map/map.service.js +725 -0
- package/esm2022/lib/map/map.service.js.map +1 -0
- package/esm2022/lib/map/map.types.js +30 -0
- package/esm2022/lib/map/map.types.js.map +1 -0
- package/esm2022/lib/marker/marker.component.js +114 -0
- package/esm2022/lib/marker/marker.component.js.map +1 -0
- package/esm2022/lib/markers-for-clusters/markers-for-clusters.component.js +168 -0
- package/esm2022/lib/markers-for-clusters/markers-for-clusters.component.js.map +1 -0
- package/esm2022/lib/popup/popup.component.js +124 -0
- package/esm2022/lib/popup/popup.component.js.map +1 -0
- package/esm2022/lib/provide-mapbox-gl.js +8 -0
- package/esm2022/lib/provide-mapbox-gl.js.map +1 -0
- package/esm2022/lib/source/canvas-source.component.js +74 -0
- package/esm2022/lib/source/canvas-source.component.js.map +1 -0
- package/esm2022/lib/source/geojson/feature.component.js +42 -0
- package/esm2022/lib/source/geojson/feature.component.js.map +1 -0
- package/esm2022/lib/source/geojson/geojson-source.component.js +204 -0
- package/esm2022/lib/source/geojson/geojson-source.component.js.map +1 -0
- package/esm2022/lib/source/image-source.component.js +58 -0
- package/esm2022/lib/source/image-source.component.js.map +1 -0
- package/esm2022/lib/source/raster-dem-source.component.js +91 -0
- package/esm2022/lib/source/raster-dem-source.component.js.map +1 -0
- package/esm2022/lib/source/raster-source.component.js +85 -0
- package/esm2022/lib/source/raster-source.component.js.map +1 -0
- package/esm2022/lib/source/vector-source.component.js +99 -0
- package/esm2022/lib/source/vector-source.component.js.map +1 -0
- package/esm2022/lib/source/video-source.component.js +80 -0
- package/esm2022/lib/source/video-source.component.js.map +1 -0
- package/esm2022/ngx-mapbox-gl.js +5 -0
- package/esm2022/ngx-mapbox-gl.js.map +1 -0
- package/index.d.ts +24 -0
- package/lib/control/attribution-control.directive.d.ts +11 -0
- package/lib/control/control.component.d.ts +21 -0
- package/lib/control/fullscreen-control.directive.d.ts +11 -0
- package/lib/control/geolocate-control.directive.d.ts +15 -0
- package/lib/control/navigation-control.directive.d.ts +11 -0
- package/lib/control/scale-control.directive.d.ts +12 -0
- package/lib/draggable/draggable.directive.d.ts +20 -0
- package/lib/image/image.component.d.ts +34 -0
- package/lib/layer/layer.component.d.ts +422 -0
- package/lib/map/map.component.d.ts +185 -0
- package/lib/map/map.service.d.ts +123 -0
- package/lib/map/map.types.d.ts +72 -0
- package/lib/marker/marker.component.d.ts +31 -0
- package/lib/markers-for-clusters/markers-for-clusters.component.d.ts +28 -0
- package/lib/popup/popup.component.d.ts +33 -0
- package/lib/provide-mapbox-gl.d.ts +6 -0
- package/lib/source/canvas-source.component.d.ts +23 -0
- package/lib/source/geojson/feature.component.d.ts +16 -0
- package/lib/source/geojson/geojson-source.component.d.ts +63 -0
- package/lib/source/image-source.component.d.ts +22 -0
- package/lib/source/raster-dem-source.component.d.ts +23 -0
- package/lib/source/raster-source.component.d.ts +23 -0
- package/lib/source/vector-source.component.d.ts +24 -0
- package/lib/source/video-source.component.d.ts +24 -0
- package/ngx-mapbox-gl.d.ts +5 -0
- package/package.json +44 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RasterDemSourceComponent implements OnInit, OnDestroy, OnChanges {
|
|
4
|
+
private mapService;
|
|
5
|
+
id: import("@angular/core").InputSignal<string>;
|
|
6
|
+
url: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
tiles: import("@angular/core").InputSignal<string[] | undefined>;
|
|
8
|
+
bounds: import("@angular/core").InputSignal<[number, number, number, number] | undefined>;
|
|
9
|
+
minzoom: import("@angular/core").InputSignal<number | undefined>;
|
|
10
|
+
maxzoom: import("@angular/core").InputSignal<number | undefined>;
|
|
11
|
+
tileSize: import("@angular/core").InputSignal<number | undefined>;
|
|
12
|
+
attribution: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
encoding: import("@angular/core").InputSignal<"terrarium" | "mapbox" | undefined>;
|
|
14
|
+
volatile: import("@angular/core").InputSignal<boolean | undefined>;
|
|
15
|
+
private sourceAdded;
|
|
16
|
+
private sub;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
private init;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RasterDemSourceComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RasterDemSourceComponent, "mgl-raster-dem-source", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "tiles": { "alias": "tiles"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": false; "isSignal": true; }; "minzoom": { "alias": "minzoom"; "required": false; "isSignal": true; }; "maxzoom": { "alias": "maxzoom"; "required": false; "isSignal": true; }; "tileSize": { "alias": "tileSize"; "required": false; "isSignal": true; }; "attribution": { "alias": "attribution"; "required": false; "isSignal": true; }; "encoding": { "alias": "encoding"; "required": false; "isSignal": true; }; "volatile": { "alias": "volatile"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RasterSourceComponent implements OnInit, OnDestroy, OnChanges {
|
|
4
|
+
private mapService;
|
|
5
|
+
id: import("@angular/core").InputSignal<string>;
|
|
6
|
+
url: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
tiles: import("@angular/core").InputSignal<string[] | undefined>;
|
|
8
|
+
bounds: import("@angular/core").InputSignal<[number, number, number, number] | undefined>;
|
|
9
|
+
minzoom: import("@angular/core").InputSignal<number | undefined>;
|
|
10
|
+
maxzoom: import("@angular/core").InputSignal<number | undefined>;
|
|
11
|
+
tileSize: import("@angular/core").InputSignal<number | undefined>;
|
|
12
|
+
scheme: import("@angular/core").InputSignal<"xyz" | "tms" | undefined>;
|
|
13
|
+
attribution: import("@angular/core").InputSignal<string | undefined>;
|
|
14
|
+
volatile: import("@angular/core").InputSignal<boolean | undefined>;
|
|
15
|
+
private sourceAdded;
|
|
16
|
+
private sub;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
private init;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RasterSourceComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RasterSourceComponent, "mgl-raster-source", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "tiles": { "alias": "tiles"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": false; "isSignal": true; }; "minzoom": { "alias": "minzoom"; "required": false; "isSignal": true; }; "maxzoom": { "alias": "maxzoom"; "required": false; "isSignal": true; }; "tileSize": { "alias": "tileSize"; "required": false; "isSignal": true; }; "scheme": { "alias": "scheme"; "required": false; "isSignal": true; }; "attribution": { "alias": "attribution"; "required": false; "isSignal": true; }; "volatile": { "alias": "volatile"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class VectorSourceComponent implements OnInit, OnDestroy, OnChanges {
|
|
4
|
+
private mapService;
|
|
5
|
+
id: import("@angular/core").InputSignal<string>;
|
|
6
|
+
url: import("@angular/core").InputSignal<string | undefined>;
|
|
7
|
+
tiles: import("@angular/core").InputSignal<string[] | undefined>;
|
|
8
|
+
bounds: import("@angular/core").InputSignal<[number, number, number, number] | undefined>;
|
|
9
|
+
scheme: import("@angular/core").InputSignal<"xyz" | "tms" | undefined>;
|
|
10
|
+
minzoom: import("@angular/core").InputSignal<number | undefined>;
|
|
11
|
+
maxzoom: import("@angular/core").InputSignal<number | undefined>;
|
|
12
|
+
attribution: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
promoteId: import("@angular/core").InputSignal<import("mapbox-gl").PromoteIdSpecification | undefined>;
|
|
14
|
+
volatile: import("@angular/core").InputSignal<boolean | undefined>;
|
|
15
|
+
private sourceAdded;
|
|
16
|
+
private sub;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
reload(): void;
|
|
21
|
+
private init;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VectorSourceComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VectorSourceComponent, "mgl-vector-source", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "tiles": { "alias": "tiles"; "required": false; "isSignal": true; }; "bounds": { "alias": "bounds"; "required": false; "isSignal": true; }; "scheme": { "alias": "scheme"; "required": false; "isSignal": true; }; "minzoom": { "alias": "minzoom"; "required": false; "isSignal": true; }; "maxzoom": { "alias": "maxzoom"; "required": false; "isSignal": true; }; "attribution": { "alias": "attribution"; "required": false; "isSignal": true; }; "promoteId": { "alias": "promoteId"; "required": false; "isSignal": true; }; "volatile": { "alias": "volatile"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges, type InputSignal } from '@angular/core';
|
|
2
|
+
import type { VideoSourceSpecification } from 'mapbox-gl';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
type VideoSourceInputs = {
|
|
5
|
+
[K in keyof Omit<VideoSourceSpecification, 'type'>]: InputSignal<Omit<VideoSourceSpecification, 'type'>[K]>;
|
|
6
|
+
};
|
|
7
|
+
export declare class VideoSourceComponent implements OnInit, OnDestroy, OnChanges, VideoSourceInputs {
|
|
8
|
+
private mapService;
|
|
9
|
+
id: InputSignal<string>;
|
|
10
|
+
urls: InputSignal<string[]>;
|
|
11
|
+
coordinates: InputSignal<[[number, number], [number, number], [number, number], [number, number]]>;
|
|
12
|
+
private sourceAdded;
|
|
13
|
+
private sub;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
pause(): void;
|
|
18
|
+
play(): void;
|
|
19
|
+
getVideo(): HTMLVideoElement | undefined;
|
|
20
|
+
private init;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VideoSourceComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VideoSourceComponent, "mgl-video-source", never, { "id": { "alias": "id"; "required": true; "isSignal": true; }; "urls": { "alias": "urls"; "required": true; "isSignal": true; }; "coordinates": { "alias": "coordinates"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tic-nova/ngx-mapbox-gl",
|
|
3
|
+
"version": "14.0.0",
|
|
4
|
+
"description": "A Angular binding of mapbox-gl-js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/Wykks/ngx-mapbox-gl.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"mapbox",
|
|
12
|
+
"angular",
|
|
13
|
+
"map",
|
|
14
|
+
"webgl",
|
|
15
|
+
"mapbox-gl",
|
|
16
|
+
"ngx"
|
|
17
|
+
],
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/Wykks/ngx-mapbox-gl/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/Wykks/ngx-mapbox-gl#readme",
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@angular/core": "21.0.6",
|
|
24
|
+
"@angular/common": "21.0.6",
|
|
25
|
+
"mapbox-gl": "^3.5.0",
|
|
26
|
+
"rxjs": "^7.8.0",
|
|
27
|
+
"@types/geojson": "7946.0.16"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"module": "esm2022/ngx-mapbox-gl.js",
|
|
31
|
+
"typings": "ngx-mapbox-gl.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
"./package.json": {
|
|
34
|
+
"default": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./ngx-mapbox-gl.d.ts",
|
|
38
|
+
"default": "./esm2022/ngx-mapbox-gl.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"tslib": "^2.3.0"
|
|
43
|
+
}
|
|
44
|
+
}
|