I would like my cesium component to do a location search programmatically. Is there any way of doing that?
The one way I tried doing is injecting the search string to the Geocoder object directly, and then calling the search function in the view model, but the text doesn't appear in my geocoded nor does the searching happen:
var geocoder = viewer.geocoder;
geocoder.searchText = "Seattle, CA";
geocoder.viewModel.search();
I had only found one mentioning regarding custom queries but that was more towards having a callback to override the Geocode widget's search function:
https://groups.google.com/forum/#!topic/cesium-dev/Pr2vv87299I