@orbat-mapper/tactical-draw-adapter-maplibre 0.2.0-alpha.4 → 0.2.0-alpha.5
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/dist/index.d.mts +1 -0
- package/dist/index.mjs +3 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -40,6 +40,7 @@ declare class MapLibreAdapter extends BaseMapAdapter<MapLibreLayerHandle, MapLib
|
|
|
40
40
|
setDoubleClickZoomEnabled(enabled: boolean): void;
|
|
41
41
|
getResolution(): number | undefined;
|
|
42
42
|
getZoom(): number | undefined;
|
|
43
|
+
getBearing(): number;
|
|
43
44
|
onPick(layerId: LayerId, handler: PickHandler, opts?: PickOptions): () => void;
|
|
44
45
|
setGlobeMode(enabled: boolean): void;
|
|
45
46
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -538,6 +538,9 @@ var MapLibreAdapter = class extends BaseMapAdapter {
|
|
|
538
538
|
getZoom() {
|
|
539
539
|
return this.map.getZoom();
|
|
540
540
|
}
|
|
541
|
+
getBearing() {
|
|
542
|
+
return this.map.getBearing() * (Math.PI / 180);
|
|
543
|
+
}
|
|
541
544
|
onPick(layerId, handler, opts) {
|
|
542
545
|
const onMlClick = (e) => {
|
|
543
546
|
const handle = this.layers.get(layerId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbat-mapper/tactical-draw-adapter-maplibre",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.5",
|
|
4
4
|
"description": "MapLibre GL JS engine adapter for @orbat-mapper/tactical-draw. Draw and edit tactical control measures (MIL-STD-2525 / APP-6) on a MapLibre map.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Orbat Mapper",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@orbat-mapper/control-measures": "^0.2.0-alpha.
|
|
41
|
-
"@orbat-mapper/tactical-draw": "^0.2.0-alpha.
|
|
40
|
+
"@orbat-mapper/control-measures": "^0.2.0-alpha.14",
|
|
41
|
+
"@orbat-mapper/tactical-draw": "^0.2.0-alpha.18"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"maplibre-gl": ">=4.0.0 <6.0.0"
|