AOI Selection Widget / Load New Config File

615
3
Jump to solution
07-06-2018 11:31 AM
BrianCollins
Occasional Contributor

Widget idea that I don't have the skills to build: Allow a user to select an option, similar to bookmark widget, that sends an updated request to reload the url to another config.json file. What we want to be able to do is allows a user to select an area of interest and then have the web app refresh and load a config.json file that correlates to the AOI they chose.

Example:

Web application has 4 config.json files associated with 4 areas of interest. User has a drop-down (similar to bookmark widget) to select their area of interest.

  1. AOI #1 = config.json (default created with web app builder) = http://domain.name.com/ 
    1. This level would be the default landing page.
  2. AOI #2 = config_2.json = http://domain.name.com/?config=config_2.json# 
  3. AOI #3 = config_3.json = http://domain.name.com/?config=config_3.json#
  4. AOI #4 = config_4.json = http://domain.name.com/?config=config_2.json# 

The additional config.json files would load new AGOL web maps specific to the Area of Interest selected by the end user.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Brain,

   This is not a widget I have intentions on maintaining right now but here is a quick widget that does what you are asking for.

View solution in original post

3 Replies
BrianCollins
Occasional Contributor

Upon further thinking...this really could be an extension of the bookmark widget with the functionality to reload the new URL and associated config file based on the bookmark selection. I just don't quite know how to do that...

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Brain,

   This is not a widget I have intentions on maintaining right now but here is a quick widget that does what you are asking for.

BrianCollins
Occasional Contributor

Thanks very much Robert...this will do the trick. Much appreciated.

0 Kudos