Skip to content

Mapsui MinMax Zoom & AutoBounds #709

@galadril

Description

@galadril

Hi,

I'm new to Mapsui and I struggle to understand how to use the Viewportlimiter, BoundingBox, to set some boundaries and limits on the map. To be more precise:

  1. How do i limit the zoom/pan to only show the map fullscreen (no white borders) ->
    Screenshot_2019-10-10-14-00-01-404_com companyname Xam Controls Sample

  2. (Solved) I have several pins on the screen, plotting a shipping route. Is there a way to let the map show the center of the full route? Some kind of AutoBounds property? For example I would like the map to show the center of the route like:
    Screenshot_2019-10-10-14-00-20-542_com companyname Xam Controls Sample

Im going through the samples, but I don't see a lot of samples on the NavigateTo/ViewportLimiter etc.

Can you please assist me, or point me in a direction?

Thanks!

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