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 94a24639e..a45ea0b05 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 @@ -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. */ @@ -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(); },