Displaying Yandex.Maps in a template
Copy the link to the article
Copied

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
  • Рекомендации не помогли
  • Нет ответа на мой вопрос
  • Текст трудно понять
  • Не нравится описанный функционал
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.
#}