Skip to content

Commit 723cda8

Browse files
authored
feat: Adds rendering type map option. (#1133)
1 parent cff1b48 commit 723cda8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

samples/map-simple/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
* Copyright 2025 Google LLC. All Rights Reserved.
44
* SPDX-License-Identifier: Apache-2.0
55
*/
6-
// TEST COMMENT 001
6+
77
// [START maps_map_simple]
88
let map: google.maps.Map;
99
async function initMap(): Promise<void> {
10-
const { Map } = (await google.maps.importLibrary(
10+
const { Map, RenderingType } = (await google.maps.importLibrary(
1111
'maps'
1212
)) as google.maps.MapsLibrary;
1313
map = new Map(document.getElementById('map') as HTMLElement, {
1414
center: { lat: -34.397, lng: 150.644 },
1515
zoom: 8,
16+
renderingType: RenderingType.VECTOR,
1617
});
1718
}
1819

0 commit comments

Comments
 (0)