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
export interface CameraOptions {
/** Map center */
center?: LngLatLike;
/** Map zoom level */
zoom?: number;
/** Map rotation bearing in degrees counter-clockwise from north */
bearing?: number;
/** Map angle in degrees at which the camera is looking at the ground */
pitch?: number;
/** If zooming, the zoom center (defaults to map center) */
around?: LngLatLike;
}
While the types have the padding option for bounds related methods, it looks like the other methods like jumpTo and easeTo take the padding into consideration:
Padding is missing in CameraOptions type definitions.
source: https://github.com/maplibre/maplibre-gl-js/blob/main/src/ui/camera.js#L65
types: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/maplibre-gl/index.d.ts#L1781
While the types have the padding option for bounds related methods, it looks like the other methods like jumpTo and easeTo take the padding into consideration:
https://github.com/maplibre/maplibre-gl-js/blob/main/src/ui/camera.js#L810
The text was updated successfully, but these errors were encountered: