Add pixel units and left and right padding options for fitView

This commit is contained in:
peterkogo
2025-03-05 17:38:30 +01:00
parent cb685281d0
commit cd03c46196
3 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -372,7 +372,8 @@ export async function fitViewport<
height,
options?.minZoom ?? minZoom,
options?.maxZoom ?? maxZoom,
options?.padding ?? 0.1
options?.padding ?? 0.1,
options?.paddingUnit ?? '%'
);
await panZoom.setViewport(viewport, { duration: options?.duration });