I’m trying to create a link between floors every time I select a place in a different floor than the current one.
So, the problem I have is that I can’t remove a link before creating a new one, and I don’t want to see more than one at the same time.
Links were primarily introduced to render the vertical parts of a route connecting floors. They are used by MyRoute.js only to achieve this task so we must admit we never added proper documentation for them.
However, they are built with the same private class as Path objects, so (as you can observe in MyRoute.js) you can use remove(), show(), hide() methods on them, just like Path objects.
Hope this helps,
I’ve tried and it seems to be working, many thanks!