@vcmap/ui 5.1.3 → 5.1.4

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 (37) hide show
  1. package/dist/assets/cesium.js +1 -1
  2. package/dist/assets/{core.c815b8.js → core.8b769f.js} +2457 -2441
  3. package/dist/assets/core.js +1 -1
  4. package/dist/assets/index-97b02a80.js +1 -0
  5. package/dist/assets/ol.js +1 -1
  6. package/dist/assets/{ui.f85ce1.css → ui.576b59.css} +1 -1
  7. package/dist/assets/{ui.f85ce1.js → ui.576b59.js} +2363 -2314
  8. package/dist/assets/ui.js +1 -1
  9. package/dist/assets/vue.js +2 -2
  10. package/dist/assets/{vuetify.bf2ba1.js → vuetify.515b3c.js} +1 -1
  11. package/dist/assets/vuetify.js +2 -2
  12. package/dist/index.html +1 -1
  13. package/package.json +2 -2
  14. package/src/actions/listActions.d.ts +2 -1
  15. package/src/actions/listActions.js +3 -1
  16. package/src/components/icons/+all.js +8 -0
  17. package/src/components/icons/2DPointIcon.vue +22 -0
  18. package/src/components/icons/2DPointIcon.vue.d.ts +2 -0
  19. package/src/components/icons/3DPointIcon.vue +22 -0
  20. package/src/components/icons/3DPointIcon.vue.d.ts +2 -0
  21. package/src/components/icons/AxisIcon.vue +10 -15
  22. package/src/components/icons/PointMeasurementIcon.vue +7 -17
  23. package/src/featureInfo/abstractFeatureInfoView.d.ts +8 -0
  24. package/src/featureInfo/abstractFeatureInfoView.js +20 -1
  25. package/src/manager/collectionManager/collectionComponentClass.d.ts +14 -4
  26. package/src/manager/collectionManager/collectionComponentClass.js +40 -22
  27. package/src/manager/collectionManager/editorCollectionComponentClass.d.ts +7 -1
  28. package/src/manager/collectionManager/editorCollectionComponentClass.js +7 -2
  29. package/src/manager/contextMenu/contextMenuManager.d.ts +11 -0
  30. package/src/manager/contextMenu/contextMenuManager.js +22 -1
  31. package/src/navigation/MapNavigation.vue +7 -4
  32. package/src/navigation/overviewMap.js +24 -19
  33. package/dist/assets/index-0abd9815.js +0 -1
  34. /package/dist/assets/{cesium.012009.js → cesium.88a354.js} +0 -0
  35. /package/dist/assets/{ol.fbe9a4.js → ol.98520e.js} +0 -0
  36. /package/dist/assets/{vue.65726b.js → vue.e13c02.js} +0 -0
  37. /package/dist/assets/{vuetify.bf2ba1.css → vuetify.515b3c.css} +0 -0
@@ -11,6 +11,7 @@ import {
11
11
  Extent,
12
12
  Viewpoint,
13
13
  deserializeLayer,
14
+ maxZIndex,
14
15
  } from '@vcmap/core';
15
16
  import Point from 'ol/geom/Point.js';
16
17
  import Feature from 'ol/Feature.js';
@@ -454,23 +455,25 @@ class OverviewMap {
454
455
  * @private
455
456
  */
456
457
  _obliqueImageChange(image) {
457
- const { source } = this._obliqueImageLayer;
458
- if (this._obliqueViewDirection !== image.viewDirection) {
459
- this._obliqueViewDirection = image.viewDirection;
460
- source.changed();
461
- }
462
- const activeFeature = source.getFeatureById(image.name);
463
- if (activeFeature) {
464
- this._obliqueSelectedImageLayer.removeAllFeatures();
465
- this._obliqueSelectedImageLayer.addFeatures([activeFeature]);
466
- const extent = new Extent({
467
- coordinates: activeFeature.getGeometry().getExtent(),
468
- projection: mercatorProjection.toJSON(),
469
- });
470
-
471
- const vp = Viewpoint.createViewpointFromExtent(extent);
472
- vp.distance /= this._obliqueResolutionFactor;
473
- this._map.gotoViewpoint(vp);
458
+ if (image) {
459
+ const { source } = this._obliqueImageLayer;
460
+ if (this._obliqueViewDirection !== image.viewDirection) {
461
+ this._obliqueViewDirection = image.viewDirection;
462
+ source.changed();
463
+ }
464
+ const activeFeature = source.getFeatureById(image.name);
465
+ if (activeFeature) {
466
+ this._obliqueSelectedImageLayer.removeAllFeatures();
467
+ this._obliqueSelectedImageLayer.addFeatures([activeFeature]);
468
+ const extent = new Extent({
469
+ coordinates: activeFeature.getGeometry().getExtent(),
470
+ projection: mercatorProjection.toJSON(),
471
+ });
472
+
473
+ const vp = Viewpoint.createViewpointFromExtent(extent);
474
+ vp.distance /= this._obliqueResolutionFactor;
475
+ this._map.gotoViewpoint(vp);
476
+ }
474
477
  }
475
478
  }
476
479
 
@@ -492,7 +495,7 @@ class OverviewMap {
492
495
  this._obliqueTileLayer = new VectorLayer({
493
496
  projection: mercatorProjection.toJSON(),
494
497
  style: obliqueTileStyle,
495
- zIndex: 1,
498
+ zIndex: maxZIndex - 3,
496
499
  });
497
500
  this._obliqueTileLayer[overviewMapLayerSymbol] = true;
498
501
 
@@ -507,11 +510,13 @@ class OverviewMap {
507
510
  this._obliqueImageLayer = new VectorLayer({
508
511
  projection: mercatorProjection.toJSON(),
509
512
  style: obliqueImageStyle,
513
+ zIndex: maxZIndex - 2,
510
514
  });
511
515
  this._obliqueImageLayer[overviewMapLayerSymbol] = true;
512
516
  this._obliqueSelectedImageLayer = new VectorLayer({
513
517
  projection: mercatorProjection.toJSON(),
514
518
  style: this.obliqueSelectedStyle,
519
+ zIndex: maxZIndex - 1,
515
520
  });
516
521
  this._obliqueSelectedImageLayer[overviewMapLayerSymbol] = true;
517
522
  this._map.layerCollection.add(this._obliqueImageLayer);
@@ -539,7 +544,7 @@ class OverviewMap {
539
544
  if (!this._cameraIconLayer) {
540
545
  this._cameraIconLayer = new VectorLayer({
541
546
  projection: mercatorProjection.toJSON(),
542
- zIndex: 50,
547
+ zIndex: maxZIndex,
543
548
  });
544
549
  this._cameraIconLayer[overviewMapLayerSymbol] = true;
545
550
  this._map.layerCollection.add(this._cameraIconLayer);
@@ -1 +0,0 @@
1
- import{initAppFromAppConfig as p}from"./ui.f85ce1.js";p("#app","app.config.json");
File without changes
File without changes