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.jsonMap
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.jsonMarker 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.jsonPopup
A popup that is a normal shadcn card, anchored to a coordinate.
npx shadcn@latest add https://mapscale.io/r/map-popup.jsonControls
Zoom, compass, locate, fullscreen and a theme switcher built from shadcn buttons.
npx shadcn@latest add https://mapscale.io/r/map-controls.jsonLayer panel
A switch and an opacity slider for every layer group.
npx shadcn@latest add https://mapscale.io/r/layer-panel.jsonViewport 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.jsonTimeline
Play, scrub and speed up events over time, with markers and sparklines.
npx shadcn@latest add https://mapscale.io/r/timeline.jsonGeoJSON layer
Declare a source and layer in JSX. It survives style changes.
npx shadcn@latest add https://mapscale.io/r/geojson-layer.jsonRoute
Draw a route and request one through your own server.
npx shadcn@latest add https://mapscale.io/r/route-layer.jsonIsochrone
Reachability bands with an opacity ramp, from the isochrone API.
npx shadcn@latest add https://mapscale.io/r/isochrone-layer.jsonAddress 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.