diff --git a/samples/advanced-markers-graphics/index.html b/samples/advanced-markers-graphics/index.html index 2185401a..8357aeb6 100644 --- a/samples/advanced-markers-graphics/index.html +++ b/samples/advanced-markers-graphics/index.html @@ -19,7 +19,7 @@ + ({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"}); diff --git a/samples/advanced-markers-graphics/index.ts b/samples/advanced-markers-graphics/index.ts index 13254f07..de45e50e 100644 --- a/samples/advanced-markers-graphics/index.ts +++ b/samples/advanced-markers-graphics/index.ts @@ -25,12 +25,14 @@ async function initMap() { const pinSvg = parser.parseFromString(pinSvgString, 'image/svg+xml').documentElement; - const pinSvgMarkerView = new AdvancedMarkerElement({ map, position: { lat: 37.42475, lng: -122.094 }, content: pinSvg, title: 'A marker using a custom SVG image.', + //@ts-ignore + anchorLeft: "-50%", + anchorTop: "-50%", }); // [END maps_advanced_markers_graphics_inline] @@ -44,6 +46,9 @@ async function initMap() { position: { lat: 37.434, lng: -122.082 }, content: beachFlagImg, title: 'A marker using a custom PNG Image', + //@ts-ignore + anchorLeft: "0px", + anchorTop: "100%", }); // [END maps_advanced_markers_graphics_png] @@ -84,7 +89,6 @@ async function initMap() { content: pinElement.element, title: place.displayName, }); - // [END maps_advanced_markers_graphics_place_icon] // [START maps_advanced_markers_graphics_fontawesome] @@ -108,4 +112,4 @@ async function initMap() { } initMap(); -// [END maps_advanced_markers_graphics] \ No newline at end of file +// [END maps_advanced_markers_graphics]