Skip to content

Commit

Permalink
fix: manually increments maps dependency; adds renderingtype to add m…
Browse files Browse the repository at this point in the history
…ap example.
  • Loading branch information
willum070 committed Oct 3, 2024
1 parent 2e77715 commit bfaaf94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion samples/add-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function initMap(): Promise<void> {

// 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
Expand All @@ -24,6 +24,7 @@ async function initMap(): Promise<void> {
zoom: 4,
center: position,
mapId: 'DEMO_MAP_ID',
renderingType: RenderingType.VECTOR,
}
);
// [END maps_add_map_instantiate_map]
Expand Down

0 comments on commit bfaaf94

Please sign in to comment.