-
Notifications
You must be signed in to change notification settings - Fork 128
Description
This relates to Add Ability to Set ApiKey on SearchView.
Another useful functionality would be if one could set the geocode Url as a bindable property on the SearchView.
The driver for this is that if a user is logged into an on-premise ArcGIS Enterprise their credentials are not valid for the esri online geocoder. Because of this when a user opens a map with the SearchView it will try to authenticate for the world geocode service using the user's ArcGIS Enterprise credentials which will fail. After either canceling or timing out the address search does not work.
The geocoder url is set as an internal constant in LocatorSearchSource
internal const string WorldGeocoderUriString = "https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer";
If instead there was a BindableProperty on the SearchView for GeocodeUrl this could be set to the internal portal's geocode url
Something like
"https://server.domain.loc/portal/sharing/servers/6775d0b27ef8438aa4a2ef90c77e6aaa/rest/services/World/GeocodeServer",
This would then successfully be authenticated using the ArcGIS Enterprise user
Thanks
-Joe