MDAIceland / WaterSecurity

1 stars 1 forks source link

GUI Exploration #11

Closed VasLem closed 3 years ago

VasLem commented 3 years ago

Identify whether solution can be represented in a similar way as here

VasLem commented 3 years ago

I will be using geojson . I retrieved the countries map from https://datahub.io/core/geo-countries . The idea is to put hover pins on known cities on the map, but also allow the user to click on other locations and get predictions.

VasLem commented 3 years ago

@bajo1207 @OlympiaG I need some help with the coding part. Do you have any experience with Javascript or Web Applications? Bokeh seems to be quite limiting. Specifically:

VasLem commented 3 years ago

I have also found issues with the coordinates of the labeled cities, I will make another issue for this

OlympiaG commented 3 years ago

I think Bokeh seems to be the most appropriate library for our case (visualizing maps etc.) and I don't think it's so limited compared to other libraries. Maybe approach the code in a different way?

VasLem commented 3 years ago

Thanks for going through my questions 🙂. Btw you can checkout to gui_creation branch, the code is inside app/main.py

OlympiaG commented 3 years ago

I didn't see that you uploaded the code, I will check it :)

Anyways, I will check it.

VasLem commented 3 years ago

I have added extra information to the readme.md, essentially in order to run the app you need to python run.py. Please let me know if I can be of any assistance. I appreciate your support on this :).

adriana-madi commented 3 years ago

Hey Vassilis, check this out: NASA Not sure if this will provide inspiration or not, but I am currently trying to work with this API to implement it for the final app.

VasLem commented 3 years ago

Indeed it is a very nice representation, thank you for showing this to me. I will try to search if there is any other package we could use, I seriously do not want to waste much more time than needed in this project, we are already in a good pace, but we cannot afford for more delay, as the exams are getting closer and the assignments/deadlines are overwhelming. That was my mini panic attack. :sweat_smile:

adriana-madi commented 3 years ago

(@OlympiaG I think this might be useful for you doing the GUI) In terms of JS I found the following, an API that builds an interactive web app (I think): ArcGis JS

VasLem commented 3 years ago

I didn't see that you uploaded the code, I will check it :)

  • I have some experience in JS, I will try to fit it (but without promises :P).
  • Yes, this is what I also meant, but I think it provides this functionality.

Anyways, I will check it.

@OlympiaG what is the status of this ? Shall I restart working on it?

VasLem commented 3 years ago

Ok, so I ditched the bokeh for ipyleaflet. The only thing is that voila needs to run, as ipyleafle is served through notebooks, hopefully this will not bring any issues later. On the other hand, this enables us to add more plots/graphs of what we have.