File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed
3d-accessibility-features
advanced-markers-accessibility Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments