OU-CS-Capstone-2024 / NOTAMyWatch

Group Capstone project at the University of Oklahoma. Project consists of creating an app that will more effectively warn pilots about airspace hazards. Using the FAA API for NOTAMs.
0 stars 0 forks source link

Bug fix for disappearing map when selecting filters #97

Open Gabrieldowen opened 4 months ago

Gabrieldowen commented 4 months ago

I haven't looked through the code very much but im assuming this is due to how we render the page when applying filer. It could just be that the map is not reloaded

Gabrieldowen commented 4 months ago
Screenshot 2024-04-23 at 11 18 05 AM

the main problem resides here where we are clearing the entire page to insert everything again with js. I said this before but we probably shouldn't be rendering the page by using javascript to insert strings of html. This makes it really hard to debug and it means we have to maintain the html and then javascript to have all the same elements. It would be easier to just return a template like we do when we first render the display page. This way we only need to worry about one copy of the page.

Screenshot 2024-04-23 at 11 20 24 AM