Share a map
To do this, follow these steps:
- Copy the address from the address bar.
For more information on how to copy a link to a map you created yourself, see Map Constructor.
In other cases, use the Yandex Maps API.
Get a link
The button on the map and select Share.
Alternatively, you can click in the panorama.
In the window that opens:
- Click the icon of the desired social network to publish the link automatically.
- Copy the link to share it with another user.
If you need to automatically publish links to Yandex Maps on your site that uses the visitor's location data, use the Yandex Maps URL scheme to create the link.
Embed a map widget
You can publish map widgets on your site or blog.
To do this, use the automatically generated code:
In the top-right corner of the page, click .
To use a localized map on your site, edit the embed code.
Add the lang parameter to the copied code to specify the language and region of the map interface.
The parameter value includes:
- Language code: ru — Russian, uk — Ukrainian.
- Region code: for example, RU — Russia, UA — Ukraine.
For example, lang="tr_TR" means the Turkish language used in Turkey.
For Russia and Ukraine, the region and language of the map interface are determined by the Yandex User ID settings. For example, if the user's language in Yandex ID is Russian, they are located in Kyiv, and the map they're viewing was created in RU or UA, they'll see the map in Russian but localized for Ukraine.
The parameter is omitted:
<iframe src="https://api-maps.yandex.ru/frame/v1/-/CVh7YBYg?" width="560" height="400" frameborder="0"></iframe>
If you don't specify the lang parameter, the region and language of the map interface are determined based on the map settings you had when generating the code.
The parameter is specified (English for Russia):
<iframe src="https://api-maps.yandex.ru/frame/v1/-/CVh7YBYg?lang=en_RU" width="560" height="400" frameborder="0"></iframe>
Page URL: https://api-maps.yandex.ru/frame/v1/-/CVh7YBYg?lang=en_RU
If the lang parameter is specified, the region is dictated by its value regardless of where the map was created.
ru_RU: Russian, Russia
en_US: English, USA
en_RU: English, Russia
ru_UA: Russian, Ukraine
uk_UA: Ukrainian, Ukraine
tr_TR: Turkish, Turkey
This parameter is similar to the "lang" parameter that is used in .
The distance is shown in kilometers for RU, UA, and TR, and in miles for US.