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
+38-22Lines changed: 38 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,33 +56,39 @@ You can load a table that contains existing data from an Excel workbook into the
56
56
57
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
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
59
+
Column description | Maps to property | Required
60
+
-- | -- | --
61
+
Label for the pin | ItemsLabels | Required
62
+
Longitude of the pin | ItemsLongitudes | Required
63
+
Latitude of the pin | ItemsLattitudes | Required
64
+
Color of the pin | ItemsColors | Optional
65
+
Icon for the pin | ItemsIcons | Optional
66
+
67
+
You can also use a string to denote the address in ItemsAddresses, in which case ItemsLongitudes and ItemsLatitudes won't work.
64
68
65
-
You can also use a string to denote the address, in which case ItemsLongitudes and ItemsLatitudes won't work.
69
+
The color field accepts any CSS string, as defined in [Color enumeration and ColorFade, ColorValue, and RGBA functions in Power Apps](./functions/function-colors).
66
70
71
+
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.
67
72
68
73
The following is an example of an Excel table with the required columns:
69
74
70
-

75
+
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.
129
+
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.
121
130
122
131

123
132
133
+

134
+
135
+
>[!TIP]
136
+
>You can assign the same custom icon to all pins. For the **ItemsIcons** field in the Advanced Properties pane, enter the icon you want to use. For example, set **ItemsIcons** to *MarkerSquare*.
137
+
138
+
139
+
124
140
### Properties
125
141
126
142
The following properties can be defined and configured in the component's **Properties** pane.
0 commit comments