Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android location‘s pulse animator is very stuck #3233

Open
ChasingWord opened this issue Feb 17, 2025 · 0 comments
Open

Android location‘s pulse animator is very stuck #3233

ChasingWord opened this issue Feb 17, 2025 · 0 comments
Labels

Comments

@ChasingWord
Copy link

MapLibre Android Version

11.8.1

Android SDK Version

Android 12

Device

HUAWEI ELS-AN00

What happened?

Android location‘s pulse animator is very stuck.

Steps to reproduce

Use location function like:

mapLibreMap.setStyle(mStyle, style -> {
                LocationComponent locationComponent = mMap.getLocationComponent();
                locationComponent.activateLocationComponent(
                        new LocationComponentActivationOptions.Builder(LocationActivity.this, style)
                                .locationEngine(MyLocationEngine.getDefaultLocationEngine(LocationActivity.this, mLocationListenerImp))
                                .locationComponentOptions(LocationComponentOptions.builder(LocationActivity.this)
                                        .pulseEnabled(true)
                                        .pulseColor(Color.RED)             // Set color of pulse
                                        .elevation(0f)
                                        .foregroundTintColor(Color.TRANSPARENT)  // Set color of user location
                                        .backgroundTintColor(Color.TRANSPARENT)
                                        .backgroundStaleTintColor(Color.TRANSPARENT)
                                        .foregroundStaleTintColor(Color.TRANSPARENT)
                                        .bearingDrawable(R.drawable.ic_airplanemode_active_black)
                                        .build())
                                .build()
                );
                locationComponent.setCameraMode(CameraMode.TRACKING_COMPASS);
                locationComponent.setLocationComponentEnabled(true);
                locationComponent.setRenderMode(RenderMode.COMPASS);
                locationComponent.zoomWhileTracking(11);
            });

Renderer

No response

Relevant log output

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant