How Icon Map Slicer works
Every Icon Map Slicer map is built from three parts: a basemap, data layers that draw the rows of your report, and reference layers that add context. Selecting items on the map filters the rest of the report page. Once you know how a row of data finds its layer, and what a selection filters, the rest of the visual falls into place.
The three parts of a map
| Part | What it is | Where it comes from |
|---|---|---|
| Basemap | The map underneath everything: streets, satellite imagery, a light or dark canvas. | Icon Map's own basemap styles, or a map style of your own. See Basemaps overview. |
| Data layers | Your report data, drawn on the map. Each row of data becomes one thing on the map: a circle, an image, a line, a shape, a 3D column, or a point counted into a heatmap or cell. | The fields you add to the visual. See Data layers overview. |
| Reference layers | Context that is drawn as published and is not joined to your data: boundaries from a file, map tiles, a WMS service, vector tiles, day and night shading, place names over your data. | A link, an uploaded file or a service. See Reference layers overview. |
From version 1.1.0.11 you can also use ArcGIS content: ArcGIS basemaps and web maps, ArcGIS reference layers, and an ArcGIS layer joined to your data. Maps added in 1.1.0.11 or later can also offer readers a choice of basemaps from several sources.
Data layers respond to the report. They follow slicers and filters, show tooltips, and are what you select to filter the page. Reference layers do not change with your data.
Layers are drawn from the bottom up, and each layer has a position in that order. You can change it, for example to draw a boundary file above your circles or place names above everything.
Fields: how data reaches the map
You give Icon Map Slicer data by adding fields to its field wells in the Build pane, as with any Power BI visual. The field wells are:
| Field well | Used for |
|---|---|
| * ID (required) | A value that identifies each row. Every layer needs it, and it is the field that selections filter on. |
| Longitude (X), Latitude (Y) | Where a point is, or where a line starts. |
| Destination Longitude, Destination Latitude | Where a line ends. |
| Circle Size | The size of each circle. |
| Column Height | The height of each 3D column. |
| Cell (H3/S2/A5/Geohash) Weight | The value added up in each cell. |
| Heatmap Weight | How much each point adds to a heatmap. |
| Image / WKT / GeoJSON | An image address for the Images layer, or shape geometry as text for Shapes (from data). |
| Feature Reference | The code or name that joins a row to a shape in a file, a tile set or a catalog layer. |
| Tooltips | The fields listed in the tooltip. |
The Fields reference describes each one in full.
One row is one thing on the map
Power BI groups your data by the field in * ID (required) and sends Icon Map Slicer one row for each ID value. Each row becomes one item on the map. Three consequences follow:
- The ID must be unique for each thing you want to draw. If two stores share an ID, they become one row and one circle.
- Without an ID, Power BI sends no rows and nothing can be drawn.
- When you select an item, the report is filtered to its ID value. Choose an ID field that the other visuals on the page can be filtered by.
Because the other field wells hold summarized values, set Longitude (X) and Latitude (Y) to Average (select the arrow next to the field in the Build pane). With a unique ID, the average of one row is the row's own value.
By default Power BI sends up to 30,000 rows. You can raise this. See Data rows and limits.
A row picks its layer by the fields it fills in
There is no setting that says "draw this row as a circle". Instead, each row is drawn by the layer whose fields it fills in, as long as it leaves the fields that belong to other layers empty.
In the example:
- Store A has a longitude, a latitude and a circle size, and nothing else. It is a circle.
- Route B has an origin and a destination. It is a line.
- Region C has only a feature reference. It is joined to a shape in a file.
- Row D fills in the fields of a circle and also a feature reference. Circles skip it, because a feature reference marks a row as a shape. Shapes (from files) skip it, because it has coordinates. It is not drawn.
Three rules cover most cases:
- Fill in what the layer needs. A circle needs * ID (required), Longitude (X), Latitude (Y) and Circle Size. A line needs the two destination fields instead of a size. Choose a layer type lists the fields for every layer.
- Leave the other layers' fields empty on that row. Empty means the field is not in the visual, or the row's value is blank. A blank text cell counts as empty, the same as a
BLANK()returned by a measure. - Turn the layer on. A row is only drawn if its layer is switched on. On a new map, Circles is on and the other data layers are off.
This is also how one map shows several layer types at once: keep the rows in one table and fill in different fields on different rows. Combine several layers in one map explains the patterns.
While you edit a report, Icon Map Slicer tells you when your rows do not reach any layer. A panel titled What kind of map are you making? appears over the map and shows which fields each layer type needs and which you already have. See Choose a layer type.
Selecting on the map filters the report
This is what makes Icon Map Slicer a slicer. When a reader selects items on the map, the visual applies a filter on the * ID (required) field to the report page, in the same way as a Power BI slicer.
- Other visuals filter. Every visual on the page that can be filtered by the ID field shows only the selected items. Power BI applies the filter through the relationships in your model, so the ID field's table must relate to the data in the other visuals.
- The map does not filter itself. It keeps every item, shows the selected ones solid and fades the rest.
- The filter is saved with the report. It stays in place when you save the report, and bookmarks capture it.
- Clearing. Click the selected items again, or click an empty part of the map (unless you turn off Background Click Clears Selection), to remove the filter.
You can select in several ways:
| Way to select | What it selects |
|---|---|
| Click, and Ctrl or Shift and click | One item, or several |
| Lasso | Everything inside a shape you draw |
| Circle select | Everything within a distance of a point |
| Select inside a shape | The items inside a region or a boundary you click |
| Travel time | Everything that can be reached from a point within a time or a distance |
| Map location | Filters the report to the area in view as the reader pans and zooms |
Other visuals filter the map in the usual way: a slicer, a filter or a selection in another visual reduces the rows that Icon Map Slicer receives, and the map draws only those. Icon Map Slicer does not cross-highlight, and is not highlighted by other visuals.
See How Icon Map Slicer filters for the details.
Where the settings are
You can set up a map in three places. They write the same settings, so you can move between them freely.
| Place | Use it to |
|---|---|
| Layer Manager | See every layer on the map in drawing order, add layers step by step, change the most used style options, reorder, hide and remove layers, and check which rows each layer draws. Open it from Format pane > Layer Manager > Open Layer Manager. See Layer Manager. |
| Basemaps dialog | Choose the basemaps a map offers, pick the one it opens with, and set terrain, lighting and zoom. On maps added in 1.1.0.11 or later, open it from Format pane > Background Layer > Basemaps > Configure Basemaps. Older maps set the basemap in the Format pane. See The Basemaps dialog and Basemaps overview. |
| Format pane | Reach every setting, including the selection tools on the Selection card, and apply conditional formatting (fx) so that colors, sizes and other values come from your data. See Format pane map. |
A good way to work is to add and arrange layers in the Layer Manager, then go to the Format pane when you want a value to follow your data or to set up selection.
Values from your data: conditional formatting
Many settings have an fx button in the Format pane. Use it to take the value from a field or measure, or from a rule or color scale, so that each row gets its own color, size, label text or visibility. This is how you color circles by a measure or show a different icon for each category. See Conditional formatting.
How a report reader uses the map
Readers can pan, zoom, tilt and rotate the map, hover for tooltips, and select items to filter the rest of the report page. You decide which selection tools and controls appear on the map. See How Icon Map Slicer filters and Map controls.