在 Power BI 服务和 Power BI Desktop 中创建 ESRI ArcGIS 地图ArcGIS maps in Power BI service and Power BI Desktop by Esri

本教程是从 ArcGIS 地图创建者的角度进行编写。This tutorial is written from the point of view of a person creating an ArcGIS map. 创建者与同事共享 ArcGIS 地图后,此同事便可以查看相应的地图并与之交互,但无法保存更改。Once a creator shares an ArcGIS map with a colleague, that colleague can view and interact with the map but not save changes. 若要详细了解如何查看 ArcGIS 地图,请参阅与 ArcGIS 地图交互To learn more about viewing an ArcGIS map, see Interacting with ArcGIS maps.

ArcGIS 地图和 Power BI 的结合将超越地图点表示法的地图绘制技术提升到全新水平。The combination of ArcGIS maps and Power BI takes mapping beyond the presentation of points on a map to a whole new level. 从基本地图、位置类型、主题、符号样式和引用层中进行选择,创建丰富多彩的信息性地图可视化效果。Choose from base maps, location types, themes, symbol styles, and reference layers to create gorgeous informative map visualizations. 地图上权威数据层与空间分析的结合可传达出可视化效果中数据的更深层次的理解。The combination of authoritative data layers on a map with spatial analysis conveys a deeper understanding of the data in your visualization.

虽然无法在移动设备上创建 ArcGIS 地图,但可以查看它并与之交互。While you cannot create an ArcGIS maps on a mobile device, you can view and interact with it. 请参阅与 ArcGIS 地图交互See Interacting with ArcGIS maps.

提示

GIS 指的是地理信息科学。GIS stands for Geographic Information Science.

下面的示例使用深灰色画布针对 2016 年可支配收入中间值的人口统计层以热度地图形式显示区域销售情况。The example below uses a dark gray canvas to show regional sales as a heatmap against a demographic layer of 2016 median disposable income. 随着你不断阅读本教程,你会发现使用 ArcGIS 地图可提供几乎无限制的改进的地图功能、人口数据和更炫的地图可视化功能,这样可以更加完美地讲述你的案例。As you'll see as you read on, using ArcGIS maps offers almost limitless enhanced mapping capability, demographic data, and even-more compelling map visualizations so you can tell your best story.

提示

请访问 ESRI 上的 Power BI 页面,查看多个示例并阅读用户感言。Visit esri's page on Power BI to see many examples and read testimonials. 然后查看 ESRI 的适用于 Power BI 的 ArcGIS 地图入门页And then see esri's ArcGIS Maps for Power BI Getting Started page.

ArcGIS Maps for Power BI 由 Esri 提供。ArcGIS Maps for Power BI is provided by Esri. 你使用 ArcGIS Maps for Power BI 必须遵守 Esri 的条款和隐私策略。Your use of ArcGIS Maps for Power BI is subject by Esri's terms and privacy policy. Power BI 用户如果希望使用适用于 Power BI 的 ArcGIS 地图视觉对象,则需要接受同意对话框。Power BI users wishing to use the ArcGIS Maps for Power BI visuals, need to accept the consent dialog.

资源Resources

条款Terms

隐私策略Privacy Policy

适用于 Power BI 的 ArcGIS 地图产品页ArcGIS Maps for Power BI product page


启用 ArcGIS 地图Enable ArcGIS map

ArcGIS 地图当前在 Power BI 服务、Power BI Desktop 和 Power BI 移动中可用。ArcGIS maps are currently available in Power BI service, Power BI Desktop, and Power BI mobile. 本文提供了适用于 Pover BI 服务和 Desktop 的说明。This article provides instructions for the service and for Desktop.

在 Power BI 服务 (app.powerbi.com) 中启用 ArcGIS 地图Enable the ArcGIS map in Power BI service (app.powerbi.com)

本教程使用零售分析示例This tutorial uses the Retail Analysis sample. 若要启用适用于 Power BI 的 ArcGIS 地图,请执行以下操作:To enable ArcGIS Maps for Power BI:

  1. 从菜单栏的右上方部分,选择齿轮图标并打开“设置”From the top right section of the menubar, select the cog icon and open Settings

  2. 选择“ArcGIS Maps for Power BI”复选框。Select the ArcGIS Maps for Power BI checkbox. 完成选择后需要重启 Power BI。You'll need to restart Power BI after you make the selection.

  3. 编辑视图中打开报表,并从“可视化效果”窗格中选择适用于 Power BI 的 ArcGIS 地图图标。Open a report in Editing view and select the ArcGIS Maps for Power BI icon from the Visualizations pane.

  4. Power BI 向报表画布中添加空的 ArcGIS 地图模板。Power BI adds an empty ArcGIS map template to the report canvas.


创建 ArcGIS 地图视觉对象Create an ArcGIS map visual

Watch 将创建几个不同的 ArcGIS 地图可视化效果,然后使用以下步骤通过零售分析示例亲自尝试一下。Watch Will create a few different ArcGIS map visualizations and then use the steps below to try it out yourself using the Retail Analysis sample.

  1. 从“字段”窗格中,拖动一个数据字段到“位置”或“纬度”和/或“经度”框。From the Fields pane, drag a data field to the Location or Latitude and/or Longitude buckets. 在此示例中,我们使用 存储 > 城市。In this example we're using Store > City.

    备注

    ArcGIS Maps for Power BI 会自动检测已选字段显示为地图上的形状或点是否是最佳方式。ArcGIS Maps for Power BI will automatically detect if the fields you've selected are best viewed as a shape or a point on a map. 可以调整设置中的默认值(如下所示)。You can adjust the default in the settings (see below).

  2. 从“可视化效果”窗格中,选择模板 ,将可视化效果转换为 ArcGIS 地图。Convert the visualization to an ArcGIS map by selecting the template from the Visualizations pane .
  3. 从“字段”窗格中,拖动一个度量值到“大小”框,以调整数据的显示方式。From the Fields pane, drag a measure to the Size bucket to adjust how the data is shown. 在本示例中,我们使用的是“销售额 > 去年销售额”。In this example we're using Sales > Last Year Sales.

AcrGIS 地图设置和格式Settings and formatting for ArcGIS maps

若要访问 ArcGIS Maps for Power BI 的格式化功能,请执行以下操作:To access ArcGIS Maps for Power BI formatting features:

  1. 通过选择可视化效果右上角的省略号,然后选择“编辑”,来访问其他功能。Access additional features by selecting the ellipses in the top right corner of the visualization and choosing Edit,

    可视化效果的顶部显示了可用的功能。The available features display across the top of the visualization. 当选择每个功能时,可打开相应的任务窗格,其中提供详细的选项。Each feature, when selected, opens a task pane that provides detailed options.

    备注

    有关设置和功能的详细信息,请参阅下面的详细的文档For more information about the settings and features, see Detailed documentation below.

  2. 若要返回到报表,请选择报表画布左上角的“返回报表”。To return to the report, select Back to Report from the top-left corner of your report canvas.


详细的文档Detailed documentation

Esri 针对 ArcGIS Maps for Power BI 的功能集提供综合文档Esri provides comprehensive documentation on the feature set of ArcGIS Maps for Power BI.

功能概述Features overview

基本地图Base Maps

提供了四个基本地图:暗灰色画布、浅灰色画布、OpenStreetMap 和街道。Four base maps are provided: Dark Gray Canvas, Light Gray Canvas, OpenStreetMap, and Streets. 街道是 ArcGIS 的标准基本地图。Streets is ArcGIS's standard base map.

若要应用基本地图,在任务窗格中选择它。To apply a base map select it in the task pane.

位置类型Location type

ArgGIS Maps for Power BI 自动检测在地图上显示数据的最佳方法。ArgGIS Maps for Power BI automatically detects the best way to show data on the map. 从点或边界中进行选择。It selects from Points or Boundaries. 可以使用位置类型选项微调这些选择。The Location type options allow you to fine tune these selections.

仅当数据包含标准地理位置值时,边界才可使用。Boundaries will only work if your data contains standard geographic values. Esri 自动找出要在地图上显示的形状。Esri automatically figures out the shape to show on the map. 标准地理位置值包括国家/地区、省、邮政编码等。但是和 GeoCoding 一样,默认情况下 Power BI 不会为数据检测字段是否为边界,或者是否有边界。Standard geographic values include countries, provinces, zip codes, etc. But just like with GeoCoding, Power BI may not detect the field should be a boundary by default, or it may not have a boundary for your data.

地图主题Map theme

提供了四个地图主题。Four map themes are provided. 根据绑定到位置以及添加到 Power BI“字段”窗格中大小框的字段,自动选择仅位置主题和大小主题。Location Only and Size themes are automatically chosen based on the fields you bind to the location and added to the Size bucket in the Power BI Fields pane. 当前使用的是大小主题,因此请切换到热图主题。We're currently using Size, so let's change to Heat map.

主题Theme说明Description
仅位置Location Only 根据位置类型中的设置,在地图上绘制数据点和已填充的边界。Plots data points or filled boundaries on the map based on the settings in Location Type.
热图Heat Map 在地图上绘制数据的热度图。Plots an intensity plot of data on the map.
尺寸Size 在根据“字段”窗格中“大小”框里的值调整大小的地图上绘制数据点。Plots data points on the map based that are sized based on the value in the size bucket in the fields pane.
聚类Clustering 在地图的各个区域中绘制数据点的数目。Plot the count of data points in regions on the map.

符号样式Symbol style

使用符号样式可以对地图上数据的显示方式进行精细调整。Symbol styles enable you to fine tune how data is presented on the map. 根据所选的位置类型和地图主题,符号样式会有所不同。Symbol styles are context sensitive based on the selected Location type and Map theme. 下面的示例展示了如何将“位置类型”设置为“大小”,以及如何调整透明度、样式和大小。The example below shows Location type set to Size and several adjustments to transparency, style and size.

固定内容Pins

通过添加固定内容引起对地图上点的注意。Call attention to points on your map by adding pins.

  1. 选择“固定内容”选项卡。Select the Pins tab.
  2. 在搜索框中键入关键字(如地址、地点和兴趣点),再从下拉列表中进行选择。Type keywords (such as addresses, places, and point of interest), in the search box and select from the dropdown. 地图上会显示一个符号,并会自动缩放到相应位置。A symbol appears on the map, and the map automatically zooms to the location. 搜索结果将会保存为“大头针”窗格中的位置卡。Search results are saved as location cards in the Pins pane. 最多可以保存 10 张位置卡。You can save up to 10 location cards.

  3. Power BI 将固定内容添加到该位置,你可以更改固定内容的颜色。Power BI adds a pin to that location and you can change the color of the pin.

  4. 添加和删除固定内容。Add and delete pins.

驾驶时间Drive time

使用“驾驶时间”窗格,可以选择一个位置,然后确定在指定半径区域或驾驶时间内可用的其他地图功能。The Drive time pane lets you select a location and then determine what other map features are within a specified radius or driving time.

  1. 选择“驾驶时间”选项卡,再选择单选或多选工具。Select the Drive time tab and choose the single or multi select tool. 单选华盛顿特区的大头针。Single select the pin for Washington D.C.

    提示

    如果放大地图(使用“+”图标),选择位置将更加容易。It's easier to select a location if you zoom in on the map (using the + icon).

  2. 假设要乘飞机到华盛顿特区Let's say you're flying into Washington D.C. 呆几天,并要确定在合理行驶范围内有哪些商店。for a few days and want to figure out which stores are within a reasonable driving distance. 将“搜索区域”更改为“半径区域”,并将“距离”更改为“50 英里”,再选择“确定”。Change Search area to Radius and Distance to 50 miles and select OK.

  3. 半径区域显示为紫色。The radius is shown in purple. 选择任何一个位置,显示它的详细信息。Select any location to display its details. (可选)更改颜色和边框,设置半径区域格式。Optionally, format the radius by changing color and outline.

引用层Reference Layer

引用层 — 人口统计Reference layer - Demographics

ArcGIS Maps for Power BI 中可选择人口统计信息层,这些图层可以为 PowerBI的数据提供相关的对照信息。ArcGIS Maps for Power BI provides a selection of demographic layers that help contextualize data from Power BI.

  1. 选择“引用层”选项卡,然后选择“人口统计”。Select the Reference layer tab and choose Demographics.
  2. 所列出的每一个图层都带有一个复选框。Each layer listed has a checkbox. 勾选图层即可将该图层添加到地图中。Add a checkmark to add that layer to the map. 在此示例中,我们已将家庭平均收入图层添加到地图中。In this example we've added average household income.

  3. 每一个图层都可以进行交互式操作。Each layer is interactive as well. 正如可以将鼠标悬停在气泡图以查看详细信息,同样也可以单击地图上的阴影区域查看明细。Just as you can hover over a bubble to see the details, you can click a shaded area on the map to see the details.

引用层 — ArcGISReference layer - ArcGIS

ArcGIS Online 允许组织发布公共的 Web 地图。ArcGIS Online provides the ability for organizations to publish public web maps. 另外,Esri 还通过 Living Atlas 提供了一套精选的 Web 地图集。Additionally, Esri provides a curated set of web maps through Living Atlas. 在 ArcGIS 选项卡中,可以搜索所有的公共 Web 地图或 Living Atlas 地图,并将搜索到的地图作为引用层添加到地图中。In the ArcGIS tab, you can search all public web maps or Living Atlas maps, and add them to the map as reference layers.

  1. 选择“引用层”选项卡,然后选择“ArcGIS”。Select the Reference layer tab and choose ArcGIS.
  2. 输入搜索词,然后选择一个地图图层。Enter search terms and then select a map layer. 在本例中我们选择美国参议院选区分布图。In this example we've chosen USA Congressional districts.

  3. 若要查看详细信息,请选择阴影区域以打开“从引用层选择”:对引用层上的所选区域的边界或对象使用引用层选择工具。To see the details, select a shaded area to open the Select from reference layer: Use the reference layer selection tool to selection boundaries or objects on the reference layer.


选择数据点Selecting Data points

ArcGIS Maps for Power BI 有三种选择模式。ArcGIS Maps for Power BI allows three selection modes.

使用切换的方式更改选择模式:Change the selection mode using switch:

选择单个数据点。 Select individual data points.

在地图上绘制一个矩形框来选择包含的数据点。 Draws a rectangle on the map and selects the contained data points.

利用引用层中的边界或多边形来选择所包含的数据点。 Allows boundaries or polygons within reference layers to be used to select contained data points.

备注

一次最多可选择 250 个数据点。A maximum of 250 data points can be selected at a time.


获取帮助Getting help

Esri 针对 ArcGIS Maps for Power BI 的功能集提供综合文档Esri provides comprehensive documentation on the feature set of ArcGIS Maps for Power BI.

可以在 Power BI 社区中与适用于 Power BI 的 ArcGIS 地图相关的帖子中提问题和查找最新信息,报告问题并查找答案。You can ask questions, find the latest information, report issues, and find answers on the Power BI community thread related to ArcGIS Maps for Power BI.

如果有改进建议,可以将建议提交到 Power BI 建议列表If you have a suggestion for an improvement, please submit it to Power BI's ideas list.


管理组织中的 ArcGIS Maps for Power BI 的使用方式Managing use of ArcGIS Maps for Power BI within your organization

Power BI 允许用户、租户管理员、IT 管理员设置是否要使用 ArcGIS Maps for Power BI。Power BI provides the ability for users, tenant administrators, and IT administrators to manage whether to use ArcGIS Maps for Power BI.

用户选项 在 Power BI Desktop 中,用户可以停止使用 ArcGIS Maps for Power BI,方法是在选项中的“安全”选项卡中禁用此组件。User options In Power BI Desktop, users can stop using ArcGIS Maps for Power BI by disabling it on the security tab in Options. 禁用后,默认不会加载 ArcGIS Maps。When disabled, ArcGIS Maps will not load by default.

在 Power BI 服务中,用户可以在用户设置中的“适用于 Power BI 的 ArcGIS 地图”选项卡上禁用适用于 Power BI 的 ArcGIS 地图,从而停止使用此类地图。In Power BI service, users can stop using ArcGIS Maps for Power BI by disabling it on the ArcGIS Maps for Power BI tab in user Settings. 禁用后,默认不会加载 ArcGIS Maps。When disabled, ArcGIS Maps will not load by default.

租户管理员选项 在 PowerBI.com 中,租户管理员可以通过禁用 ArcGIS Maps for Power BI 来阻止所有租户使用此组件。Tenant admin options In PowerBI.com, tenant administrators can prevent all tenant users from using ArcGIS Maps for Power BI by disabling. 禁用后,Power BI 不再能在“可视化效果”窗格中看到 ArcGIS Maps for Power BI 图标。When this happens, Power BI will no longer see the ArcGIS Maps for Power BI icon in the visualizations pane.

IT 管理员选项 Power BI Desktop 支持使用组策略在整个组织内的已部署计算机上禁用 ArcGIS Maps for Power BI。IT Administrator options Power BI Desktop supports using Group Policy to disable ArcGIS Maps for Power BI across an organization's deployed computers.

属性AttributeValue
key Software\Policies\Microsoft\Power BI Desktop\Software\Policies\Microsoft\Power BI Desktop\
值名称valueName EnableArcGISMapsEnableArcGISMaps

值为 1(十进制),启用 ArcGIS Maps for Power BI。A value of 1 (decimal) enables ArcGIS Maps for Power BI.

值为 0(十进制),禁用 ArcGIS Maps for Power BI。A value of 0 (decimal) disable ArcGIS Maps for Power BI.

注意事项和限制Considerations and Limitations

以下服务和应用支持适用于 Power BI 的 ArcGIS 地图:ArcGIS Maps for Power BI is available in the following services and applications:

服务/应用Service/App是否支持Availability
Power BI DesktopPower BI Desktop Yes
Power BI 服务 (PowerBI.com)Power BI service (PowerBI.com) Yes
Power BI 移动应用程序Power BI mobile applications Yes
Power BI 发布到 WebPower BI publish to web No
Power BI EmbeddedPower BI Embedded No
Power BI 服务嵌入 (PowerBI.com)Power BI service embedding (PowerBI.com) No

在不支持适用于 Power BI 的 ArcGIS 地图的服务或应用中,可视化效果将显示为带 Power BI 徽标的空视觉对象。In services or applications where ArcGIS Maps for Power BI is not available, the visualization will show as an empty visual with the Power BI logo.

对街道地址进行地理编码时,只会对前 1500 个地址进行地理编码。When geocoding street addresses, only the first 1500 addresses are geocoded. 对地名或国家/地区进行地理编码时,没有前 1500 个地址限制。Geocoding place names or countries is not subject to the 1500 address limit.


使用适用于 Power BI 的 ArcGIS 地图需要付费吗?Is there any charge for using ArcGIS Maps for Power BI?

所有 Power BI 用户都可以使用适用于 Power BI 的 ArcGIS 地图,无需额外付费。The ArcGIS Map for Power BI is available to all Power BI users at no additional cost. 此组件由 Esri 提供,应在本文前面所述的由 Esri 提供的使用条款及隐私政策的限制下使用此组件。It is a component provided by Esri and your use is subject to the terms and privacy policy provided by Esri as noted earlier in this article.

我在 Power BI Desktop 中看到关于缓存已满的错误消息I'm getting an error message in Power BI Desktop about my cache being full

我们正在修复此 bug。This is a bug that is being addressed. 在此期间,若要清除缓存,请尝试删除 C:\Users\AppData\Local\Microsoft\Power BI Desktop\CEF 位置中的文件,再重启 Power BI。In the meantime, to clear your cache, please try to delete files at this location: C:\Users\AppData\Local\Microsoft\Power BI Desktop\CEF and then restart Power BI.

适用于 Power BI 的 ArcGIS 地图是否支持 Esri 形状文件?Does ArcGIS Maps for Power BI support Esri Shapefiles?

ArcGIS Maps for Power BI 自动检测诸如国家/地区、州/省,以及邮政编码等标准边界。ArcGIS Maps for Power BI automatically detects standard boundaries like countries/regions, states/provinces, and zip/postal codes. 如果需要提供自定义的形状,可以使用 Shape Maps for Power BI Desktop(预览版) 来操作。If you need to provide your own shapes you can do so using the Shape Maps for Power BI Desktop (Preview).

是否能够离线查看 ArcGIS 地图?Can I view my ArcGIS maps offline?

否,Power BI 需要网络连接才能显示地图。No, Power BI needs network connectivity to display the maps.

可以从 Power BI 连接我的 ArcGIS Online 帐户吗?Can I connect to my ArcGIS Online account from Power BI?

目前还不行。Not yet. 投票支持此建议吧。等我们着手开发此功能时,我们会向你发送一封电子邮件。Vote for this idea and we'll send you an email when we start working on this feature.

后续步骤Next steps

与已与你共享的 ArcGIS 地图交互Interacting with an ArcGIS map that has been shared with you

宣布推出适用于 Power BI 的 ArcGIS 地图的博客文章Blog post announcing availability of ArcGIS maps for Power BI

更多问题?More questions? 尝试咨询 Power BI 社区Try asking the Power BI Community