Within the menu.html file, there are various menu items (a href links) called menu_1, menu_2, and so on.
The map.js file is responsible for displaying map content by utilizing an API to showcase different layers and maps. Even though there are many maps to display, the goal is to only call the API once.
I'm curious if it's feasible to use AJAX in my JavaScript code to create a scenario where when a specific menu item like menu_1 is clicked, then map_1 is implemented without requiring the page to reload. One potential approach I considered involves using post/get methods, such that when menu_1 is selected, it redirects to page.php?page_id=1. JavaScript can then interpret this information and showcase the corresponding map.
As someone who is new to JS and AJAX, I am open to constructive criticism and guidance.