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
We did not find exact way to reproduce error in runtime, we had only exception report from user.
Link to Demonstration
Cannot be provided
Expected Behavior
map.cameraForBounds to return values of type defined
Actual Behavior
Sometimes we receive undefined from cameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CenterZoomBearing but it not mentioned in type definition.
I'm not sure I fully understand the issue.
If this is a typing issue of the return value, feel free to open a PR to fix this.
Note that we usually don't patch old versions, so if you would like to fix it in 2.4 it's on you.
maplibre-gl-js version: 2.4.0
browser: Chrome
Steps to Trigger Behavior
We did not find exact way to reproduce error in runtime, we had only exception report from user.
Link to Demonstration
Cannot be provided
Expected Behavior
map.cameraForBounds
to return values of type definedActual Behavior
Sometimes we receive
undefined
fromcameraForBounds(bounds: LngLatBoundsLike, options?: CameraForBoundsOptions): CenterZoomBearing
but it not mentioned in type definition.Here is actual return:
maplibre-gl-js/src/ui/camera.ts
Lines 725 to 728 in 0aeb2c0
The text was updated successfully, but these errors were encountered: