Components

Maps for shadcn/ui, on MapScale.

Copy a Thai map into your Next.js app with one command. The components use your shadcn theme tokens, default to MapScale styles, and always carry the OpenStreetMap credit.

Install everything

npx shadcn@latest add https://mapscale.io/r/map-kit.json
  • Map

    The map itself. Four MapScale themes, Thai or English labels, light and dark, and a credit that cannot be removed.

    npx shadcn@latest add https://mapscale.io/r/map.json
  • Marker and cluster

    React content as markers, plus a clustered GeoJSON layer coloured from your theme tokens.

    npx shadcn@latest add https://mapscale.io/r/map-marker.json
  • Popup

    A popup that is a normal shadcn card, anchored to a coordinate.

    npx shadcn@latest add https://mapscale.io/r/map-popup.json
  • Controls

    Zoom, compass, locate, fullscreen and a theme switcher built from shadcn buttons.

    npx shadcn@latest add https://mapscale.io/r/map-controls.json
  • Layer panel

    A switch and an opacity slider for every layer group.

    npx shadcn@latest add https://mapscale.io/r/layer-panel.json
  • Viewport legend

    A live legend of what is on screen, with percentage bars and click-to-filter.

    npx shadcn@latest add https://mapscale.io/r/viewport-legend.json
  • Timeline

    Play, scrub and speed up events over time, with markers and sparklines.

    npx shadcn@latest add https://mapscale.io/r/timeline.json
  • GeoJSON layer

    Declare a source and layer in JSX. It survives style changes.

    npx shadcn@latest add https://mapscale.io/r/geojson-layer.json
  • Route

    Draw a route and request one through your own server.

    npx shadcn@latest add https://mapscale.io/r/route-layer.json
  • Isochrone

    Reachability bands with an opacity ramp, from the isochrone API.

    npx shadcn@latest add https://mapscale.io/r/isochrone-layer.json
  • Address search

    Thai and English address autocomplete that flies the map to the result.

    npx shadcn@latest add https://mapscale.io/r/address-autocomplete.json

Previews run on MapScale's public Thailand archive.