Map
The simplest way to add an interactive map to your application.
The Map component handles AMap JS API setup, theming, and provides context for child components.
import { Map } from "@/components/ui/map";
export function BasicMapExample() {
return (
<div className="h-[400px] w-full">
<Map center={[116.397428, 39.90923]} zoom={12} />
</div>
);
}