Skip to content

Commit

Permalink
Revert "Revert "Saving Marks Should Include User's X, Y, Zoom, etc #844
Browse files Browse the repository at this point in the history
…""
  • Loading branch information
birm committed Apr 20, 2024
1 parent ec5ef7c commit c16b23b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/viewer/init.js
Expand Up @@ -257,6 +257,13 @@ function initCore() {
attributes = data.properties.annotations;
if (area) attributes.area = area;
if (circumference) attributes.circumference = circumference;

const states = StatesHelper.getCurrentStates(isImageCoordinate = true);
if (!states) return;
attributes.X = states.x;
attributes.Y = states.y;
attributes.zoom = states.z;

body = convertHumanAnnotationToPopupBody(attributes);
if (
data.geometries &&
Expand Down

0 comments on commit c16b23b

Please sign in to comment.