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
title: Add a reference layer to Azure Maps Power BI visual
3
-
titleSuffix: Microsoft Azure Maps
4
-
description: In this article, you will learn how to use the reference layer in Azure Maps Power BI visual.
3
+
titleSuffix: Microsoft Azure Maps Power BI visual
4
+
description: This article describes how to use the reference layer in Azure Maps Power BI visual.
5
5
author: deniseatmicrosoft
6
6
ms.author: limingchen
7
-
ms.date: 11/29/2021
7
+
ms.date: 07/17/2023
8
8
ms.topic: how-to
9
9
ms.service: azure-maps
10
10
services: azure-maps
11
11
---
12
12
13
13
# Add a reference layer
14
14
15
-
The reference layer feature lets a secondary spatial dataset be uploaded to the visual and overlaid on the map to provide addition context. This dataset is hosted by Power BI and must be a [GeoJSON file](https://wikipedia.org/wiki/GeoJSON) with a `.json` or `.geojson` file extension.
15
+
The reference layer feature lets a secondary spatial dataset be uploaded to the visual and overlaid on the map to provide addition context. Power BI hosts this dataset as a [GeoJSON file] with a `.json` or `.geojson` file extension.
16
16
17
17
To add a **GeoJSON** file as a reference layer, go to the **Format** pane, expand the **Reference layer** section, and press the **+ Add local file** button.
18
18
19
19
After a GeoJSON file is added to the reference layer, the name of the file will appear in place of the **+ Add local file** button with an **X** beside it. Press the **X** button to remove the data from the visual and delete the GeoJSON file from Power BI.
20
20
21
-
The following map is displays [2016 census tracts for Colorado](https://github.com/Azure-Samples/AzureMapsCodeSamples/tree/master/Static/data/geojson), colored by population.
22
-
23
-
> [!div class="mx-imgBorder"]
24
-
> 
21
+
The following map displays [2016 census tracts for Colorado], colored by population.
25
22
26
23
:::image type="content" source="./media/power-bi-visual/reference-layer-CO-census-tract.png" alt-text="A map displaying 2016 census tracts for Colorado, colored by population as a reference layer.":::
27
24
28
25
The following are all settings in the **Format** pane that are available in the **Reference layer** section.
29
26
30
27
| Setting | Description |
31
28
|----------------------|---------------|
32
-
| Reference layer data | The data GeoJSON file to upload to the visual as an additional layer within the map. The **+ Add local file** button opens a file dialog the user can use to select a GeoJSON file that has a `.json` or `.geojson` file extension. |
29
+
| Reference layer data | The data GeoJSON file to upload to the visual as another layer within the map. The **+ Add local file** button opens a file dialog the user can use to select a GeoJSON file that has a `.json` or `.geojson` file extension. |
33
30
34
31
> [!NOTE]
35
32
> In this preview of the Azure Maps Power BI visual, the reference layer will only load the first 5,000 shape features to the map. This limit will be increased in a future update.
36
33
37
34
## Styling data in a reference layer
38
35
39
-
Properties can be added to each feature within the GeoJSON file to customize how it is styled on the map. This feature uses the simple data layer feature in the Azure Maps Web SDK. For more information, see this document on [supported style properties](spatial-io-add-simple-data-layer.md#default-supported-style-properties). Custom icon images are not supported within the Azure Maps Power BI visual as a security precaution.
36
+
Properties can be added to each feature within the GeoJSON file to customize how it's styled on the map. This feature uses the simple data layer feature in the Azure Maps Web SDK. For more information, see this document on [supported style properties]. Custom icon images aren't supported within the Azure Maps Power BI visual as a security precaution.
40
37
41
-
The following is an example of a GeoJSON point feature that sets its displayed color to red.
38
+
The following json is an example of a GeoJSON point feature that sets its displayed color to red.
42
39
43
40
```json
44
41
{
@@ -58,7 +55,13 @@ The following is an example of a GeoJSON point feature that sets its displayed c
58
55
Add more context to the map:
59
56
60
57
> [!div class="nextstepaction"]
61
-
> [Add a tile layer](power-bi-visual-add-tile-layer.md)
0 commit comments