@panoramax/web-viewer 5.2.0-develop-686c571e → 5.2.0-develop-872eba2b

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 (64) hide show
  1. package/build/cjs/index.js +2 -2
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index_photoviewer.js +1 -1
  4. package/build/cjs/index_photoviewer.js.map +1 -1
  5. package/build/esm/components/core/Basic.js +1 -1
  6. package/build/esm/components/core/Editor.css +9 -0
  7. package/build/esm/components/core/Editor.js +4 -1
  8. package/build/fonts/atkinson-hyperlegible-next-latin-200-italic.woff +0 -0
  9. package/build/fonts/atkinson-hyperlegible-next-latin-200-italic.woff2 +0 -0
  10. package/build/fonts/atkinson-hyperlegible-next-latin-200-normal.woff +0 -0
  11. package/build/fonts/atkinson-hyperlegible-next-latin-200-normal.woff2 +0 -0
  12. package/build/fonts/atkinson-hyperlegible-next-latin-300-italic.woff +0 -0
  13. package/build/fonts/atkinson-hyperlegible-next-latin-300-italic.woff2 +0 -0
  14. package/build/fonts/atkinson-hyperlegible-next-latin-300-normal.woff +0 -0
  15. package/build/fonts/atkinson-hyperlegible-next-latin-300-normal.woff2 +0 -0
  16. package/build/fonts/atkinson-hyperlegible-next-latin-400-italic.woff +0 -0
  17. package/build/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2 +0 -0
  18. package/build/fonts/atkinson-hyperlegible-next-latin-400-normal.woff +0 -0
  19. package/build/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2 +0 -0
  20. package/build/fonts/atkinson-hyperlegible-next-latin-500-italic.woff +0 -0
  21. package/build/fonts/atkinson-hyperlegible-next-latin-500-italic.woff2 +0 -0
  22. package/build/fonts/atkinson-hyperlegible-next-latin-500-normal.woff +0 -0
  23. package/build/fonts/atkinson-hyperlegible-next-latin-500-normal.woff2 +0 -0
  24. package/build/fonts/atkinson-hyperlegible-next-latin-600-italic.woff +0 -0
  25. package/build/fonts/atkinson-hyperlegible-next-latin-600-italic.woff2 +0 -0
  26. package/build/fonts/atkinson-hyperlegible-next-latin-600-normal.woff +0 -0
  27. package/build/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2 +0 -0
  28. package/build/fonts/atkinson-hyperlegible-next-latin-700-italic.woff +0 -0
  29. package/build/fonts/atkinson-hyperlegible-next-latin-700-italic.woff2 +0 -0
  30. package/build/fonts/atkinson-hyperlegible-next-latin-700-normal.woff +0 -0
  31. package/build/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2 +0 -0
  32. package/build/fonts/atkinson-hyperlegible-next-latin-800-italic.woff +0 -0
  33. package/build/fonts/atkinson-hyperlegible-next-latin-800-italic.woff2 +0 -0
  34. package/build/fonts/atkinson-hyperlegible-next-latin-800-normal.woff +0 -0
  35. package/build/fonts/atkinson-hyperlegible-next-latin-800-normal.woff2 +0 -0
  36. package/build/fonts/atkinson-hyperlegible-next-latin-ext-200-italic.woff +0 -0
  37. package/build/fonts/atkinson-hyperlegible-next-latin-ext-200-italic.woff2 +0 -0
  38. package/build/fonts/atkinson-hyperlegible-next-latin-ext-200-normal.woff +0 -0
  39. package/build/fonts/atkinson-hyperlegible-next-latin-ext-200-normal.woff2 +0 -0
  40. package/build/fonts/atkinson-hyperlegible-next-latin-ext-300-italic.woff +0 -0
  41. package/build/fonts/atkinson-hyperlegible-next-latin-ext-300-italic.woff2 +0 -0
  42. package/build/fonts/atkinson-hyperlegible-next-latin-ext-300-normal.woff +0 -0
  43. package/build/fonts/atkinson-hyperlegible-next-latin-ext-300-normal.woff2 +0 -0
  44. package/build/fonts/atkinson-hyperlegible-next-latin-ext-400-italic.woff +0 -0
  45. package/build/fonts/atkinson-hyperlegible-next-latin-ext-400-italic.woff2 +0 -0
  46. package/build/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff +0 -0
  47. package/build/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2 +0 -0
  48. package/build/fonts/atkinson-hyperlegible-next-latin-ext-500-italic.woff +0 -0
  49. package/build/fonts/atkinson-hyperlegible-next-latin-ext-500-italic.woff2 +0 -0
  50. package/build/fonts/atkinson-hyperlegible-next-latin-ext-500-normal.woff +0 -0
  51. package/build/fonts/atkinson-hyperlegible-next-latin-ext-500-normal.woff2 +0 -0
  52. package/build/fonts/atkinson-hyperlegible-next-latin-ext-600-italic.woff +0 -0
  53. package/build/fonts/atkinson-hyperlegible-next-latin-ext-600-italic.woff2 +0 -0
  54. package/build/fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff +0 -0
  55. package/build/fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2 +0 -0
  56. package/build/fonts/atkinson-hyperlegible-next-latin-ext-700-italic.woff +0 -0
  57. package/build/fonts/atkinson-hyperlegible-next-latin-ext-700-italic.woff2 +0 -0
  58. package/build/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff +0 -0
  59. package/build/fonts/atkinson-hyperlegible-next-latin-ext-700-normal.woff2 +0 -0
  60. package/build/fonts/atkinson-hyperlegible-next-latin-ext-800-italic.woff +0 -0
  61. package/build/fonts/atkinson-hyperlegible-next-latin-ext-800-italic.woff2 +0 -0
  62. package/build/fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff +0 -0
  63. package/build/fonts/atkinson-hyperlegible-next-latin-ext-800-normal.woff2 +0 -0
  64. package/package.json +1 -1
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
9
9
  document.adoptedStyleSheets.push(AtkinsonStyles);
10
10
  document.adoptedStyleSheets.push(BasicStyles);
11
11
 
12
- const __COMMIT_HASH__ = "686c571";
12
+ const __COMMIT_HASH__ = "872eba2";
13
13
  const __PACKAGE_VERSION__ = "5.2.0";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -8,6 +8,7 @@ pnx-editor {
8
8
  pnx-editor .pnx-map,
9
9
  pnx-editor .pnx-psv {
10
10
  height: 50%;
11
+ position: relative;
11
12
  }
12
13
 
13
14
  /* Map background widget */
@@ -30,4 +31,12 @@ pnx-editor pnx-widget-player {
30
31
  }
31
32
  pnx-editor pnx-widget-player #pnx-player-play {
32
33
  display: none;
34
+ }
35
+
36
+ /* Map scale */
37
+ pnx-editor .maplibregl-ctrl-scale {
38
+ position: absolute;
39
+ bottom: 75px;
40
+ left: 0;
41
+ float: unset;
33
42
  }
@@ -68,11 +68,13 @@ export default class Editor extends Basic {
68
68
  * @property {string} [lang] To override language used for labels. Defaults to using user's preferred languages.
69
69
  * @property {object} [raster] The MapLibre raster source for aerial background. This must be a JSON object following [MapLibre raster source definition](https://maplibre.org/maplibre-style-spec/sources/#raster).
70
70
  * @property {string} [background=streets] Choose default map background to display (streets or aerial, if raster aerial background available). Defaults to street.
71
+ * @property {boolean} [allow-drag-picture] Set this to allow moving the picture marker (defaults to false)
71
72
  */
72
73
  static properties = {
73
74
  raster: {converter: Basic.GetJSONConverter()},
74
75
  background: {type: String},
75
76
  "map-style": {type: String},
77
+ "allow-drag-picture": {type: Boolean},
76
78
  ...Basic.properties
77
79
  };
78
80
 
@@ -81,6 +83,7 @@ export default class Editor extends Basic {
81
83
 
82
84
  this.raster = null;
83
85
  this.background = "streets";
86
+ this["allow-drag-picture"] = false;
84
87
  this["map-style"] = this.getAttribute("map-style") || MapTiles();
85
88
 
86
89
  // Check if mapstyle is not a unparsed JSON
@@ -185,7 +188,7 @@ export default class Editor extends Basic {
185
188
  this.map = new Map(this, this._mapContainer, {
186
189
  background: this.background,
187
190
  zoom: 15, // Hack to avoid _initMapPosition call
188
- picMarkerDraggable: true,
191
+ picMarkerDraggable: this["allow-drag-picture"],
189
192
  });
190
193
  linkMapAndPhoto(this);
191
194
  this.loader.setAttribute("value", 50);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.2.0-develop-686c571e",
3
+ "version": "5.2.0-develop-872eba2b",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",