From c16b23bb3e3d9a09a13def997a9b85e19aae5417 Mon Sep 17 00:00:00 2001 From: Birm Date: Fri, 19 Apr 2024 22:37:34 -0400 Subject: [PATCH] Revert "Revert "Saving Marks Should Include User's X, Y, Zoom, etc #844"" --- apps/viewer/init.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/viewer/init.js b/apps/viewer/init.js index 8a0c8643d..94f89c2b0 100644 --- a/apps/viewer/init.js +++ b/apps/viewer/init.js @@ -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 &&