Currently, the Imap exercise type uses named IDs inside the SVG files to select clickable areas. This has several disadvantages:
the SVGs must have ids for any clickable divs
the software is dependent on the SVG internal structure
SVGs must be injected by a third-party library that is not well supported
it is incompatible with the eventual Image Label exercise type which requires an overlay above the SVG.
it won't work with non-SVG image files.
Instead, modify the Imap exercise type to use any arbitrary SVG along with an overlay svg that is specified in either a file or directly in course.yml. The maps will need to be generated by a third-party website or software.
Currently, the Imap exercise type uses named IDs inside the SVG files to select clickable areas. This has several disadvantages:
Instead, modify the Imap exercise type to use any arbitrary SVG along with an overlay svg that is specified in either a file or directly in course.yml. The maps will need to be generated by a third-party website or software.