You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Camera tracking on a trip layer with Tile3DLayer, with dynamic elevation
Screen.Recording.2024-12-01.at.11.04.32.PM.mov
Notice how the map is tracking the lat/lng, but given its vertical displacement and the set bearing, it does not correctly center the head of the trip. (I am toggling ReactGoogleMaps and Tile3DLayer to portray difference)
Proposal
Extend the MapViewState to include elevation.
export type MapViewState = {
/** Longitude of the map center */
longitude: number;
/** Latitude of the map center */
latitude: number;
+ /** Elevation of the map center, in meters */+ elevation: number;
/** Zoom level */
zoom: number;
/** Pitch (tilt) of the map, in degrees. `0` looks top down */
pitch?: number;
/** Bearing (rotation) of the map, in degrees. `0` is north up */
bearing?: number;
/** Min zoom, default `0` */
minZoom?: number;
/** Max zoom, default `20` */
maxZoom?: number;
/** Min pitch, default `0` */
minPitch?: number;
/** Max pitch, default `60` */
maxPitch?: number;
/** Viewport center offsets from lng, lat in meters */
position?: number[];
} & CommonViewState;
The text was updated successfully, but these errors were encountered:
Target Use Case
Camera tracking on a trip layer with Tile3DLayer, with dynamic elevation
Screen.Recording.2024-12-01.at.11.04.32.PM.mov
Notice how the map is tracking the lat/lng, but given its vertical displacement and the set bearing, it does not correctly center the head of the trip. (I am toggling ReactGoogleMaps and Tile3DLayer to portray difference)
Proposal
Extend the
MapViewState
to include elevation.The text was updated successfully, but these errors were encountered: