Monday 5 June 2017

web mapping - Getting popup with layer attributes to display after using address search/geocoder widget?


Using Web AppBuilder and ArcGIS Online, I want to let my user(s) enter an address on the "Geocoder Widget" and have an automatic popup that displays. I know how to configure the content of the popup. I know I can change the Geocoder to search for specific features/attributes.


Example: I have three school boundaries (High School districts, Middle School Districts, and Elementary School Districts) that overlap each other. I want to create an app that lets someone Enter their address and it spits out their neighborhood HS, MS, and ES (I will be adding driving directions and descriptions of the schools in the pop up).


ArcGIS for Javascript : Locate Widget Activate Popup for Layers X > Z? asks the same thing I believe but was never answered or commented on.



Answer



I am going to go with using the Information Lookup template for ArcGIS online. It does not give me the flexibility I want, but it does the job I need it to do. I hope this is helpful for others.



I created a webmap with all of my layers and symbolized them as I wanted. I configured the popups to look the way I wanted (images, links, directions). I started the Information Lookup App Template and simply uploaded my webmap.


Now, when I use the address locator a popup window opens displaying popups for all layers I told it to. When adding multiple layers for query put "|" in between.


There is a bug with information lookup template. When you designate lookup layers from your webmap, it breaks the URLs. No idea why, but I informed Esri Tech Support.


Example of adding multiple layers for display in popup


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...