AnsweredAssumed Answered

JS API 4.9 : cannot remove Esri World Geocoder from Directions widget

Question asked by NicolasGIS on Nov 27, 2018

Hello,

 

I know directions widget of 4.9 is still in beta but I think it would be interesting to be able to remove the default ESRI world geocoder from the search sources of the widget just like what we can do currently with the property includeDefaultSources of the search.

Currently, defining the sources of the search in the searchProperties property do not overwrite the default ESRI world geocoder but append it and I was not able to find an easy to remove it as the searches are not "accessible" as a property of the widget. 

I tried to set my source as default with the activeSourceIndex property, but it seems like it is not taken into account.

 

In the meantime, if you have any idea for a workaround, that would be great !

 

Thanks,

Outcomes