next.js/examples/with-google-maps-embed/app/page.tsx
page.tsx18 lines351 B
import { GoogleMapsEmbed } from "@next/third-parties/google";

const API_KEY = process.env.NEXT_PUBLIC_GOOGLE_API_KEY;

export default function Page() {
  return (
    <div>
      <GoogleMapsEmbed
        apiKey={API_KEY}
        height={400}
        width={700}
        mode="place"
        q="Brooklyn+Bridge,New+York,NY"
      />
    </div>
  );
}
Quest for Codev2.0.0
/
SIGN IN