We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a9dc53 commit f8d1ae8Copy full SHA for f8d1ae8
samples/advanced-markers-accessibility/index.ts
@@ -53,11 +53,12 @@ async function initMap() {
53
// [START maps_advanced_markers_accessibility_marker]
54
const marker = new AdvancedMarkerElement({
55
position,
56
- map: innerMap,
57
title: `${i + 1}. ${title}`,
58
content: pin.element,
59
gmpClickable: true,
60
});
+
61
+ mapElement.append(marker);
62
// [END maps_advanced_markers_accessibility_marker]
63
// [START maps_advanced_markers_accessibility_event_listener]
64
// Add a click listener for each marker, and set up the info window.
@@ -72,4 +73,4 @@ async function initMap() {
72
73
}
74
75
initMap();
-// [END maps_advanced_markers_accessibility]
76
+// [END maps_advanced_markers_accessibility]
0 commit comments