maplibre-react-native
maplibre-react-native copied to clipboard
feat: extract android UserLocation FPS
Description
Added androidPreferredFramesPerSecond
prop for UserLocation that allows to set max FPS for user location animation. This allows to improve performance especially on low-end android devices.
Change is based on research of maplibre-native LocationComponent.java
, which serves and encourages to use setMaximumFps
method for this feature purpose.
Checklist
- [x] I have tested this on a device/simulator for each compatible OS
- [X] I formatted JS and TS files with running
yarn lint:fix
in the root folder - [X] I have run tests via
yarn test
in the root folder - [X] I updated the documentation with running
yarn generate
in the root folder - [X] I mentioned this change in
CHANGELOG.md
- [n/a?] I updated the typings files (
index.d.ts
) - [X] I added/updated a sample (
/example
)
Screenshot OR Video
https://github.com/user-attachments/assets/e077855c-486e-4fcd-a805-6fc2fa635aeb