Skip to content

Commit 4ec1af9

Browse files
committed
removed extraneous centering in place search event listener
1 parent 582b38c commit 4ec1af9

File tree

1 file changed

+0
-3
lines changed
  • samples/ui-kit-place-search-nearby

1 file changed

+0
-3
lines changed

samples/ui-kit-place-search-nearby/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ async function init(): Promise<void> {
5555
placeSearch.addEventListener('gmp-select', (event: Event) => {
5656
const { place } = event as any;
5757
markers.get(place.id)?.click();
58-
if (place.location) {
59-
map.center = place.location;
60-
}
6158
});
6259
placeSearch.addEventListener('gmp-load', () => {
6360
addMarkers();

0 commit comments

Comments
 (0)