Map apps only showing ArcGIS World Geocoding Service as search tool

547
3
07-30-2021 10:20 AM
JoshuaJohnson5
New Contributor II

I am trying to make a map app that has a search. When I use the configurable app builder, I am able to use the layers as a search source. However, when I use the pre-made apps (I'm trying to use 'Minimalist' for the side panel pop up), there is only one source, ArcGIS World Geocoding Service.

How do I get my parcels layer to show up as a search source? Or, alternatively, how do I get the pop up to show on the side panel instead of annoylying covering half the item my users are trying to look at?

JoshuaJohnson5_0-1627665518310.png

 

0 Kudos
3 Replies
jcarlson
MVP Esteemed Contributor

Try adding the search by layer option in the settings page of the web map.

jcarlson_0-1627667250190.png

 

- Josh Carlson
Kendall County GIS
0 Kudos
JoshuaJohnson5
New Contributor II

This allowed me to search by layer in the web map, but not the web map app, which, for Minimalist, still only shows ArcGIS World Geocoding Service. I can edit the search widget to work as needed in the web appbuilder, but I can't get the pop up to appear as a side panel. I am going to attempt to add the code here:

https://developers.arcgis.com/javascript/3/jssamples/popup_sidepanel.html

0 Kudos
jcarlson
MVP Esteemed Contributor

I'd make a backup first, but you can try to edit the JSON of the app using the AGO Assistant. You should be able to see the settings of the search bar in there. Never attempted to do so on a configurable app, but it may be possible.

EDIT: I went and looked, and you can definitely find it and make changes.

Look for the searchConfig property in the app's JSON:

     "searchConfig": {
            "sources": [
                {
                    "locator": {
                        "url": "https://maps.co.kendall.il.us/server/rest/services/Locator/Kendall_County_Address_Point_Locator/GeocodeServer",
                        "_url": {
                            "path": "https://maps.co.kendall.il.us/server/rest/services/Locator/Kendall_County_Address_Point_Locator/GeocodeServer",
                            "query": null
                        },
                        "normalization": true
                    },
                    "name": "Kendall County Address Point Locator",
                    "singleLineFieldName": "SingleLine",
                    "url": "https://maps.co.kendall.il.us/server/rest/services/Locator/Kendall_County_Address_Point_Locator/GeocodeServer",
                    "itemId": "a97f79d5b6964c4c80fd7c93f2b38e05",
                    "placeholder": "",
                    "placefinding": true,
                    "batch": true,
                    "zoomScale": 10000,
                    "numBatchThreads": 1,
                    "ordinal": 0,
                    "enableSuggestions": true,
                    "enable": true,
                    "id": "dojoUnique6"
                },
                {
                    "flayerId": "Current_Cadastral_Features_8857",
                    "url": "https://maps.co.kendall.il.us/server/rest/services/Hosted/Current_Cadastral_Features/FeatureServer/1",
                    "name": "Parcels",
                    "id": "dojoUnique8",
                    "enable": true,
                    "enableSuggestions": true,
                    "placeholder": "",
                    "searchFields": [
                        "pin",
                        "pin_dashless"
                    ],
                    "maxSuggestions": 5,
                    "displayField": "pin",
                    "suggestionTemplate": ""
                }
            ],
            "activeSourceIndex": "all",
            "enableSearchingAll": false
        },
- Josh Carlson
Kendall County GIS
0 Kudos