Skip to content

Commit

Permalink
Merge pull request #861 from girder/highlight-feature-size-limit
Browse files Browse the repository at this point in the history
Honor the highlight size limit with centroid annotations.
  • Loading branch information
manthey authored May 20, 2022
2 parents 5131e44 + b42a4a9 commit 5cd8b33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5cd8b33

Please sign in to comment.