A
A
Alexey Bespalov2019-03-29 08:08:40
Yandex maps
Alexey Bespalov, 2019-03-29 08:08:40

How to pass the address to the Yandex search string (ymaps.control.SearchControl)?

Greetings!
Implemented a map window in which a point is set at the address and then a route is built and the distance is calculated.
It would be nice if the search string would immediately contain the address that is passed to it. But I can't pass the address to the Yandex input in any way.
Even if you find it in the DOM and set inputSearch.value = Address. The address in the control is not displayed.
Tell me how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2019-03-29
@FreeArcher

Run a search with the value you wantsearchControl.search('Шоколадница');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question