Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Map Control zoom level with "Use default location" off

(7) ShareShare
ReportReport
Posted on by 510

I display points on my map using a gallery component with latitude and longitude columns in the data source. If I switch off "Use default location" on my map component, there does not appear to be a way to set the zoom level when I select my gallery items. The map just zooms right out. I cannot use default location as it causes problems with the starting point when my map loads, even if I set the defaults to Gallery1.Selected.Latitude etc. The map starts in the middle of the ocean and then doesn't centre on my pin when I select a gallery item. Is there a way to force a zoom level when a gallery item is clicked? Is there any other way to set zoom with default location off?

Categories:
  • sb16 Profile Picture
    10 on at
    Map Control zoom level with "Use default location" off
    OoloiJackal's solution fixed it for me. Thank you 
  • Strahinja Profile Picture
    6 on at
    Re: Map Control zoom level with "Use default location" off

    This solution fixed the problem for me! Thank you!

  • OoloiJackal Profile Picture
    18 on at
    Re: Map Control zoom level with "Use default location" off

    Figured this out last week. The issue was that the SharePoint list that map was connected to contained non-text data. With the map selected look under "Properties", select "Fields" and remove any images, attachments, etc. This should fix both the Zoom issues and the issues with selecting pins on the map. Not sure why those would have anything to do with each other but there you are. I just dedicated a separate space on the screen to display the images associated with those pins when they are selected.

  • orchestrator Profile Picture
    5 on at
    Re: Map Control zoom level with "Use default location" off

    Having the same issue here. I can't zoom in or out or move the map in any way. I set the default zoom and location and that works fine, but when running the app any attempt to zoom in or out, or to move or rotate in the map just instantly returns to the default position. Also, and I don't know if this is related, pins are very difficult, but not impossible, to select.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard