cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahhollan
Helper V
Helper V

Regional image map that sets a fields value

I want to use a map in a Power App that has 4 regions. When a user clicks on a region, I want a value to be set on the form.  Is this possible? I want to use an image map with 4 clickable areas.  

 

Thanks for any help on this.

1 ACCEPTED SOLUTION

Accepted Solutions
AMoon
Advocate I
Advocate I

@ahhollan I would most likely use a gallery or buttons layered on top of the map image in order to achieve the "click" action. Then you will need a variable value to set when the area is clicked. Let me know if this gives you the direction you need? 

View solution in original post

3 REPLIES 3
ben-thompson
Solution Sage
Solution Sage

Is the value you populating on the form in addition to the field you would be using to display the map or is it the same field?

---
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".
AMoon
Advocate I
Advocate I

@ahhollan I would most likely use a gallery or buttons layered on top of the map image in order to achieve the "click" action. Then you will need a variable value to set when the area is clicked. Let me know if this gives you the direction you need? 

View solution in original post

If the map image is static with no data to show, you can use the button overlay approach. 

 

If the regions are dynamic , map can be zoomedm has pins or custom visualizations, azure map can be used. On the event you can send values back via bound properties or have a button inside control to confirm before sending. 

 

https://azuremapscodesamples.azurewebsites.net/

 

 

MapEvents.png

You can find some sampels at - https://pcf.gallery/

 

D3 maps can also be explored -  https://observablehq.com/@d3/gallery

 

D3Maps.png

 

Hemant 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Users online (86,834)