plantuml / plantuml-server

PlantUML Online Server
https://plantuml.com/
GNU General Public License v3.0
1.59k stars 463 forks source link

Exporting a diagram of type MAP creates an empty file #310

Closed voidek closed 11 months ago

voidek commented 11 months ago

Describe the bug Exporting a diagram of type MAP creates an empty file, both through the use of the gui or via the endpoint by sending 'plantuml/map/ENCODED' like stated in https://plantuml.com/de/server

To Reproduce Steps to reproduce the behavior:

  1. Hover Over The Bar Icon
  2. Click on 'Export diagram'
  3. Choose 'MAP' as Diagram type
  4. Click 'Export'
  5. Open the downloaded file
  6. See error (empty file)

Expected behavior The output file should not be empty and contain a structure as stated https://plantuml.com/de/server `

`

Screenshots image

Setup

HeinrichAD commented 11 months ago

Please note that you have to use an appropriate PlantUML code for this feature. Code that does not use the map features at all will (understandably) result in an empty map.

In the background of the attached image I can see that the used code does not use the map features, since the fifth button for the map in the upper right corner is not displayed. I suspect at this point that you have used the standard Bob -> Alice : hello example.

Tip: Use the code example from the documentation you linked. After that you should be able to see something.


No map example

no-map-example

Map example

Please note: here

  1. the Map button is shown,
  2. the link inside the image is clickable.

map-example