JSFiddle - React, Tailwind, and code Playground

by Oski Krawczyk

HTML

<html>

<head>
   <title>Step 3 - Simple Marker</title>
   <style>
       body {
           height: 100vh;
           margin: 0;
       }
   </style>
</head>

<body>
   <script>
       (g => { var h, a, k, p = "The Google Maps JavaScript API", c = "google", l = "importLibrary", q = "__ib__", m = document, b = window; b = b[c] || (b[c] = {}); var d = b.maps || (b.maps = {}), r = new Set, e = new URLSearchParams, u = () => h || (h = new Promise(async (f, n) => { await (a = m.createElement("script")); e.set("libraries", [...r] + ""); for (k in g) e.set(k.replace(/[A-Z]/g, t => "_" + t[0].toLowerCase()), g[k]); e.set("callback", c + ".maps." + q); a.src = `https://maps.${c}apis.com/maps/api/js?` + e; d[q] = f; a.onerror = () => h = n(Error(p + " could not load.")); a.nonce = m.querySelector("script[nonce]")?.nonce || ""; m.head.append(a) })); d[l] ? console.warn(p + " only loads once. Ignoring:", g) : d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)) })({
           key: "AIzaSyDyt7QxSjnA40EC_Ew8q3msUEr-WB15CGg",
           v: "alpha",
       });
   </script>
   <script>
       let map3D = null;

       async function init() {
           const { Map3DElement, MapMode, Marker3DElement } = await google.maps.importLibrary("maps3d");

           map3D = new Map3DElement({
               center: {  lat: 25.807096, lng: -80.361428, altitude: 30},
               range: 200,
               tilt: 70,
               heading: 250,
               mode: MapMode.SATELLITE,
           });

           const markers = [
               { lat: 25.807096, lng: -80.361428, altitude: 20, label: "Google UK" },
               {  lat: 25.806642, lng:  -80.363456, altitude: 20, label: "Statue of Liberty" },
               {  lat: 25.805468, lng:-80.364287, altitude: 20, label: "Eiffel Tower" },
               {  lat: 25.804730, lng: -80.364945, altitude: 20, label: "Los Angeles" }
           ];

           markers.forEach(markerData => {
               const marker = new...