maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Allow Array Type for Padding Parameter in fitBounds Function

Open lavi02 opened this issue 10 months ago • 0 comments

Steps to Trigger Behavior

  1. it occurs when try to use "fitbound" function

Link to Minimal Reproducible Example

if (currentBottomSheetIndex === 0) {
        facilityCarmera?.current?.fitBounds(
          [minLon, minLat],
          [maxLon, maxLat],
          getFitBoundsArrayFacility(currentBottomSheetIndex),
          1000,
        );
      }

Version(s) affected

  • Development OS: macOS sonoma 14.4
  • maplibre-react-native Version 9.1.0
  • React Native Version 0.73.6

lavi02 avatar Mar 26 '24 07:03 lavi02