From b42a4a9f42bba57f4c33d74e2b1d44f4f979194c Mon Sep 17 00:00:00 2001 From: David Manthey Date: Fri, 20 May 2022 10:18:05 -0400 Subject: [PATCH] Honor the highlight size limit with centroid annotations. This makes the interface more consistent, but still has the surprise that there is a threshold where the behavior changes. We may want to revisit highlighting in large sets of annotations, in which case we need to adjust centroid annotations, too. --- .../web_client/views/imageViewerWidget/geojs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/girder_annotation/girder_large_image_annotation/web_client/views/imageViewerWidget/geojs.js b/girder_annotation/girder_large_image_annotation/web_client/views/imageViewerWidget/geojs.js index 5aad898f9..d972385c8 100644 --- a/girder_annotation/girder_large_image_annotation/web_client/views/imageViewerWidget/geojs.js +++ b/girder_annotation/girder_large_image_annotation/web_client/views/imageViewerWidget/geojs.js @@ -447,7 +447,7 @@ var GeojsImageViewerWidgetExtension = function (viewer) { if (annotation._centroids) { annotation._shownIds = new Set(feature.data().map((d) => d.id)); } - if (data.length <= this._highlightFeatureSizeLimit) { + if (data.length <= this._highlightFeatureSizeLimit && !annotation._centroids) { this._featureOpacity[annotation.id][feature.featureType] = feature.data() .map(({id, properties}) => { return {