From bfaaf943862302381efe20f08a6c02361479d108 Mon Sep 17 00:00:00 2001 From: William French Date: Thu, 3 Oct 2024 10:17:13 -0700 Subject: [PATCH] fix: manually increments maps dependency; adds renderingtype to add map example. --- package.json | 2 +- samples/add-map/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6e09fd41f8..d34429963f 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@googlemaps/three": "^4.0.13", "@playwright/test": "^1.44.0", "@types/geojson": "^7946.0.14", - "@types/google.maps": "^3.53.5", + "@types/google.maps": "^3.58.2", "@types/google.visualization": "0.0.73", "@types/jest": "^29.5.6", "@types/react": "^18.3.3", diff --git a/samples/add-map/index.ts b/samples/add-map/index.ts index 764bb2f899..7135f609e3 100644 --- a/samples/add-map/index.ts +++ b/samples/add-map/index.ts @@ -14,7 +14,7 @@ async function initMap(): Promise { // Request needed libraries. //@ts-ignore - const { Map } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary; + const { Map, RenderingType } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary; const { AdvancedMarkerElement } = await google.maps.importLibrary("marker") as google.maps.MarkerLibrary; // The map, centered at Uluru @@ -24,6 +24,7 @@ async function initMap(): Promise { zoom: 4, center: position, mapId: 'DEMO_MAP_ID', + renderingType: RenderingType.VECTOR, } ); // [END maps_add_map_instantiate_map]