freeinklewriter
freeinklewriter copied to clipboard
Map not displaying for some works
-
I'm submitting a ...
- [x] bug report
-
What is the current behavior?
When viewing the work at https://www.inklewriter.com/stories/5245 clicking on Map displays a blank area, although the story has content.

I reproduced this by importing https://www.inklewriter.com/stories/5056.json into my own 5245 copy and using the map button.
- What is the expected behavior?
A map is displayed.
-
Please tell us about your environment:
- Version: 1.0
- Browser: Chrome 81.0.4044.129 (Official Build) (64-bit)
Bug confirmed.
I've tracked the error and found a fix for you, although the bug is still here.
The bug is caused by a paragraph who has a text content :
"An hour and a half pass and you start to feel restless.. Do you"
This paragraph is not connected to anything.
Look for the text in the "Contents" panel, and remove the first instance of this paragraph in your story, the one with no link. And now the map works.
The JS code looks for a n.headerStitch()
property but in this case the function is null.
The fix would be to test if the function is here first.
That worked for me -- deleting the paragraph / lexia you identified caused the map to appear.
I wonder if "orphaned" lexias should appear loose in the map -- in a column, or row -- or just not appear, as they are unreachable and so "off the map."
If the graph was interactive, we would have to show them. It is not.
So I consider counting those orphaned lexia (or "stitch" as they are named in inklewriter), and showing that information on top of the map.