I’m currently working with the Maps control in Power Apps, which provides the ability for users to draw shapes (such as rectangles or polygons) on the map.
I’m exploring whether it’s possible to implement the following functionality:
- When a user draws a shape on the map, the app should identify all customer location pins (latitude/longitude points) that fall within the boundaries of the drawn shape, and
- Store those selected records in a collection for further processing (for example, displaying them in a gallery or performing bulk actions).
Here’s an example screenshot illustrating the intended behavior:
From my research so far, it appears that the Maps control does not provide a native IsWithin() or similar geospatial function in Power Fx. Before exploring external APIs or Azure Maps integration, I wanted to confirm if there’s any built-in method, workaround, or connector available within Power Apps to achieve this.
Any guidance, suggestions, or best practices would be greatly appreciated.