diff --git a/samples/advanced-markers-accessibility/index.ts b/samples/advanced-markers-accessibility/index.ts index 7acaaacae4..c560200ee5 100644 --- a/samples/advanced-markers-accessibility/index.ts +++ b/samples/advanced-markers-accessibility/index.ts @@ -49,15 +49,17 @@ async function initMap() { tourStops.forEach(({position, title}, i) => { const pin = new PinElement({ glyph: `${i + 1}`, + scale: 1.5, }); - + // [START maps_advanced_markers_accessibility_marker] const marker = new AdvancedMarkerElement({ position, map, title: `${i + 1}. ${title}`, content: pin.element, }); - + // [END maps_advanced_markers_accessibility_marker] + // [START maps_advanced_markers_accessibility_event_listener] // Add a click listener for each marker, and set up the info window. marker.addListener('click', ({ domEvent, latLng }) => { const { target } = domEvent; @@ -65,6 +67,7 @@ async function initMap() { infoWindow.setContent(marker.title); infoWindow.open(marker.map, marker); }); + // [END maps_advanced_markers_accessibility_event_listener] }); }