OpenWaterFoundation / owf-app-infomapper-ng

Open Water Foundation InfoMapper web application for menu-driven maps and visualizations, using Angular
GNU General Public License v3.0
1 stars 2 forks source link

Add application configuration properties to display content in popup window #350

Open smalers opened 3 years ago

smalers commented 3 years ago

The application content page menu currently takes over the application main window. This is somewhat distracting if the user is accustomed to the map being the main interface. And, we have made progress on popups being used for other information pages. It would be good to allow the content page to display in a popup or other window based on configuration so that maps don't have to be reloaded. The following are technical considerations that should be discussed before moving forward.

  1. Is the use of popups an issue for mobile devices? I tried the simulator in Chrome and the main issue seemed to be that the default popup size and graph area might need to be optimized for mobile. My data plan may be hit by the large data downloads.
  2. A property could be enabled such as target with possible values like popup, tab, app. The HTML <a> tag target values are more obscure but the idea is the same. Maybe we change the default behavior to popup if target is not specified (case-insensitive)?
  3. If a popup, then does the user lose the ability to directly access the content via a URL? Or would the URL result in a popup? What would the URL be if a map is displayed and a popup is shown? It seems like the main URL would represent what is shown in the main app window and extra query parameter information is needed whenever a popup is shown. If we go down that path, then would the URL for the popup need extra information such as what feature ID is selected if the popup is feature-specific?