ldbv-by / bav4

Next-generation web-map viewer based on web standards
https://ldbv-by.github.io/bav4/
Apache License 2.0
13 stars 2 forks source link

cloned drawing layer is not re-created #2587

Closed taulinger closed 1 month ago

taulinger commented 1 month ago

After deactivating the drawing/measurement tool the original layer will not be re-created if it was cloned before.

thiloSchlemmer commented 1 month ago

reasons, why our approach is currently broken:

  1. OlDrawHandler/OlMeasurementHandler does not find the topmost layer -> must be inverted (or an even more precise approach)
  2. OlDrawHandler/OlMeasurementHandler adds the new layer with layerId === fileId -> must be oldLayer.id or newUniqueId
  3. [planned/optionally]LayerItem>cloneLayer() must result in a cloned GeoResource (new FileId)