Displaying Yandex.Maps in a template Let's consider how to use the API of Yandex.Maps to display maps in a generated document. false W3sidGl0bGUiOiJTZXR0aW5ncyIsInVybCI6Ii91c2Vycy9hZG1pbmlzdHJhdGlvbi8ifSx7InRpdGxlIjoiU3lzdGVtIHNldHRpbmdzIiwidXJsIjoiL3VzZXJzL2FkbWluaXN0cmF0aW9uL3NldHRpbmctYmxvY2svIn0seyJ0aXRsZSI6IlByaW50ZWQgZm9ybXMiLCJ1cmwiOiIvdXNlcnMvYWRtaW5pc3RyYXRpb24vc2V0dGluZy1ibG9jay9wcmludGluZy1mb3Jtcy8ifV0= Settings /users/administration/ ["users","Settings"] ["users","Settings","System settings"] users

Displaying Yandex.Maps in a template

Let's consider how to use the API of Yandex.Maps to display maps in a generated document.

If you are using the old version of API for Yandex.Maps, then it should be replaced with the new versio so that the script is initialised correctly. This is because the new code refers to the internal API of the system, which, in its turn, refers directly to Yandex to display the image in a printed form.

The old variant looks like this:

<script src="https://api-maps.yandex.ru/2.0/?load=package.full&lang=ru-RU" type="text/javascript"></script>.

The new variant looks like this:

<script src="{{ yandex_maps_api('2.0', { lang: 'ru-RU', load: 'package.full' }) }}" type="text/javascript"></script>.

Thank you for your feedback.
Was this article helpful?
No
  • The recommendations did not help
  • There is no answer to my question
  • The text is difficult to understand
  • I do not like the described functionality
Yes
Previous article
Inserting an image into a document template
This article describes how to insert an image into the template of a printed form.