From 601756eed3a05c514153e70605d5f31bbd3cf9a9 Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 2 May 2024 11:35:58 -0700 Subject: [PATCH] docs: Adds region tags and scale attribute (#1710) * Fix: Adds region tags and scale attribute Adds region tags for documentation; adds scale 1.5. * Update index.ts --- samples/advanced-markers-accessibility/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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] }); }