@vcmap/core 5.1.0-rc.2 → 5.1.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.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/dist/src/layer/geojsonHelpers.js +2 -2
  3. package/dist/src/layer/geojsonHelpers.js.map +1 -1
  4. package/dist/src/layer/geojsonLayer.js +4 -2
  5. package/dist/src/layer/geojsonLayer.js.map +1 -1
  6. package/dist/src/layer/layer.js +5 -1
  7. package/dist/src/layer/layer.js.map +1 -1
  8. package/dist/src/layer/rasterLayer.js +1 -2
  9. package/dist/src/layer/rasterLayer.js.map +1 -1
  10. package/dist/src/layer/tileProvider/staticGeojsonTileProvider.js +1 -2
  11. package/dist/src/layer/tileProvider/staticGeojsonTileProvider.js.map +1 -1
  12. package/dist/src/layer/tmsLayer.js +1 -2
  13. package/dist/src/layer/tmsLayer.js.map +1 -1
  14. package/dist/src/layer/vectorProperties.d.ts +2 -1
  15. package/dist/src/layer/vectorProperties.js.map +1 -1
  16. package/dist/src/layer/wfsLayer.js +1 -2
  17. package/dist/src/layer/wfsLayer.js.map +1 -1
  18. package/dist/src/layer/wmtsLayer.js +1 -2
  19. package/dist/src/layer/wmtsLayer.js.map +1 -1
  20. package/dist/src/util/editor/createFeatureSession.d.ts +4 -1
  21. package/dist/src/util/editor/createFeatureSession.js +54 -2
  22. package/dist/src/util/editor/createFeatureSession.js.map +1 -1
  23. package/dist/src/util/editor/editGeometrySession.d.ts +1 -1
  24. package/dist/src/util/editor/editGeometrySession.js +50 -7
  25. package/dist/src/util/editor/editGeometrySession.js.map +1 -1
  26. package/dist/src/util/editor/editorHelpers.d.ts +4 -4
  27. package/dist/src/util/editor/editorHelpers.js +17 -4
  28. package/dist/src/util/editor/editorHelpers.js.map +1 -1
  29. package/dist/src/util/editor/editorSessionHelpers.d.ts +7 -0
  30. package/dist/src/util/editor/editorSessionHelpers.js +20 -1
  31. package/dist/src/util/editor/editorSessionHelpers.js.map +1 -1
  32. package/dist/src/util/editor/interactions/insertVertexInteraction.js +2 -2
  33. package/dist/src/util/editor/interactions/insertVertexInteraction.js.map +1 -1
  34. package/dist/src/util/editor/interactions/translateVertexInteraction.js +3 -0
  35. package/dist/src/util/editor/interactions/translateVertexInteraction.js.map +1 -1
  36. package/dist/src/util/featureconverter/pointToCesium.js +1 -8
  37. package/dist/src/util/featureconverter/pointToCesium.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/layer/geojsonHelpers.ts +2 -2
  40. package/src/layer/geojsonLayer.ts +4 -3
  41. package/src/layer/layer.ts +6 -1
  42. package/src/layer/rasterLayer.ts +1 -2
  43. package/src/layer/tileProvider/staticGeojsonTileProvider.ts +1 -2
  44. package/src/layer/tmsLayer.ts +1 -2
  45. package/src/layer/vectorProperties.ts +7 -2
  46. package/src/layer/wfsLayer.ts +1 -2
  47. package/src/layer/wmtsLayer.ts +1 -2
  48. package/src/util/editor/createFeatureSession.ts +66 -1
  49. package/src/util/editor/editGeometrySession.ts +81 -8
  50. package/src/util/editor/editorHelpers.ts +26 -4
  51. package/src/util/editor/editorSessionHelpers.ts +28 -1
  52. package/src/util/editor/interactions/insertVertexInteraction.ts +5 -1
  53. package/src/util/editor/interactions/translateVertexInteraction.ts +3 -0
  54. package/src/util/featureconverter/pointToCesium.ts +1 -7
@@ -226,13 +226,7 @@ export function getCartesian3AndWGS84FromCoordinates(
226
226
  );
227
227
  coordinates.forEach((coord, index) => {
228
228
  wgs84Positions[index] = Projection.mercatorToWgs84(coord, true);
229
- let height = null;
230
- if (heightInfo.heightReference === HeightReference.RELATIVE_TO_GROUND) {
231
- height = heightValue + heightInfo.heightAboveGroundAdjustment;
232
- } else {
233
- height = heightValue;
234
- }
235
- positions[index] = Cartesian3.fromDegrees(coord[0], coord[1], height);
229
+ positions[index] = Cartesian3.fromDegrees(coord[0], coord[1], heightValue);
236
230
  });
237
231
  return {
238
232
  positions,