@orbat-mapper/tactical-draw-adapter-maplibre 0.3.19 → 0.3.20

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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -3
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -201,6 +201,7 @@ function buildIconLayer(id, source) {
201
201
  "*",
202
202
  [
203
203
  "coalesce",
204
+ ["get", "iconScreenRotation"],
204
205
  ["get", "iconRotation"],
205
206
  0
206
207
  ],
@@ -1227,9 +1228,8 @@ var MapLibreAdapter = class extends BaseMapAdapter {
1227
1228
  }
1228
1229
  viewChangeEvents() {
1229
1230
  return this.viewChangeMode === "settle" ? ["moveend"] : [
1230
- "zoom",
1231
- "rotate",
1232
- "pitch",
1231
+ "move",
1232
+ "resize",
1233
1233
  "moveend"
1234
1234
  ];
1235
1235
  }
@@ -1253,6 +1253,8 @@ var MapLibreAdapter = class extends BaseMapAdapter {
1253
1253
  const onDown = (e) => {
1254
1254
  const px = [e.point.x, e.point.y];
1255
1255
  const info = {
1256
+ ctrlKey: e.originalEvent.ctrlKey,
1257
+ metaKey: e.originalEvent.metaKey,
1256
1258
  altKey: e.originalEvent.altKey,
1257
1259
  shiftKey: e.originalEvent.shiftKey,
1258
1260
  native: e.originalEvent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbat-mapper/tactical-draw-adapter-maplibre",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
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/tactical-draw": "^0.7.0",
41
- "@orbat-mapper/control-measures": "^0.23.0"
40
+ "@orbat-mapper/control-measures": "^0.24.0",
41
+ "@orbat-mapper/tactical-draw": "^0.8.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "maplibre-gl": ">=5.8.0 <7.0.0"