We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20f3872 commit 51c06f5Copy full SHA for 51c06f5
samples/3d-accessibility-features/index.ts
@@ -47,20 +47,20 @@ async function initMap() {
47
scale: 1.5,
48
glyphColor: "#FFFFFF"
49
});
50
- const popover = new PopoverElement({
51
- open: true,
52
- });
+ const popover = new PopoverElement();
53
54
const content = `${i + 1}. ${title}`;
55
const header = document.createElement('span');
56
// Include the label for screen readers.
57
header.ariaLabel = `This is marker ${i + 1}. ${title}`;
58
header.slot = 'header';
59
60
- popover.append(header);
+ popover.append(header);
61
popover.append(content);
62
63
const interactiveMarker = new Marker3DInteractiveElement({
+ // Include a title, used for accessibility text for use by screen readers.
+ title,
64
position,
65
gmpPopoverTargetElement: popover
66
0 commit comments