WebHelp Responsive - Hotspots on SVG responsive images
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 3
- Joined: Fri Jan 19, 2018 12:03 pm
WebHelp Responsive - Hotspots on SVG responsive images
I've been looking forward to using hotspots on SVG images.
Typical use case is a flowchart with hotspots taking you to the relevant xref.
The current implementation is a bit clunky and took a while to figure out how to make it work.
ISSUE:
The hotspots do not stay over the position once published. They are distributed in the order of the image map, but not over the spots they were supposed to cover.
The only way we have got it to work for now is to go back and edit the SVG by adding a width and height attribute to the SVG, AND also adding the width attribute to the image element in the dita topic.
This means you lose the "responsive" feature of the SVG.
The output is still scalable, but not sure how far on a mobile device, and it is a lot of faffing around for something that should work as it does in a PDF output.
See attachments
Typical use case is a flowchart with hotspots taking you to the relevant xref.
The current implementation is a bit clunky and took a while to figure out how to make it work.
ISSUE:
The hotspots do not stay over the position once published. They are distributed in the order of the image map, but not over the spots they were supposed to cover.
The only way we have got it to work for now is to go back and edit the SVG by adding a width and height attribute to the SVG, AND also adding the width attribute to the image element in the dita topic.
This means you lose the "responsive" feature of the SVG.
The output is still scalable, but not sure how far on a mobile device, and it is a lot of faffing around for something that should work as it does in a PDF output.
See attachments
SVG_WidthHeightDefined2.gif
SVG_WidthHeightNOTDefined2.gif
Also seems there's a bit of an issue with your fonts here, see the word ISSUE, the Ss are taller than the other letters 
You do not have the required permissions to view the files attached to this post.
Dipo Coker
-
- Posts: 30
- Joined: Thu Nov 30, 2023 12:45 pm
Re: WebHelp Responsive - Hotspots on SVG responsive images
Post by horisonten »
Just chiming in that this is still an issue when transforming to html. It seems as if the image must be the correct size for the imagemap to work consistently. When setting the width and height it seems to move the imagemap so that the hotspots doesn't align with the actual image.
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: WebHelp Responsive - Hotspots on SVG responsive images
Hi horisonten,
Could you please let us know which specific version of WebHelp did you use to test this functionality?
Also, in order to look into this, we would need you to send us a sample DITA Map files hierarchy in an as minimal form as possible which we could use to reproduce the reported behavior.
You could send the sample to our official support email: support@oxygenxml.com
Please refer this forum post in the email you will send.
Regards,
Costin
Could you please let us know which specific version of WebHelp did you use to test this functionality?
Also, in order to look into this, we would need you to send us a sample DITA Map files hierarchy in an as minimal form as possible which we could use to reproduce the reported behavior.
You could send the sample to our official support email: support@oxygenxml.com
Please refer this forum post in the email you will send.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service