Skip to content

Commit 2b51ca8

Browse files
authored
Change appendChild to append for markers
1 parent 8e03565 commit 2b51ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/advanced-markers-zoom/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function initMap() {
4242
const markers: google.maps.marker.AdvancedMarkerElement[] = [];
4343
for (const { position, title } of markerOptions) {
4444
const marker = new AdvancedMarkerElement({ position, title });
45-
mapElement.appendChild(marker);
45+
mapElement.append(marker);
4646
markers.push(marker);
4747
}
4848

0 commit comments

Comments
 (0)