Skip to content

Use VieportTransition instead of DefaultViewTransition in MapViewportState methods #2684

@JolanDaumas

Description

@JolanDaumas

New Feature

Add the possibility to use a VieportTransition when using MapViewportState methods instead of a DefaultViewTransition only.

public fun transitionToOverviewState(
    overviewViewportStateOptions: OverviewViewportStateOptions,
    defaultTransitionOptions: DefaultViewportTransitionOptions = DefaultViewportTransitionOptions.Builder()
      .build(), // Here, use a ViewportTransition
    completionListener: CompletionListener? = null
  ) 

Why

In map V10, we could specify a ViewportTransition when we wanted to have a transition to a certain state.

However, in V11, using MapViewportState, we cannot specify a ViewportTransition but only a DefaultViewportTransition.

We cannot do an immediate transition when we don't want to have an animation.

We could possibility have more use cases unlock by using a ViewportTransition and not only a DefaultViewTransition

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions