Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to use catalogue and map control

(1) ShareShare
ReportReport
Posted on by 42

Hi dear communitiy,

 

What I want:

 

A screen with a catalogue of Adresses in a dataverse table. All entries in the catalogue should show up on the map as markers.

The table has longitude and latitude columns.

 

What I tried:

- Creating a collection colLocations with ClearCollect in OnStart and setting the MapControl.Items to the collection colLocations.

- Setting MapControl.Items to ForAll(TableName; { latitude: ThisRecord.Latitude;

})

- reading the official documentation

- watching Youtube videos for 3 hours (extremely frustrating since most stuff isn't up to date anymore)

 

 

How do I do that?

Categories:
  • Verified answer
    Giraldoj Profile Picture
    561 Super User 2025 Season 1 on at
    Re: How to use catalogue and map control

    HI @CD00131 

     

    There are a few additional fields that you need to configure so the map can show you the correct locations.

    Giraldoj_0-1719850406612.png

    So if you already have the Items property configure with the collection, then lets configure the other ones.

     

    ItemsLabels this is the text you want to show along with the pin in the map, for example here im displaying city name, just put collection field name in quotes for example "City" or "Location"

    Giraldoj_1-1719850492622.png

    ItemsLatitude just put your columns Latitud name "Latitude"  Don't remove the quotes

    Same for ItemsLongitude just put "Longitude" Don't remove the quotes

    PD: for you guidance my collection looks like this

     

    ClearCollect(
     colLocations,
     {
     Name: "Location 1",
     Latitude: 37.7749,
     Longitude: -122.4194,
     Description: "San Francisco, CA"
     },
     {
     Name: "Location 2",
     Latitude: 34.0522,
     Longitude: -118.2437,
     Description: "Los Angeles, CA"
     },
     {
     Name: "Location 3",
     Latitude: 40.7128,
     Longitude: -74.0060,
     Description: "New York, NY"
     }
    );

     



    And thats it now your map should be working 😁

    If my response resolved your issue, please feel free to mark it as the solution by clicking "Accept as solution." This helps others find the answer more easily. If you found the content helpful in any other way, a "Thumbs Up" would be greatly appreciated. Thank you! ‌‌

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard