Skip to content

Commit

Permalink
fix(google-maps): Fix initial layer position on raster basemaps (#8892)
Browse files Browse the repository at this point in the history
  • Loading branch information
zbigg committed May 14, 2024
1 parent b5a6313 commit d504327
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/google-maps/src/google-maps-overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ export default class GoogleMapsOverlay {
);

const canvas = deck.getCanvas();
if (canvas?.parentElement) {
const parentStyle = canvas.parentElement.style;
const parent = canvas?.parentElement || deck.props.parent;
if (parent) {
const parentStyle = parent.style;
parentStyle.left = `${left}px`;
parentStyle.top = `${top}px`;
}
Expand Down

0 comments on commit d504327

Please sign in to comment.