Skip to content

Commit

Permalink
fix(map): set other container position to relative (#357)
Browse files Browse the repository at this point in the history
The change in #356 did the right thing, but added the position:relative to the wrong element.
  • Loading branch information
usefulthink authored May 10, 2024
1 parent 10ede16 commit 8e77d70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/components/map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const Map = (props: PropsWithChildren<MapProps>) => {
() => ({
width: '100%',
height: '100%',
position: 'relative',
// when using deckgl, the map should be sent to the back
zIndex: isDeckGlControlled ? -1 : 0,

Expand Down
1 change: 0 additions & 1 deletion src/components/map/use-map-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export function useMapInstance(
} else {
mapDiv = document.createElement('div');
mapDiv.style.height = '100%';
mapDiv.style.position = 'relative';
container.appendChild(mapDiv);
map = new google.maps.Map(mapDiv, mapOptions);
}
Expand Down

0 comments on commit 8e77d70

Please sign in to comment.