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

TransitionOptions conversion when set #8575

@tobrun

Description

@tobrun

When looking into adding transition properties for layer attributes in #8015. I noticed that the style wide configuration of TransitionOptions in #7711 is not returning the same values as the value set. Eg. following test is failing:

long transitionDuration = 1;
mapboxMap.setTransitionDuration(transitionDuration);
assertEquals("TransitionDuration should match", transitionDuration, mapboxMap.getTransitionDuration(), 0);

with

AssertionFailedWithCauseError: TransitionDuration should match expected:<1.0> but was:<1.0E9>

Looking at the style specification, it seems that the unit should be in milliseconds while it nows seems to be set in seconds and returned in nano seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidMapbox Maps SDK for Androidbug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions