import {
Map,
MapTileLayer,
MapZoomControl,
} from "@/registry/new-york-v4/ui/map"
import type { LatLngExpression } from "leaflet"
export function MapWithZoomControl() {
const TORONTO_COORDINATES = [43.6532, -79.3832] satisfies LatLngExpression
return (
<Map center={TORONTO_COORDINATES}>
<MapTileLayer />
<MapZoomControl />
</Map>
)
}
npx shadcn@latest add @shadcn-map/map-with-zoom-controlimport { MapWithZoomControl } from "@/components/map-with-zoom-control"<MapWithZoomControl />