Skip to content

Add MoveToRegion(MapSpan span, bool animated) to IMap interface for non-animated map positioning. #21046

@awasilik

Description

@awasilik

Description

Current Maps code makes it impossible to set desired region of map before the map is shown.
Calling MoveToRegion causes the app to animate from Maui island every time the view is opened which makes pretty incovenient UI.

It is possible to write custom handler to mitigate this behavior, but current implementation makes it hard to achieve same goal on Android and iOS.

The support for centering map is currently added to Android and iOS, but it's never exposed via interface.

Or

Add possibility to set the initial region (VisibleRegion) other than Maui when creating map from XAML.

Public API Changes

interface IMap
{
old:
void MoveToRegion(MapSpan region); 
new:
void MoveToRegion(MapSpan region, bool animated); 
}

Intended Use-Case

Possibility to set region on map before page is fully loaded so the user does not see initial animation.

Metadata

Metadata

Assignees

No one assigned

    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