Skip to content

Commit

Permalink
Pass options to the annotationLayer mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Jul 5, 2022
1 parent 05dabf2 commit 827300f
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 827300f

Please sign in to comment.