googlemaps / googlemaps/js-samples

feat: update 'samples/overlay-hideshow' to account for tilt (v=beta)

Open
#929 7 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
TypeScript
Stars
805
Forks
836
PR merge metrics
No merged PRs in 30d

Description

I noticed that the [google.maps.OverlayView](https://developers.google.com/maps/documentation/javascript/reference#OverlayView) in 'overlay-hideshow' sample gets distorted when the map is tilted (beta feature).

See example (hold shift and drag with the mouse to tilt and rotate the map)
https://jsfiddle.net/jq5f0zsk/1/

The issue becomes apparent when the tilt > 0
![image](https://user-images.githubusercontent.com/49369215/138587205-07671287-918c-4831-b603-ffbc1227d39f.png)

Is there a way to configure the OverlayView to remain "flat"?
Alternatively, perhaps the 'div' can be transformed (3d rotation) to compensate for the tilt and rotation of the camera?

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.