Skip to content

Commit 1a6eecf

Browse files
authored
Remove innerMap variable from initMap function
Removed unused innerMap variable from initMap function.
1 parent ad9d77a commit 1a6eecf

File tree

1 file changed

+0
-3
lines changed
  • samples/advanced-markers-accessibility

1 file changed

+0
-3
lines changed

samples/advanced-markers-accessibility/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66

77
// [START maps_advanced_markers_accessibility]
88
const mapElement = document.querySelector('gmp-map') as google.maps.MapElement;
9-
let innerMap;
109

1110
async function initMap() {
1211
// Request needed libraries.
1312
const { Map, InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
1413
const { AdvancedMarkerElement, PinElement } = await google.maps.importLibrary("marker") as google.maps.MarkerLibrary;
1514

16-
innerMap = mapElement.innerMap;
17-
1815
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
1916
// receives the initial focus when tab is pressed. Use arrow keys to move
2017
// between markers; press tab again to cycle through the map controls.

0 commit comments

Comments
 (0)