Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/samples/advanced-markers-graphics/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ async function initMap() {

const beachFlagMarker = new AdvancedMarkerElement({
position: { lat: 37.434, lng: -122.082 },
content: beachFlagImg,
title: 'A marker using a custom PNG Image',
//@ts-ignore
anchorLeft: '0px',
anchorTop: '100%',
});
beachFlagMarker.append(beachFlagImg);
mapElement.append(beachFlagMarker);
// [END maps_advanced_markers_graphics_png]

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/samples/advanced-markers-graphics/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- prettier-ignore -->
<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: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
<script type="module" crossorigin src="./assets/index-DglL16tP.js"></script>
<script type="module" crossorigin src="./assets/index-Cgxqtzwn.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-i_98oPIq.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/advanced-markers-graphics/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ async function initMap() {
beachFlagImg.src = new URL('./public/beachflag.png', import.meta.url).href;
const beachFlagMarker = new AdvancedMarkerElement({
position: { lat: 37.434, lng: -122.082 },
content: beachFlagImg,
title: 'A marker using a custom PNG Image',
//@ts-ignore
anchorLeft: '0px',
anchorTop: '100%',
});
beachFlagMarker.append(beachFlagImg);
mapElement.append(beachFlagMarker);
// [END maps_advanced_markers_graphics_png]
// [START maps_advanced_markers_graphics_svg_glyph]
Expand Down
2 changes: 1 addition & 1 deletion dist/samples/advanced-markers-graphics/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ async function initMap() {

const beachFlagMarker = new AdvancedMarkerElement({
position: { lat: 37.434, lng: -122.082 },
content: beachFlagImg,
title: 'A marker using a custom PNG Image',
//@ts-ignore
anchorLeft: '0px',
anchorTop: '100%',
});
beachFlagMarker.append(beachFlagImg);
mapElement.append(beachFlagMarker);
// [END maps_advanced_markers_graphics_png]

Expand Down
2 changes: 1 addition & 1 deletion dist/samples/advanced-markers-graphics/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ async function initMap() {
beachFlagImg.src = new URL('./public/beachflag.png', import.meta.url).href;
const beachFlagMarker = new AdvancedMarkerElement({
position: { lat: 37.434, lng: -122.082 },
content: beachFlagImg,
title: 'A marker using a custom PNG Image',
//@ts-ignore
anchorLeft: '0px',
anchorTop: '100%',
});
beachFlagMarker.append(beachFlagImg);
mapElement.append(beachFlagMarker);


Expand Down