Skip to content

MapControl: provide method to move camera programmatically to a region (animated + non-animated)  #9490

@tipa

Description

@tipa

Describe the bug

I want to place the camera over a specific area on the map. This API is just completely missing on the new MapControl

Steps to reproduce the bug

On UWP, I was able to do this using those methods:

var box = GeoboundingBox.TryCompute(list_of_geopositions);
if (box != null) { await map.TrySetViewBoundsAsync(box, new Thickness(10), MapAnimationKind.Linear); }

NuGet package version

WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000

Windows version

Windows 11 (22H2): Build 22621

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