You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/geospatial-component-input-address.md
+38-2Lines changed: 38 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
7
7
ms.topic: conceptual
8
8
ms.custom: canvas
9
9
ms.reviewer: tapanm
10
-
ms.date: 6/12/2020
10
+
ms.date: 7/7/2020
11
11
ms.author: iawilt
12
12
search.audienceType:
13
13
- maker
@@ -46,7 +46,43 @@ With an app open for editing in [Power Apps Studio](https://create.powerapps.com
46
46
47
47

48
48
49
-
You can modify the component by using a number of properties.
49
+
You can modify the component by using a number of [properties](#properties).
50
+
51
+
### Set a default search radius
52
+
53
+
By default, the component will search around the user's ___location (providing the user has consented for the app to access their ___location). However, you can refine the default search area to help narrow or change initial results when users input an address.
54
+
55
+
1. On the **Properties** pane, set the **Search within radius** switch to **On**.
56
+
57
+
1. Enter a longitude, latitude, and radius (in meters).
58
+
59
+
The component will start searching at the latitude and longitude, out to the distance specified in the radius field.
60
+
61
+
### Use the map component with the input address component
62
+
63
+
You can save addresses that a user inputs into the address component as a data collection. You can then retrieve these addresses and display them in [the map component](geospatial-component-map.md).
64
+
65
+
1. App the map component and the input address component to your app.
66
+
2. On the **Insert** menu, select **Button** and move it into your app.
67
+
3. Go to the **Advanced** tab on the **Properties** pane. Under **OnSelect**, enter the following:
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/geospatial-component-map.md
+74-3Lines changed: 74 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: powerapps
7
7
ms.topic: conceptual
8
8
ms.custom: canvas
9
9
ms.reviewer: tapanm
10
-
ms.date: 6/12/2020
10
+
ms.date: 7/7/2020
11
11
ms.author: iawilt
12
12
search.audienceType:
13
13
- maker
@@ -48,15 +48,86 @@ With an app open for editing in the [Power Apps studio](https://create.powerapps
48
48
49
49

50
50
51
-
You can modify the component by using a number of properties.
51
+
You can modify the component by using a number of [properties](#properties).
52
+
53
+
### Use the map component with data from Excel
54
+
55
+
You can load a table that contains existing data from an Excel workbook into the map component. The component will then plot each row in your table as a map pin.
56
+
57
+
Your workbook needs to contain a named table with the following columns that should then be mapped to the associated property in the component's **Advanced** pane.
58
+
59
+
Column description | Maps to property
60
+
-- | --
61
+
Label for the pin | ItemsLabels
62
+
Longitude of the pin | ItemsLongitudes
63
+
Latitude of the pin | ItemsLattitudes
64
+
65
+
You can also use a string to denote the address, in which case ItemsLongitudes and ItemsLatitudes won't work.
66
+
67
+
68
+
The following is an example of an Excel table with the required columns:
69
+
70
+

71
+
72
+
You can copy the following sample data to test this functionality:
73
+
74
+
Name | Longitude | Latitude
75
+
-- | -- | --
76
+
Fourth Coffee (sample) | -98.29277 | 26.2774
77
+
Litware, Inc. (sample) | -96.85572 | 32.55253
78
+
Adventure Works (sample) | -96.99952 | 32.72058
79
+
Fabrikam, Inc. (sample) | -118.30746 | 34.86543
80
+
Blue Yonder Airlines (sample) | -118.66184 | 34.17553
81
+
City Power & Light (sample) | -113.46184 | 37.15363
A. Datum Corporation (sample) | -89.39433 | 40.71025
85
+
Coho Winery (sample) | -116.97751 | 32.87466
86
+
87
+
88
+
89
+
90
+
1. Copy and paste the table into a new Excel workbook.
91
+
92
+
1. Select one of the cells, and then on the Home tab in the ribbon, select **Format as Table** and choose any style, and then **OK**.
93
+
94
+

95
+
96
+
1. Select the table, and then go to the **Table Design** tab on the ribbon. Enter a name for the table under **Table Name:**, for example *TestData*.
97
+
98
+

99
+
100
+
1. Save the workbook.
101
+
102
+
1. Open or create a new app in Power Apps, and insert the map component.
103
+
104
+
1. On the **Properties** pane, select the **Data source(Items)** field and then search for *excel* and select **Import from Excel**.
105
+
106
+

107
+
108
+
1. Locate the Excel workbook and then select **Open**. Select the table that contains the information, **TestData**, and then **Connect**.
109
+
110
+

111
+
112
+
1. On the **Properties** pane, go to the **Advanced** tab, and select **More options**.
113
+
114
+
1. Set the following properties:
115
+
116
+
-**ItemsLabels** as *TestData.Name*
117
+
-**ItemLatitudes** as *TestData.Latitude*
118
+
-**ItemsLongitudes** as *TestData.Longitude*
119
+
120
+
1. The map component will now show each row in the table as a pin, labeled with its *Name* as defined in the Excel table.
121
+
122
+

52
123
53
124
### Properties
54
125
55
126
The following properties can be defined and configured in the component's **Properties** pane.
56
127
57
128

58
129
59
-
Note that some properties are only available on the **Advanced** tab in the **Properties** pane, in the **More options** section.
130
+
Some properties are only available on the **Advanced** tab in the **Properties** pane, in the **More options** section.
0 commit comments