if local.search ("Beijing"); why the search event onSearchComplete did not respond
if local.search ("Beijing"); why the search event onSearchComplete did not respond
you print the log in onSearchComplete to see if it is really executed. I think your code is wrong. This.map 's this is wrong.
search () {
var vm = this;
....
vm.map.centerAndZoom(point, 18);
....
}
I have also encountered the problem that onSearchComplete does not call back. How do you solve it?