flutter_map_location_marker icon indicating copy to clipboard operation
flutter_map_location_marker copied to clipboard

Marker Lags while rotating

Open Ger4W opened this issue 9 months ago • 3 comments

Describe the bug While using the plugin, i rotate the marker and it often lags or stops while turning.

To Reproduce Steps to reproduce the behavior:

Expected behavior Rotation of the marker without lag or stops.

Screenshots Please See attached video

Smartphone (please complete the following information):

  • Device: Android

Additional context Do not know if the plugin filters data. Maybe if there is a filter, it causes the marker to stop rotating while the values are dismissed

.

Ger4W avatar Mar 31 '25 19:03 Ger4W

Hello,

Thank you for reporting this issue. To better understand the problem and provide assistance, please provide the following information:

  1. Version Information: Could you please let us know which version of the flutter_map_location_marker package you are currently using?
  2. Heading Stream Setup: Are you using the default heading stream or a customized one? If it's customized, please provide relevant code snippets.
  3. Value of alignDirectionAnimationDuration: Please provide the value you have set for alignDirectionAnimationDuration.

We initially suspect that the issue might be due to the animation duration being too short. If the interval between updates in the heading stream is larger than the alignDirectionAnimationDuration, it could cause the animation to appear stuttered or discontinuous, resulting in the behavior you're seeing.

We look forward to your response to further analyze the issue.

Thank you!

tlserver avatar Apr 01 '25 00:04 tlserver

Hi!

Thanks for responding.

1-The plugin version is ^10.0.0 2-The heading stream is the default 3- alignDirectionAnimationDuration is not being used/decalred.

Hope this info helps!

Thanks!

Ger4W avatar Apr 02 '25 19:04 Ger4W

I can repoduce this issue in also example project. Since RotationSensor.samplingPeriod defaults to 200ms but alignDirectionAnimationDuration defaults to 50ms. To quick fix this issue, you can set RotationSensor.samplingPeriod at anytime before create the map widget, such as on application startup.

RotationSensor.samplingPeriod = SensorInterval.gameInterval; // This set RotationSensor.samplingPeriod to 20ms.

I will prepare an update for this issue.

tlserver avatar Apr 06 '25 01:04 tlserver

A new release v10.1.0 is published to resolve this issue.

tlserver avatar Apr 22 '25 00:04 tlserver