Skip to content
  1. Extras
  2. YandexMapsLocator
  3. Site integration

Locations and TVs

A map location is a published MODX resource. The container is set with snippet parameter parents.

Free TVs

On install the YandexMapsLocator category and TVs are created:

TVTypePurpose
yandexmaps_addresstextAddress
yandexmaps_latitudetextLatitude
yandexmaps_longitudetextLongitude
yandexmaps_phonetextPhone
yandexmaps_emailtextEmail
yandexmaps_working_hourstextareaWorking hours (text or JSON for Pro)
yandexmaps_categorytextCategory
yandexmaps_balloon_imageimageBalloon image
yandexmaps_marker_iconimageMap marker icon

Rename via yandexmapslocator_tv_*: settings.

Pro TVs

Pro resolver creates (if missing):

TVTypePurpose
yandexmaps_timezonetextIANA timezone for the location (Europe/Moscow, Asia/Omsk). Empty → network yandexmapslocator_timezone
ms3_product_idnumberSingle MiniShop3 product ID (legacy)
ms3_product_idstextMultiple IDs: 25,26 or JSON [25,26]. When set, wins over ms3_product_id
yandexmaps_amenitiestextComma-separated amenity tags (wifi,card,parking)
yandexmaps_brandtextBrand for brand filter

TVs are not bound to templates automatically. Assign them to the location template like other locator TVs.

See MiniShop3, Open now.

Geocode in the manager

Free plugin on OnDocFormRender adds "Get coordinates" under the address field: reads the address TV and fills coordinates. Requires yandexmapslocator_api_key.

Pro adds "Check schedule" under working hours TV: JSON via formatter, open-now status, next open/close.

Free chunks

ChunkPurpose
yandexmapslocator.outerLocator wrapper
yandexmapslocator.searchSearch form
yandexmapslocator.storeLocation card
yandexmapslocator.emptyEmpty result
yandexmapslocator.errorError

Pro ships no chunks. UI and data-yml-*: Frontend.

Working hours

Plain text in yandexmaps_working_hours shows in the card.

For "open now" and Pro badges you need JSON and the correct timezone (location TV or yandexmapslocator_timezone). Otherwise the location is closed for working_now. Details: Open now.