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.
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
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-003?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
The block is self-contained: one file, no 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
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…