@@ -60,7 +60,7 @@ async function initMap() {
60
60
} ) ;
61
61
const markerViewBorder = new AdvancedMarkerElement ( {
62
62
map,
63
- position : { lat : 37.415 , lng : - 122.03 } ,
63
+ position : { lat : 37.415 , lng : - 122.035 } ,
64
64
content : pinBorder . element ,
65
65
} ) ;
66
66
// [END maps_advanced_markers_basic_style_border]
@@ -72,19 +72,31 @@ async function initMap() {
72
72
} ) ;
73
73
const markerViewGlyph = new AdvancedMarkerElement ( {
74
74
map,
75
- position : { lat : 37.415 , lng : - 122.02 } ,
75
+ position : { lat : 37.415 , lng : - 122.025 } ,
76
76
content : pinGlyph . element ,
77
77
} ) ;
78
78
// [END maps_advanced_markers_basic_style_glyph]
79
79
80
+ // [START maps_advanced_markers_basic_style_text_glyph]
81
+ const pinTextGlyph = new PinElement ( {
82
+ glyph : 'T' ,
83
+ glyphColor : 'white' ,
84
+ } ) ;
85
+ const markerViewGlyphText = new AdvancedMarkerElement ( {
86
+ map,
87
+ position : { lat : 37.415 , lng : - 122.015 } ,
88
+ content : pinTextGlyph . element ,
89
+ } ) ;
90
+ // [END maps_advanced_markers_basic_style_text_glyph]
91
+
80
92
// [START maps_advanced_markers_basic_style_hide_glyph]
81
93
// Hide the glyph.
82
94
const pinNoGlyph = new PinElement ( {
83
95
glyph : '' ,
84
96
} ) ;
85
97
const markerViewNoGlyph = new AdvancedMarkerElement ( {
86
98
map,
87
- position : { lat : 37.415 , lng : - 122.01 } ,
99
+ position : { lat : 37.415 , lng : - 122.005 } ,
88
100
content : pinNoGlyph . element ,
89
101
} ) ;
90
102
// [END maps_advanced_markers_basic_style_hide_glyph]
0 commit comments