GMapsTest

HTML

<!-- <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?&key=AIzaSyD-koGdjEV5kZibbd4PKOPt9n_5DIug8Mc&q=Alberta&loading=async"></script> -->
<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: "AIzaSyD-koGdjEV5kZibbd4PKOPt9n_5DIug8Mc",
    v: "weekly",
    // Use the 'v' parameter to indicate the version to use (weekly, beta, alpha, etc.).
    // Add other bootstrap parameters as needed, using camel case.
  });
</script>
<svg class="svg">
  <clipPath id="albertaClip" clipPathUnits="objectBoundingBox">
    <path d="m1,0 c0,0.333,-0.001,0.667,-0.001,1 c-0.134,0,-0.268,0,-0.401,0 c-0.01,0,-0.001,-0.001,-0.004,-0.004 c-0.003,-0.002,-0.007,-0.002,-0.009,-0.004 c0.002,-0.001,-0.003,-0.003,0,-0.003 c-0.002,-0.001,-0.004,-0.002,-0.006,-0.002 c0,-0.002,-0.003,-0.001,-0.004,0 c-0.001,-0.001,-0.002,0,-0.003,0 c0,-0.001,-0.003,-0.001,-0.003,-0.002 c-0.002,0,-0.002,0.001,-0.004,0 c-0.001,-0.001,-0.004,0,-0.005,-0.001 c0.001,0,0.001,-0.001,0,-0.001 c0.001,0,-0.001,-0.001,0.001,-0.002 c0.005,-0.002,-0.007,-0.001,-0.006,-0.003 c0.002,-0.002,-0.007,-0.003,-0.003,-0.004 c0.001,-0.003,-0.004,-0.002,-0.004,-0.003 c-0.001,-0.002,-0.001,-0.001,-0.004,-0.001 c-0.009,-0.003,0.005,-0.019,-0.005,-0.014 c0,0,-0.001,0,-0.002,0 c0,0,-0.001,0.001,-0.002,0.001 c-0.001,0,-0.003,-0.001,-0.004,-0.001 c-0.001,0.002,-0.006,-0.004,-0.006,-0.004...

CSS

body {
  margin: 0;
}

.svg {
  position: absolute;
  width: 0;
  height: 0;
}

.clipped {
  width: 100%;
  aspect-ratio: 15625000000 / 29789305949;
   -webkit-clip-path: url(#albertaClip);
  clip-path: url(#albertaClip);
}

.container {
  width: 227.5px;
  min-height: 100vh;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 15625000000 / 29789305949;
  filter: drop-shadow(0 3px 34px #00A651);
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
}

#maps {
  background: green;
  width: 100%;
  height: 100%;
}

#map {
  width: 100vw;
  min-height: 100vh;
  position: absolute;
}

#albertaMapContainer {
  height: 100%;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

#albertaMapContainer {
  position: relative;
}

#map {
  width: 200vw;
  height: 200vw;
  min-height: 80vh
  ;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#albertaMap {
  width: 200vw;
  height: 200vw;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 15625000000 / 29789305949;
}

#map, #albertaMap {
  min-width: 100vw;
  min-height: 100vw;
}

#maps {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

JavaScript

const coordinates = { lat: 54.9, lng: -115 };
const styleCanadaDark = [
    {
        "featureType": "administrative.country",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "administrative.province",
        "elementType": "all",
        "stylers": [
            {
                "invert_lightness": true
            },
            {
                "visibility": "on"
            }
        ]
    },
    {
        "featureType": "administrative.locality",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "administrative.neighborhood",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "administrative.land_parcel",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "landscape.man_made",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "off"
            }
        ]
    },
    {
        "featureType": "landscape.natural",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "on"
            }
        ]
    },
    {
        "featureType": "landscape.natural.landcover",
        "elementType": "all",
        "stylers": [
            {
                "visibility": "on"
            },
            {
                "gamma": "1.00"
            },
            {
                "lightness": "-75"
            },
            {
                "saturation": "-40"
            },
            {
                "hue": "#0023ff"
            }
        ]
    },
    {
        "featureType": "landscape.natural.landcover",
        "elementType": "geometry",
       ...