M
M
Maxim Borisenko2020-06-17 18:18:27
AJAX
Maxim Borisenko, 2020-06-17 18:18:27

How to show the address on the map by clicking on the link?

I can’t find information anywhere about the links you click on and the address of the office is indicated on the map, and there are 5 addresses. It is necessary to do as on the example of this site https://www.oazisupak.ru/contact/

Does anyone have any ideas or maybe someone came across something similar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nadim Zakirov, 2020-06-17
@zkrvndm

Everything is very simple. Let's say you have 9 addresses, respectively, you take and through the Yandex map constructor form 9 different cards with nine different addresses. Next, display one of the addresses as an iframe on your site as the main address, and when you click on your other addresses, just change the src attribute of the frame to the one you need - the map will redraw itself.
PS I'm almost sure that there is a way to control the display, through the API of Yandex.Maps themselves, but I'm not familiar with this API and I can't give any practical advice. The option above is the easiest, in my opinion.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question