Русский
Academy → Plugins

Yandex Maps: show visitors where to go

Mark your workshop entrance, three pickup points, or your lesson venues. Visitors can see which location suits them.

Page block · preview in Downloads · map.yandex

What visitors see

Visitors see an interactive map. For several locations, show pins from a HOBA collection: a pin can have a name and a link to the location’s own page. For a ready-made map, embed one from Yandex Map Constructor.

What you need

For a ready-made map, take the published map ID from Map Constructor; this mode needs no API key. For your own pins, prepare a collection with the latitude and longitude of each location and get a JavaScript API key from Yandex for your live website. Restrict it to your domains: the key is visible in the browser and is not a secret. The plugin needs no HOBA permissions.

Where the data goes

The browser loads the map from Yandex when it is on or near the screen. In collection mode, coordinates and selected labels or links are included in the public page. Use locations and details meant for everyone to see; the plugin does not send form data.

How to enable it

  1. Have the operator check preview compatibility, register the package, and install the matching server renderer. After restarting Core, configure the key for pin mode and enable the plugin.

  2. Have the site author add the block, choose Constructor or pins, and enter the map ID or select the collection and fields. Publish the collection records for pin mode.

  3. Add the street address, hours, and an entrance landmark in plain text beside the map. Generate a test page.

Which settings go where

  • Operator · map.yandex 1.2.2: in Admin, use Plugins → Unsigned plugin package for install.json and put the archive renderer under HOBA_PLUGINS_DIR. Under Configure, set Yandex Maps API key (api_key) for pins. Default center latitude, Default center longitude, and Default zoom are optional. Restart Core, then choose Enable. Configure domain restrictions for the key in Yandex.

  • Author · set map.yandex block data in theme source or the composition API. Mode = points, Collection = places (example), Latitude field / Longitude field = lat / lng. Label, link, thumbnail, and date use title_field, link_field, thumb_field, and date_field. Optional center_lat, center_lng, zoom, height, and group control the view and grouping; height is in pixels.

  • For constructor mode, set Constructor map ID (constructor_id) to just the ID from the share link. Set the required block field collection to an empty string; you do not need to create a collection.

How to check it

Scroll to the map on a phone. Check every pin, label, and link. For a single location, compare the pin with the real entrance. Block the map to check that the address and contact information still make sense.

If something does not work

Pins with invalid coordinates are skipped. Pin mode shows messages for missing points or an API error. The plugin cannot detect errors inside the Constructor frame, and the interactive map needs JavaScript. Keep text addresses and ordinary directions links on the page.