Maps

Map with an address bar: OSM without a key, 2GIS with one

A full-width map with a bar underneath: the address, hours and entrance sit below the map instead of covering the block you came to see. Without a key it shows OpenStreetMap; with a MapGL key — a 2GIS map with a dark style; the “Open in 2GIS” link is always there.

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

  • address and the address point: the caption under the map and the 2GIS link
  • latitude, longitude, zoom — the point and the frame scale; city — the city in the “Open in 2GIS” link
  • embedUrl — a ready link to any embeddable map instead of computing from coordinates

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
Map with an address bar: OSM without a key, 2GIS with one — A full-width map with a bar underneath: the address, hours and entrance sit below the map instead of covering the block you came to see. Without a key it shows OpenStreetMap; with a MapGL key — a 2GIS map with a dark style; the “Open in 2GIS” link is always there.

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-003?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

<Map003 address="6 Presnenskaya nab., Moscow" latitude={55.7482} longitude={37.539} city="moscow" />

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

Settings

Address
address · default: 6 Presnenskaya nab., Moscow
Zoom
zoom · default: 16
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Map with an address bar: OSM without a key, 2GIS with one 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 Map with an address bar: OSM without a key, 2GIS with one depend on?
No npm packages beyond React and Tailwind CSS. It also installs catalog components: heading-001.
What can I change in Map with an address bar: OSM without a key, 2GIS with one?
Adapt: address and the address point: the caption under the map and the 2GIS link; latitude, longitude, zoom — the point and the frame scale; city — the city in the “Open in 2GIS” link; embedUrl — a ready link to any embeddable map instead of computing from coordinates. Keep as installed: the heading-001 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the local --vibeui-map-003-* palette — do not swap it for your theme tokens; OpenStreetMap as the default mode: the map must work without a key, otherwise the page shows an empty frame.
Is Map with an address bar: OSM without a key, 2GIS with one free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/map-003.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 heading-001 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. The block is self-contained: one file, no npm dependencies, its own palette in local variables --vibeui-map-003-*. The map is real with no setup: by default it embeds OpenStreetMap (an openstreetmap.org/export/embed.html iframe), no key needed — the bbox is computed from zoom, the marker is placed by coordinates, in the dark theme the tiles are inverted with a CSS filter. The old widgets.2gis.com widget is gone (returns 451) and 2gis.ru refuses to be framed, so 2GIS is unavailable without a key. A ready link to any embeddable map can be passed through embedUrl. When apiKey is set, MapGL 2GIS replaces OSM: a 2GIS map, a dark style by id and scripting. If MapGL fails to load, the block falls back to OSM and says so on a small plate.

Tags

  • map
  • 2gis
  • mapgl
  • location
  • address
  • branch
  • composite
Component source

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

Loading…