Data displayMapView

Open in Create
Search
astronomic.dev

MapView

Pro

For homes or places on a map with price pins that open a small card, loaded only when it comes into view.

File
MapView.astro
Group
Data display
Kind
Interactive: inline script
Examples
4
import MapView from "@astronomic/ui-pro/components/MapView.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Price pins

Eight homes in Denver. Each pin shows its price (rentals in the second color) and opens a small card. The map loads only when it comes into view.

Force state
main.astro

One home

One point, as on a home's own page: the map centers on it at street zoom.

Force state
one-home.astro

Our own map style

The default style: streets, water, parks and names in the theme's own colors, read when the map loads. On a site it follows light and dark mode as they change.

Force state
astronomic-style.astro

When the map cannot load

No WebGL, a failed download, or a style that errors: the note shows in the map's place.

Force state
failed.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.