Skip to content

Commit 0957d7c

Browse files
authored
fix: Updates remaining instances of glyph property to be glyphSrc or glyphText. (#866)
1 parent df3a134 commit 0957d7c

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

samples/3d-accessibility-features/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function initMap() {
4444

4545
tourStops.forEach(({ position, title }, i) => {
4646
const pin = new PinElement({
47-
glyph: `${i + 1}`,
47+
glyphText: `${i + 1}`,
4848
scale: 1.5,
4949
glyphColor: "#FFFFFF"
5050
});

samples/3d-marker-customization/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function init() {
5656
// Change many elements together and extrude marker.
5757
const pinTextGlyph = new PinElement({
5858
background: '#F0F6FC',
59-
glyph: 'E',
59+
glyphText: 'E',
6060
glyphColor: 'red',
6161
borderColor: '#0000FF',
6262
});
@@ -69,7 +69,7 @@ async function init() {
6969

7070
// Hide the glyph.
7171
const pinNoGlyph = new PinElement({
72-
glyph: '',
72+
glyphText: '',
7373
});
7474
const markerWithNoGlyph = new Marker3DElement({
7575
position: { lat: 37.415, lng: -122.005 },

samples/3d-marker-graphics/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function init() {
3636
const glyphImgUrl = 'https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg';
3737
const glyphSvgPinElement = new PinElement({
3838
background: 'white',
39-
glyph: new URL(glyphImgUrl),
39+
glyphSrc: new URL(glyphImgUrl),
4040
});
4141
const glyphSvgMarker = new Marker3DElement({
4242
position: { lat: 37.425, lng: -122.07, altitude: 100 },
@@ -61,7 +61,7 @@ async function init() {
6161

6262
const pinElement = new PinElement({
6363
background: place.iconBackgroundColor,
64-
glyph: new URL(String(place.svgIconMaskURI)),
64+
glyphSrc: new URL(String(place.svgIconMaskURI)),
6565
});
6666
const placeIconMarker = new Marker3DElement({
6767
position: place.location,

samples/advanced-markers-accessibility/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ async function initMap() {
4848
// Create the markers.
4949
tourStops.forEach(({position, title}, i) => {
5050
const pin = new PinElement({
51-
glyph: `${i + 1}`,
51+
//@ts-ignore
52+
glyphText: `${i + 1}`,
5253
scale: 1.5,
5354
});
5455
// [START maps_advanced_markers_accessibility_marker]

samples/routes-markers/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function getDirections() {
6868
...defaultOptions,
6969
map: innerMap,
7070
content: new PinElement({
71-
glyph: (index + 1).toString(),
71+
glyphText: (index + 1).toString(),
7272
glyphColor: 'white',
7373
background: 'green',
7474
borderColor: 'green',
@@ -82,7 +82,7 @@ async function getDirections() {
8282
...defaultOptions,
8383
map: innerMap,
8484
content: new PinElement({
85-
glyph: (index + 1).toString(),
85+
glyphText: (index + 1).toString(),
8686
glyphColor: 'white',
8787
background: 'blue',
8888
borderColor: 'blue',
@@ -96,7 +96,7 @@ async function getDirections() {
9696
...defaultOptions,
9797
map: innerMap,
9898
content: new PinElement({
99-
glyph: (index + 1).toString(),
99+
glyphText: (index + 1).toString(),
100100
glyphColor: 'white',
101101
background: 'red',
102102
borderColor: 'red',

samples/routes-route-matrix/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ async function initMap(): Promise<void> {
7373
for (const origin of request.origins) {
7474
if (origin.location) {
7575
const pin = new PinElement({
76-
glyph: "O",
76+
//@ts-ignore
77+
glyphText: "O",
7778
glyphColor: "white",
7879
background: "#137333",
7980
borderColor: "white",
@@ -94,7 +95,8 @@ async function initMap(): Promise<void> {
9495
const destination = request.destinations[i];
9596
if (destination.location) {
9697
const pin = new PinElement({
97-
glyph: "D",
98+
//@ts-ignore
99+
glyphText: "D",
98100
glyphColor: "white",
99101
background: "#C5221F",
100102
borderColor: "white",

0 commit comments

Comments
 (0)