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-map.md
+51-37Lines changed: 51 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,18 @@
1
1
---
2
-
title:
3
-
description:
2
+
title: Insert interactive maps into apps
3
+
description: Insert maps, and add customized pins, in Power Apps.
4
4
author: iaanw
5
5
manager: shellha
6
6
ms.service: powerapps
7
7
ms.topic: conceptual
8
-
ms.custom: canvas
8
+
ms.custom: canvas, ce06122020
9
9
ms.reviewer: tapanm
10
-
ms.date: 7/7/2020
10
+
ms.date: 11/10/2020
11
11
ms.author: iawilt
12
12
search.audienceType:
13
13
- maker
14
14
search.app:
15
15
- PowerApps
16
-
ms.custom: ce06122020
17
16
---
18
17
19
18
@@ -44,7 +43,7 @@ With an app open for editing in the [Power Apps studio](https://create.powerapps
44
43
1. Open the **Insert** tab.
45
44
2. Expand **Media**.
46
45
3. Select the component **Map** to place it in the center of the app screen, or drag it to position it anywhere on the screen.
47
-
4. (Optional) Select **Allow** in the window that asks to know your ___location. This enables the component to display the user's current ___location.
46
+
4. (Optional) Select **Allow** in the window that asks to know your ___location. This setting allows the component to display the user's current ___location.
48
47
49
48

50
49
@@ -56,33 +55,40 @@ You can load a table that contains existing data from an Excel workbook into the
56
55
57
56
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
57
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
58
+
Column description | Maps to property | Required
59
+
-- | -- | --
60
+
Label for the pin | ItemsLabels | Required
61
+
Longitude of the pin | ItemsLongitudes | Required
62
+
Latitude of the pin | ItemsLatitudes | Required
63
+
Color of the pin | ItemsColors | Optional
64
+
Icon for the pin | ItemsIcons | Optional
65
+
66
+
67
+
68
+
The color field accepts any CSS string, as defined in [Color enumeration and ColorFade, ColorValue, and RGBA functions in Power Apps](/functions/function-colors).
69
+
70
+
You can use the icons described in the [List of image templates](/azure/azure-maps/how-to-use-image-templates-web-sdk#list-of-image-templates) topic as your icon.
64
71
65
-
You can also use a string to denote the address, in which case ItemsLongitudes and ItemsLatitudes won't work.
66
72
73
+
The following Excel table shows the required columns:
67
74
68
-
The following is an example of an Excel table with the required columns:
69
75
70
-

76
+
:::image type="content" source="media/geospatial/sample-excel.png" alt-text="Sample excel file with a table named TestData and containing Name, Longitude, and Latitude columns":::
71
77
72
78
You can copy the following sample data to test this functionality:
73
79
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
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, and using the provided icons and colors. If an icon or color isn't provided, then the component will use the default icon and color.
130
+
131
+

132
+
119
133
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
134
122
-

123
135
124
136
### Properties
125
137
@@ -145,10 +157,12 @@ Some properties are only available on the **Advanced** tab in the **Properties**
145
157
| Pin color | The color of the pins. | Color picker | Properties |
146
158
| Maximum map pins | Maximum number of pins displayed on the map. | Integer | Properties |
147
159
| ItemsLabels | A column in Items with the strings you want to use as labels for the pins. | TableName.ColumnName | Advanced |
148
-
| ItemsAddresses | A column in Items with the strings that represent the ___location of the pins. Doesn't work with **ItemsLongitudes** or **ItemsLatitudes**. | TableName.ColumnName | Advanced |
149
-
| ItemsLongitudes | Name of the column in the table in your data source with floating-point numbers that represent the longitude position of the pins. Doesn't work with **ItemsAddresses**. | TableName.ColumnName | Advanced |
150
-
| ItemsLatitudes | Name of the column in the table in your data source with floating-point numbers that represent the latitude position of the pins. Doesn't work with **ItemsAddresses**. | TableName.ColumnName | Advanced |
151
-
| Items_Items | Name of the table in your data source that contains all the records that you want to plot in the map by using pins. Each row must have an entry for the label, longitude, and latitude for each row. | TableName | Advanced |
160
+
| ItemsAddresses | A column in Items with the strings that represent the ___location of the pins. | TableName.ColumnName | Advanced |
161
+
| ItemsLongitudes | Name of the column in the table in your data source with floating-point numbers that represent the longitude position of the pins. | TableName.ColumnName | Advanced |
162
+
| ItemsLatitudes | Name of the column in the table in your data source with floating-point numbers that represent the latitude position of the pins. | TableName.ColumnName | Advanced |
163
+
| ItemsColors | Color of the pins |[Any CSS color string](/functions/function-colors)| Advanced |
164
+
| ItemsIcons | Icon of the pins |[Icons defined in Azure image templates](/azure/azure-maps/how-to-use-image-templates-web-sdk#list-of-image-templates)| Advanced |
165
+
| Items | Name of the table in your data source that contains all the records that you want to plot in the map by using pins. Each row must have an entry for the label, longitude, and latitude for each row. | TableName | Advanced |
0 commit comments