Closed
Description
I am using the Search View and trying to setup my own locator as we are using Portal so the default service url does not seem to work. However, even though I set the EnableDefaultWorldGeocoder to false it seems that it is still trying to create it
This is my code to initialize to Search View:
var searchView = new SearchView()
{
GeoView = region.mapView,
AllSourcesSelectText = "All",
EnableDefaultWorldGeocoder = false,
EnableResultListView = true,
EnableRepeatSearchHereButton = false,
WidthRequest = 600,
HorizontalOptions = LayoutOptions.End,
VerticalOptions = LayoutOptions.Start
};
I can see in the toolkit where this would seem to make it skip over the code to create the WorldGeocoderSearchSource. However, even with this set to false I am going into a loop of trying to authenticate the geocode service which seems to only be coming from an attempt to instantiate the Locator. This does tie back to my other issue, because if we could set the ApiKey at the Search View we could use the default locator
Metadata
Metadata
Assignees
Labels
No labels