We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d3eb9 commit 421ab36Copy full SHA for 421ab36
samples/ui-kit-place-details/index.ts
@@ -31,9 +31,9 @@ async function initMap(): Promise<void> {
31
let adjustedCenter = offsetLatLngRight(placeDetails.place.location, -0.005);
32
map.innerMap.panTo(adjustedCenter);
33
map.innerMap.setZoom(16);
34
-
35
marker.position = placeDetails.place.location;
36
marker.style.display = 'block';
+ marker.collisionBehavior = google.maps.CollisionBehavior.REQUIRED_AND_HIDES_OPTIONAL;
37
38
/* [START maps_ui_kit_place_details_event] */
39
// Add an event listener to handle map clicks.
@@ -71,4 +71,4 @@ declare global {
71
}
72
window.initMap = initMap;
73
/* [END maps_ui_kit_place_details] */
74
-export {};
+export {};
0 commit comments