Skip to content

Commit c8cd4a9

Browse files
authored
Update marker creation to append pin element
1 parent 37f380d commit c8cd4a9

File tree

1 file changed

+1
-1
lines changed
  • samples/advanced-markers-altitude

1 file changed

+1
-1
lines changed

samples/advanced-markers-altitude/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ async function initMap() {
2626
});
2727

2828
const marker = new AdvancedMarkerElement({
29-
content: pin.element,
3029
// Set altitude to 20 meters above the ground.
3130
position: { lat: 47.65170843460547, lng: -122.30754, altitude: 20 } as google.maps.LatLngAltitudeLiteral,
3231
});
32+
marker.append(pin);
3333

3434
mapElement.append(marker);
3535
// [END maps_advanced_markers_altitude_marker]

0 commit comments

Comments
 (0)