diff --git a/samples/3d-accessibility-features/index.html b/samples/3d-accessibility-features/index.html index ad668215..85774752 100644 --- a/samples/3d-accessibility-features/index.html +++ b/samples/3d-accessibility-features/index.html @@ -11,14 +11,18 @@ - - -
- + ({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8"}); + + + diff --git a/samples/3d-accessibility-features/index.ts b/samples/3d-accessibility-features/index.ts index 8069b74f..28b0de37 100644 --- a/samples/3d-accessibility-features/index.ts +++ b/samples/3d-accessibility-features/index.ts @@ -14,14 +14,7 @@ async function initMap() { google.maps.importLibrary('marker'), ]); - const map = new Map3DElement({ - center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 }, - range: 13279.5, - tilt: 67.44, - heading: 0.01, - mode: 'SATELLITE', - gestureHandling: 'COOPERATIVE', - }); + const map3DElement = document.querySelector('gmp-map-3d')!; // Set LatLng and title text for the markers. The first marker (Boynton Pass) // receives the initial focus when tab is pressed. Use arrow keys to move @@ -75,11 +68,11 @@ async function initMap() { interactiveMarker.append(pin); - map.append(interactiveMarker); - map.append(popover); + map3DElement.append(interactiveMarker); + map3DElement.append(popover); }); - document.body.append(map); + document.body.append(map3DElement); } initMap();