mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
274 stars 107 forks source link

mapbox view with location enabled heating the phone too much #56

Open serraojoao opened 1 year ago

serraojoao commented 1 year ago

During testing on a Samsung galaxy A52S 5g I have noticed the phone heating a lot when the mapbox default location marker is enabled compared to if it is disabled.

I am using the following to set the location enabled: _mapController?.location.updateSettings(LocationComponentSettings(enabled: true));

Have someone else noticed similar behaviour?

youssefgh commented 1 year ago

Environment

Android OS version: 10
Devices affected: Google Pixel 2 (emulator)
Library version: 0.4.1
Flutter SDK version: 3.7.7

I have a similar issue using location.updateSettings but using an emulator during dev The following log messages keep printing :

W/Mapbox  ( 6296): [Type is not supported: android.location.Location]: ValueUtils

The CPU and RAM usage goes up and VScode crashs Any findings regarding this issue ?

serraojoao commented 1 year ago

could this be related to the location fetch to position the location marker? maybe a filter could be added there?