Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Duplicate bearingDrawable in LocationComponent #665

Open
@J-u-l-i-a-M

Description

@J-u-l-i-a-M

Hello!

I write this Kotlin-code and I sometimes see two bearing icons when users travel by car with the application.

`
val locationComponentOptions = LocationComponentOptions.builder(context)
.bearingDrawable(R.drawable.my_icon_drawable)
.foregroundTintColor(Color.TRANSPARENT)
.backgroundTintColor(Color.TRANSPARENT)
.foregroundStaleTintColor(Color.TRANSPARENT)
.backgroundStaleTintColor(Color.TRANSPARENT)
.elevation(0f)
.minZoomIconScale(1f)
.maxZoomIconScale(1f)
.build()

    val activationOptions = LocationComponentActivationOptions.builder(context, loadedMapStyle)
        .locationComponentOptions(locationComponentOptions)
        .build()

    this.locationComponent = locationComponent.apply {
        activateLocationComponent(activationOptions)
        isLocationComponentEnabled = true
        renderMode = RenderMode.COMPASS
    }

    val locationEngineRequest = LocationEngineRequest.Builder(1000).build()

    this.locationComponent?.locationEngine?.requestLocationUpdates(
        locationEngineRequest,
        callback,
        Looper.getMainLooper()
    )`

image

Where is my mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions