From 6973af1e63b6a392ef08b013e253cb66eee12aee Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 1 Oct 2026 12:18:32 -0700 Subject: [PATCH 1/6] fix: Adds title to route markers for screen reader support Change-Id: I7373959575fb7b36d7c4b03d9dcc6750705cacb4 --- samples/routes-markers/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/routes-markers/index.ts b/samples/routes-markers/index.ts index 04b28be92..7f466eaa5 100644 --- a/samples/routes-markers/index.ts +++ b/samples/routes-markers/index.ts @@ -67,6 +67,7 @@ async function getDirections() { if (index === 0) { return { ...defaultOptions, + title: 'Origin', map: innerMap, content: new PinElement({ glyphText: (index + 1).toString(), @@ -81,6 +82,7 @@ async function getDirections() { if (!(index === 0 || index === totalMarkers - 1)) { return { ...defaultOptions, + title: `Waypoint ${index + 1}`, map: innerMap, content: new PinElement({ glyphText: (index + 1).toString(), @@ -95,6 +97,7 @@ async function getDirections() { if (index === totalMarkers - 1) { return { ...defaultOptions, + title: 'Destination', map: innerMap, content: new PinElement({ glyphText: (index + 1).toString(), From cc2b2413e9352b27b718b45257fe26ac5885c3db Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 1 Oct 2026 12:27:06 -0700 Subject: [PATCH 2/6] fix: use .toString() to fix restrict-template-expressions warning Change-Id: I3878ead95da34fb3f54336e3b13a80adc8d7a344 --- samples/routes-markers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/routes-markers/index.ts b/samples/routes-markers/index.ts index 7f466eaa5..c729f781c 100644 --- a/samples/routes-markers/index.ts +++ b/samples/routes-markers/index.ts @@ -82,7 +82,7 @@ async function getDirections() { if (!(index === 0 || index === totalMarkers - 1)) { return { ...defaultOptions, - title: `Waypoint ${index + 1}`, + title: `Waypoint ${(index + 1).toString()}`, map: innerMap, content: new PinElement({ glyphText: (index + 1).toString(), From d3e39cae73e248e7cfd43456d0f599552fc0f2a2 Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 1 Oct 2026 12:40:19 -0700 Subject: [PATCH 3/6] Adds gmpClickable to markers for accessibility Change-Id: I3c356628657681eaae9db161f2a7bb0dc64ba121 --- samples/routes-markers/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/routes-markers/index.ts b/samples/routes-markers/index.ts index c729f781c..fbc743cb5 100644 --- a/samples/routes-markers/index.ts +++ b/samples/routes-markers/index.ts @@ -69,6 +69,7 @@ async function getDirections() { ...defaultOptions, title: 'Origin', map: innerMap, + gmpClickable: true, content: new PinElement({ glyphText: (index + 1).toString(), glyphColor: 'white', @@ -84,6 +85,7 @@ async function getDirections() { ...defaultOptions, title: `Waypoint ${(index + 1).toString()}`, map: innerMap, + gmpClickable: true, content: new PinElement({ glyphText: (index + 1).toString(), glyphColor: 'white', @@ -99,6 +101,7 @@ async function getDirections() { ...defaultOptions, title: 'Destination', map: innerMap, + gmpClickable: true, content: new PinElement({ glyphText: (index + 1).toString(), glyphColor: 'white', From 2136044f503cb049e9e9b1cc6e89f8f6341db9de Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 1 Oct 2026 12:43:48 -0700 Subject: [PATCH 4/6] increases marker scale to 1.5 Change-Id: I7dd37afd04ac1f6d2ddeb1b7fff2377686773870 --- samples/routes-markers/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/routes-markers/index.ts b/samples/routes-markers/index.ts index fbc743cb5..d946cb4be 100644 --- a/samples/routes-markers/index.ts +++ b/samples/routes-markers/index.ts @@ -75,6 +75,7 @@ async function getDirections() { glyphColor: 'white', background: 'green', borderColor: 'green', + scale: 1.5, }), }; } @@ -91,6 +92,7 @@ async function getDirections() { glyphColor: 'white', background: 'blue', borderColor: 'blue', + scale: 1.5, }), }; } @@ -107,6 +109,7 @@ async function getDirections() { glyphColor: 'white', background: 'red', borderColor: 'red', + scale: 1.5, }), }; } From 80c474dc4bec0be5ce6f200140f9233bd04f586a Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 1 Oct 2026 12:57:27 -0700 Subject: [PATCH 5/6] adds region tag for snippet example Change-Id: I1f289887e485da571cf5489d68ef91c2b81403db --- samples/routes-markers/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/routes-markers/index.ts b/samples/routes-markers/index.ts index d946cb4be..98c7b7bd5 100644 --- a/samples/routes-markers/index.ts +++ b/samples/routes-markers/index.ts @@ -80,6 +80,7 @@ async function getDirections() { }; } + // [START maps_routes_markers_style_maker_intermediate] // Style all intermediate waypoints. if (!(index === 0 || index === totalMarkers - 1)) { return { @@ -96,7 +97,9 @@ async function getDirections() { }), }; } + // [END maps_routes_markers_style_maker_intermediate] + // [START maps_routes_markers_style_maker_destination] // Style the destination waypoint. if (index === totalMarkers - 1) { return { @@ -109,7 +112,6 @@ async function getDirections() { glyphColor: 'white', background: 'red', borderColor: 'red', - scale: 1.5, }), }; } From d99fbc037df936d88b76a29b92f67ea74fd2d475 Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 1 Oct 2026 13:00:04 -0700 Subject: [PATCH 6/6] removes orphaned region tag we don't need Change-Id: Ib65624897397b635ffdd54680cbff730c9902463 --- samples/routes-markers/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/routes-markers/index.ts b/samples/routes-markers/index.ts index 98c7b7bd5..868ed1479 100644 --- a/samples/routes-markers/index.ts +++ b/samples/routes-markers/index.ts @@ -99,7 +99,6 @@ async function getDirections() { } // [END maps_routes_markers_style_maker_intermediate] - // [START maps_routes_markers_style_maker_destination] // Style the destination waypoint. if (index === totalMarkers - 1) { return {