Hi Mike,
Can you provide a few more details on how to setup this webmap/app for the interactive filters, or point to a resource somewhere.
I have a published dataset with assigned domain values, but I'm really struggling trying to figure out the interactive filters and how they work within the map, and how that is applied to the 'app'.
Thanks so much,
Warren
Warren Medernach here's a link to documentation on filters.
Apply filters—ArcGIS Online Help | ArcGIS
Of the web application templates you can publish from the map via the Share menu option, the Filter template exposes the interactive filter.
Thanks,
Mike
Mike Minami - nowhere that I have seen does any of the documentation say you need to have a domain set for the dropdown selection to work. I did read on the configuration pages of the app that in order to have a dropdown available you needed multiple filters in the map. I tried a bunch of different combinations of adding the same layer multiple times and creating a filter for each but all that did was put multiple filters in the filter pane of the app. I think the documentation for the "Apply Filters" page for ArcGIS Online help and the app configuration pages could really be improved so that it becomes more clear how you can apply filters and then use them in the filter app template. In the help it says you can allow the user to choose a selection to see a subset of school types by making a selection but never describes how to make that selection. I was able to figure it out from your statement above that a domain was needed.
Just a recommendation.
Jeff
Thanks for the feedback. I have submitted a request to improve the documentation here. At least with a note on this directly in the filter web app template here:
http://www.arcgis.com/home/item.html?id=1bdcdf930b4345dfb4db10f795e0c726
This limitation is specific to the Filter web app template. In the map viewer, the filter works and can provide a dropdown list of choices without a coded value domain set up.
Mike Minami, can you go into more detail with this process. I have been looking all over the web for information on how this works.
Here is an embedded site that I am working with: http://www.ldh.la.gov/assets/oph/Center-EH/envepi/LaTSIP/Apps/HSEES_NTSIP_Web_Maps.htm. It would be great if I could have the years be a drop down list (actually, this site is an easier version of another site that really needs a drop down list: https://ladhh.maps.arcgis.com/apps/InteractiveFilter/index.html?appid=898321676fb54288b7f73b6b2e5be135 )
So here are my questions (forgive my lack of proper explanation on this):
1. In order to get the drop down list, I need to set the domains of the geodatabase. I did that, but how do I know if they correspond to the actual data?
2. In ArcGIS Desktop (any level), how do you create a map service that can be filtered? I have only been able to do this by building the entire project using ArcGIS online. Does this question make sense? Is it just as simple as setting the symbology?
3. Related to question 2, is it necessary to do that, or can you just upload the service and then filter it using ArcGIS online?
Clay
William Trachtman
1. Have you hooked up the domain to the field in your feature class? Can you see the domain in ArcMap when you edit the field?
Associating default values and domains with tables and feature classes—ArcGIS Help | ArcGIS for Desktop
2. Do you want to create a map service that is hosted on your own ArcGIS Server? I think if you create the domain and publish the map service to your server, the filter would work against it as well and present a dropdown list. I've not tried this however.
3. You can do this all via a hosted feature layer in ArcGIS Online. Once you set up a domain and connect it to the field in your layer, when you publish from ArcMap that domain should be published as well.
Thanks Mike Minami.
That first link helped a lot and explained how the two were related.
Unfortunately I could not get it to work. I published the service to ArcGIS online through desktop. That part worked. I built the web map and then the application, but I still did not get a drop down option.
https://ladhh.maps.arcgis.com/apps/InteractiveFilter/index.html?appid=5fffc97877ba47b4a8e90d3872537ad9
I also made a version where I uploaded the zipped file geodatabase, but I still did not get a drop down option.
https://ladhh.maps.arcgis.com/apps/InteractiveFilter/index.html?appid=ea375210311647bc89cf45e64e75864f
Also, on your post above from November 21, 2013, you said "Currently you can't set domains on hosted feature services or data loaded directly into the map. Only ArcGIS Server services." Is this no longer the case? That was why I thought I had to upload the data to my server (which is very difficult here).
Any help you can give would be greatly appreciated.
Unfortunately, you can't create domains on hosted layers yet. It's something we're working on.
I don't see any domain set on Category field of the hosted feature layer you published, so it didn't come across from desktop. Are you sure you configured the domain properly and hooked it up? Were you able to use the domain in ArcMap? For example, I think if you were to edit the data in ArcMap, you would see the domains appear as dropdown options on the field.
Mike Minami, I think I did it correctly. Here is a screen shot of the data in table format with the drop down that appears when I edit. There is some data that is in a different category that I did not include. Could that be the problem?
I deleted all of the ones that were not in one of the selected categories and made a map add, but the drop down still did not appear. Could it be that NULL values are allowed? I tried to change it, but it would not let me.
Thanks for your help and have a good weekend!
i'm not sure why this isn't working for you. It looks like you've got the layer configured correctly. Did you republish to ArcGIS Online with the Overwrite option? I've tried this myself and it works for me. What version of ArcMap are you running?
I am running 10.3.1.
I will try the overwrite option on Monday, although each time I have given it a different name.
I appreciate your help.
Mike Minami, thanks for your help. This is great. I opened up a help request through ESRI and got it working. I can only get them to work when I upload through ArcGIS directly, not uploading through ArcGIS Online as a zipped file geodatabase. The issue is that you need for the data to be given feature access.
I have 2 questions that maybe you can help with that might benefit others as well.
1. On this web app that I made: https://ladhh.maps.arcgis.com/apps/InteractiveFilter/index.html?appid=3ea49071ac524dc3b23f973c354b6237
I have 2 layers in 1file geodatabase, that are queried by the same term. Is it possible to just have 1 filter for both (One is points, One is polygons)....I guess I could turn the points into extremely small polygons and turn it into 1 layer.
2. On another web app that I made: LaTSIP - Events by Parish | Department of Health | State of Louisiana
In the picture above, is there any way to get rid of the "Any of the following expressions must be true."? What about the other various "prompts" and "hints"? In the picture above, I have replaced 2 with "periods" (above "LaTSIP Yearly Web Map" and above the "Apply Button").
1. There is no way as far as I know to apply the same filter to multiple layers.
2. Unfortunately, you can't change the message on the app online. You could download the app and host it yourself, however.
Mike Minami, thanks for your help. One more question. I have 2 filters, in some cases, if you run both filters, you will get zero results. Unfortunately when this occurs, the user might think that the app is not working. Is there any way to get it to say something to the effect of "there are 0 results"? Here is my app:
https://ladhh.maps.arcgis.com/apps/InteractiveFilter/index.html?appid=5a0fb661759f41fc9e85f41bf1a63cd9
Thanks,Clay
There isn't any message currently, but this is a good idea. I'll have an enhancement request written up for this.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.