Maps
Districts on a Yandex Map
Districts or listings on a real Yandex Map: pins on the map and cards beside it with a photo, price per metre and listing count. Without a key the stock widget with pins works; with a key the JS API draws price tags and highlights pin and card together.
What you can change
- points: names, prices, listing counts, notes, photos, coordinates and links
- eyebrow, title, lede, zoom, latitude, longitude, apiKey
- accent and background, tone
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/map-004?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero dependencies, “use client”. Without apiKey — an <iframe> of the Yandex Maps widget (yandex.ru/map-widget/v1) with centre ll, zoom z, pins pt joined with “~” (style pm2dgm) and the theme scheme; no key needed. With apiKey — JS API v3: one <script> per URL (loadScript), a YMap with YMapDefaultSchemeLayer and YMapDefaultFeaturesLayer, YMapMarker pins as custom <button>/<a> tags with price and name; hovering a card or a pin sets a shared active, the pin gets data-active. In auto mode the map theme follows the page (dark class, color-scheme, prefers-color-scheme) via a MutationObserver. The centre is the mean of the points unless latitude/longitude are given. Layout: map and card list stacked, from 56rem (container query) 1.4fr/1fr with the list stretched to the map height. Palette --vibeui-realty-005-* is neutral: ink and paper via light-dark(), the site colours come through the accent, ink and background props; Cormorant Garamond and Manrope via <link precedence> from Google Fonts with system fallbacks. tone pins the scheme, accent, ink and background override colours.
Tags
- real estate
- realty
- property
- apartment
- agency
- listing
- map
- yandex
- districts
- pins
- markers
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…