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
When initially loading a map that uses CameraViewportState, the map is briefly centering to a different center than configured.
This behavior is different to when using CameraOptions, where the onCameraChangeListener is also fired twice, but both with the same center.
{type: Point, bbox: null, coordinates: [-9.999999999999972, 29.999999999999964]}
{type: Point, bbox: null, coordinates: [-117.918976, 33.812092000000014]}
When configuring both, viewport and cameraOptions, it first centers to the position from cameraOptions and then to the position of cameraOptions. Maybe there is some unwanted default/calculation when using viewport alone?
When initially loading a map that uses
CameraViewportState
, the map is briefly centering to a different center than configured.This behavior is different to when using
CameraOptions
, where theonCameraChangeListener
is also fired twice, but both with the same center.Output for
onCameraChangeListener
:When configuring both,
viewport
andcameraOptions
, it first centers to the position fromcameraOptions
and then to the position ofcameraOptions
. Maybe there is some unwanted default/calculation when usingviewport
alone?Output for
onCameraChangeListener
:The text was updated successfully, but these errors were encountered: