Skip to content

Commit

Permalink
Merge pull request #881 from girder/annotation-layer-mode-options
Browse files Browse the repository at this point in the history
Pass options to the annotationLayer mode
  • Loading branch information
manthey authored Jul 5, 2022
2 parents 4b71a10 + 6306b46 commit 8554d62
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,8 @@ var GeojsImageViewerWidgetExtension = function (viewer) {
* creating each annotation element.
* @param {boolean} [options.keepExisting=false] If true, don't
* remove extant annotations.
* @param {object} [options.modeOptions] Additional options to pass to
* the annotationLayer mode.
* @returns {$.Promise}
* Resolves to an array of generated annotation elements.
*/
Expand Down Expand Up @@ -820,7 +822,7 @@ var GeojsImageViewerWidgetExtension = function (viewer) {
defer.resolve(elements, annotations, opts);
}
);
layer.mode(type);
layer.mode(type, undefined, options.modeOptions);
return defer.promise();
},

Expand Down

0 comments on commit 8554d62

Please sign in to comment.