Git Product home page Git Product logo

Comments (10)

LukasPaczos avatar LukasPaczos commented on August 24, 2024 1

@jimmyjzemoso we have a similar feature coming, see mapbox/mapbox-gl-native#13942.

from mapbox-gl-native-android.

maxtracking avatar maxtracking commented on August 24, 2024

Hello,

What's happening with this issue? In our project location component animations put TREMENDOUS stress on CPU to the extent of abandoning LocationComponent and reinventing the wheel ourselves :(

Alex

from mapbox-gl-native-android.

zugaldia avatar zugaldia commented on August 24, 2024

My understanding from OP is that we're waiting for https://github.com/mapbox/mapbox-gl-native/issues/12752 to be added to our core rendering library, before being able to add the Android-side option. @LukasPaczos please correct me if I'm wrong.

/cc: @tmpsantos

from mapbox-gl-native-android.

LukasPaczos avatar LukasPaczos commented on August 24, 2024

This is correct @zugaldia.

@maxtracking as a stopgap solution, you can throttle the component's animation frames output via LocationComponent#setMaxAnimationFps as shown in mapbox/mapbox-gl-native#13678 or throttle the whole Map's FPS output when tracking the location via MapView#setMaximumFps. We've seen great results in our Navigation SDK after implementing both of the above.

from mapbox-gl-native-android.

maxtracking avatar maxtracking commented on August 24, 2024

Thanks a lot, @LukasPaczos, I'll certainly try the one for MapView. We had to switch to the custom layer for user's location anyway due to the complexity of linked layers but MapView fps are under scrutiny now :)

from mapbox-gl-native-android.

jimmyjzemoso avatar jimmyjzemoso commented on August 24, 2024

Hey @LukasPaczos I can see an expanding animation in Ios current location marker. Is it something that I can enable in android as well??

from mapbox-gl-native-android.

JonasDaWi avatar JonasDaWi commented on August 24, 2024

Hi! It would also be great to have an option to disable the location's rotation component animation or at least make its animation much faster. I'm using forceLocationUpdate with a bearing and the rotation indicator animation is much slower than the location update

from mapbox-gl-native-android.

stale avatar stale commented on August 24, 2024

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

from mapbox-gl-native-android.

stale avatar stale commented on August 24, 2024

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

from mapbox-gl-native-android.

LukasPaczos avatar LukasPaczos commented on August 24, 2024

Disabling location animation should work reliably without rendering artifacts when using

  • LocationComponentActivationOptions#useSpecializedLocationLayer set to true
  • LocationComponentOptions#trackingAnimationDurationMultiplier set to 0

from mapbox-gl-native-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.