Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS possible to save to file Mapa Data Object? #37

Open
psilvao opened this issue Dec 21, 2020 · 1 comment
Open

IS possible to save to file Mapa Data Object? #37

psilvao opened this issue Dec 21, 2020 · 1 comment

Comments

@psilvao
Copy link

psilvao commented Dec 21, 2020

Hi , greetings from Chile, I was looking at your work and it caught my attention, but is it possible to save the Map Data Object in a file? I would like to generate a sequence of scenarios with your api.

I was reviewing, and from what I can detect you use the api https://leafletjs.com/, if you can tell me, please, where, there I could generate a file with the associated javascript and save it as a file.

Regards,
Pablo

@pszufe
Copy link
Owner

pszufe commented Dec 22, 2020

Hi,
you can save any Julia object by using the serialization API

using Serialization
serialize("myfle.jld", mapdata)

Another good option is BJSON.jl

Regarding visualisations in the tutorials I use Python's folium library that provides leafletjs integration for Jupyter Notebooks
https://github.com/python-visualization/folium
I do not know how easily can be saved as pure JavaScript - I am not doing any type of web development. Anyway this is the question for the folium folks.

Just note that OpenStreetMapXPlot.jl is also providing an API for map plotting and saving the plot as a static image file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants