Hi,
I'm trying to customize the geocoder of an application made with WebAppBuilder. I changed the config.JSON file in the Geocoder folder to:
{ "geocoder": { "autoComplete": true, "minCharacters": 3, "name": "Esri World Geocoder", "arcgisGeocoder": false, "geocoders": [ { "url": "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer", "name": "Esri World Geocoder", "singleLineFieldName": "SingleLine", "placeholder": "Chercher une adressse", "searchExtent": { "xmin":-8057000, "ymin":5620600, "xmax":-7910000, "ymax":5681500, "spatialReference":{"wkid":102100} } } ] } }
When I set "arcgisGeocoder" to true,
When I set "arcgisGeocoder" to false,
Somebody knows what's wrong in the code? (I tried everything!) I want:
Thanks for your help
Solved! Go to Solution.
I figured it out myself, adding:
"geocoderMenu": false, |
to get rid of the geocoder selection menu, and
"arcgisGeocoder": { | |
"placeholder": "Chercher une adresse" | |
}, |
to get the placeholder text back.
Here's the full code:
{ "geocoder": { "autoComplete": true, "minCharacters": 3, "name": "Esri World Geocoder", "arcgisGeocoder": true, "geocoderMenu": false, "arcgisGeocoder": { "placeholder": "Chercher une adresse" }, "geocoders": [ { "url": "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer", "name": "Esri World Geocoder", "singleLineFieldName": "SingleLine", "searchExtent": { "xmin":-8057000, "ymin":5620600, "xmax":-7910000, "ymax":5681500, "spatialReference":{"wkid":102100} } } ] } }
I figured it out myself, adding:
"geocoderMenu": false, |
to get rid of the geocoder selection menu, and
"arcgisGeocoder": { | |
"placeholder": "Chercher une adresse" | |
}, |
to get the placeholder text back.
Here's the full code:
{ "geocoder": { "autoComplete": true, "minCharacters": 3, "name": "Esri World Geocoder", "arcgisGeocoder": true, "geocoderMenu": false, "arcgisGeocoder": { "placeholder": "Chercher une adresse" }, "geocoders": [ { "url": "https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer", "name": "Esri World Geocoder", "singleLineFieldName": "SingleLine", "searchExtent": { "xmin":-8057000, "ymin":5620600, "xmax":-7910000, "ymax":5681500, "spatialReference":{"wkid":102100} } } ] } }