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...
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",
...