WT Yandex map items v.2.0.0
Release notes
EN
Upgrading from this version to a newer one implies a thoughtful attitude, so we recommend that you read the documentation, and then reinstall the module.
Breaking backward compatibility
The module has been completely rewritten compared to v.1.0.0, which necessitated the loss of backward compatibility. If the v.1.0.0 module was used with default settings, then you may only need to configure a new version of the module. However, if you have created your own output layouts for pop-up window content, then study the new documentation in order to assess the amount of work to update the layouts.
What's new?
The Yandex API.Maps 3.0.
The module has switched to using the Yandex.Maps API 3.0. You will need to get an API key in Yandex developer's account, and also, possibly, specify your domain in the key parameters.
Templating markers and pop-up window contents
You can use the standard Yandex API layouts.Maps 3.0. for both map markers and pop-up windows. But you can also create your own output layouts for each category of articles and for each Joomla article.
The parameters of the Joomla content take precedence over the parameters of the parent category. Layout paths are specified relative to the layouts folder and contain the dot symbol . instead of the slash /. For example, modules.mod_wtyandexmapitems.marker.city-marker. This approach allows you to use the Joomla overriding mechanism and override layouts in your own template along the templates/[YOUR_TEMPLATE]/html/layouts/mod_wtyandexmapitems/marker/city-marker.php. To specify the marker template and/or the contents of the popup window, use a text field or a list field.
Large number of markers
The module is optimized for displaying a large number of markers. You can display several thousand markers on a single map.
RU
Обновление с этой версии на более новую подразумевает вдумчивое отношение, поэтому мы рекомендуем ознакомиться с документацией, а затем подготовиться и переустановить модуль.
Слом обратной совместимости
Модуль полностью переписан по сравнению с v.1.0.0, что повлекло за собой необходимость потери обратной совместимости. Если модуль v.1.0.0 использовался с параметрами по-умолчанию, то, возможно, вам придётся только настроить новую версию модуля. Однако, если вы создавали собственные макеты вывода для содержимого всплывающих окон, то изучите новую документацию для того, чтобы оценить объём работы по обновлению макетов.
API Яндекс.Карт 3.0.
Модуль перешёл на использование API 3.0 Яндекс.Карт. Вам потребуется получить API-ключ в кабинете разработчика Яндекс, а также, возможно, указать свой домен в параметрах ключа.
Шаблонизация маркеров, содержимого всплывающих окон
Вы можете использовать стандартные макеты API Яндекс.Карт 3.0. как для маркеров карты, так и для всплывающих окон. Но также вы можете создавать собственные макеты вывода для каждой категории материалов и для каждого материала Joomla.
Параметры материала Joomla имеют приоритет над параметрами родительской категории. Пути к макетам указываются относительно папки layouts и содержат символ точки . вместо слеша /. Например, modules.mod_wtyandexmapitems.marker.city-marker. Такой подход позволяет использовать механизм переопределений Joomla и переопределять макеты в собственном шаблоне по пути templates/[ВАШ_ШАБЛОН]/html/layouts/mod_wtyandexmapitems/marker/city-marker.php. Для указания шаблона маркера и/или содержимого всплывающего окна используйте текстовое поле или поле типа список.
Большое количество меток
Модуль оптимизирован для отображения большого количества меток. На одной карте вы можете отображать несколько тысяч маркеров.