I want to add a map to the pop-up window, which will be displayed when clicking on a specific address in the text. For example, Yandex.Mail can allocate addresses. Like that:
How to do it?
I want to add a map to the pop-up window, which will be displayed when clicking on a specific address in the text. For example, Yandex.Mail can allocate addresses. Like that:
How to do it?
In the JS API, Yandex.Maps has a Geo - link — a Geolink module that allows you to select an address, coordinates, or organization name in the text of a page. When clicking, a static map will be opened with the ability to go to Yandex.Maps.
How to add:
Upload the API code with the Geolink module to the page. To do this, insert the line in the header of the HTML page:
<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU&load=Geolink" type="text/javascript"></script> Wrap the desired text into an HTML element with the “ymaps-geolink” CSS class:
<span class="ymaps-geolink"> Москва, ул. Крылатские холмы, 26 </span> Source: https://ru.stackoverflow.com/questions/748024/
All Articles