In one of my simulations I need to export following data:
- OpenStreetMap of a certain region (OpenStreetMap centered at a particular point and with a particular zoom level)
- Lines, representing the administrative boundary of that region
- Lines between points
I need to save these data such that thereafter the user can take them and
- look at the map with different zoom levels (he or she should see both the OpenStreetMap and the items I drew on top of it) and
- export it to PNG.
What existing (preferably open-source) options are there, apart from the one described below?
Note that I don't care whether these data are saved as file (which the user then opens in some program) or as a URL (which contains all points and lines and if the user opens it, these points and lines are displayed above the OpenStreetMap) or something else.
Known way to accomplish the task
I could save data above into an XML file, then write a Java program based on the MapPanel component, which will display the map and all elements.
If there is already a program, which does that then I'd like to re-use it.