marker.js 2 Documentation: Display mode

Display mode

In addition to appearing inline with the target image, marker.js 2 can open the markup editor as a popup. This could be useful for distraction-free annotation and challenging layouts or image placements.

You control the way marker.js 2 opens by setting its settings.displayMode property.

let markerArea = new MarkerArea(targetImg); // displayMode can be either 'inline' (default) or 'popup' markerArea.settings.displayMode = 'popup'; markerArea.show();

See also

  • Check out the Popup demo for this setting in action.