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.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

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

Built from

The install command brings these components too. The block only passes them props: their palette and behaviour stay their own.

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
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.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/map-004?lang=en&theme=dark

2Paste into the chat
3Get it in your project

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…

How to use

<Map004
  title="Where you will live"
  zoom={11}
  points={[
    { name: "Riverside", price: "€6,200", count: "164 listings", note: "art nouveau, quiet courtyards", image: "/photos/district-01.webp", latitude: 59.9632, longitude: 30.3117, href: "/districts/riverside" },
  ]}
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Theme
tone · default: auto
Title
title · default: Where you will live
Zoom
zoom · default: 11
Accent
accent · default: theme colour
Background
background · default: theme colour

Used in scenarios

FAQ

How do I add Districts on a Yandex Map with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Districts on a Yandex Map depend on?
No npm packages beyond React and Tailwind CSS. It also installs catalog components: card-136.
What can I change in Districts on a Yandex Map?
Adapt: points: names, prices, listing counts, notes, photos, coordinates and links; eyebrow, title, lede, zoom, latitude, longitude, apiKey; accent and background, tone. Keep as installed: the card-136 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; a real Yandex Map instead of an image: the widget without a key, the JS API with one — the code handles both; the mutual highlight of card and pin through a shared active (in JS API mode).
Is Districts on a Yandex Map free?
The preview is open to everyone; the source is available with a PRO subscription.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/map-004.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

A composite block: imports card-136 from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm 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
  • composite
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…