FloorFilter
FloorFilter allows users to take advantage of floor-aware maps and scenes by surfacing and then filtering floor data.
Features
- Automatically hides the floor browsing view when the associated map or scene is not floor-aware
- Selects the facility in view automatically
- This behavior can be configured through the
AutomaticSelectionMode
property
- This behavior can be configured through the
- View is space-efficient and can be expanded/collapsed (WPF only)
- Shows the selected facility's levels in proper vertical order
- Filters the map/scene content to show the selected level
- Allows browsing the full floor-aware hierarchy of sites, facilities, and levels
- When consuming simpler maps, simplifies the UI as needed; for example, the site browsing experience is hidden when there is only one (or no) sites
- When browsing, allows dynamic filtering of lists
- Shows the ground floor of all facilities when there is no active selection
- Updates the visibility of floor levels across all facilities (e.g. if you are looking at floor 3 in building A, floor 3 will be shown in neighboring buildings)
- Exposes a full range of template and style properties for easy customization
- Adjusts layout and presentation to work well regardless of positioning - left/right and top/bottom
- Keeps the selected facility visible in the list while the selection is changing in response to map navigation
Customization
NOTE: Some properties aren't available on all platforms due to platform-specific differences in how the view is implemented.
The following properties enable customization of the view:
ZoomToButtonStyle
BrowseButtonStyle
ExpandCollapseButtonStyle
CommonListStyle
- style applied to all lists (levels, sites, facilities)LevelDataTemplate
- displays levels in the non-browsing floor filter experienceSiteDataTemplate
- displays sites in the browsing viewFacilityDataTemplate
- displays facilities in the browsing viewDifferentiatingFacilityDataTemplate
- displays facilities in the list of all facilities from all sites
The following properties enable customization or localization of text displayed in the view:
BackButtonLabel
AllFacilitiesLabel
AllFloorsLabel
CloseLabel
ExpandLabel
CollapseLabel
ZoomToLabel
BrowseLabel
NoResultsMessage
SearchPlaceholder
Usage
.NET MAUI:
<Grid xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<esri:MapView x:Name="MyMapView" />
<esri:FloorFilter GeoView="{x:Reference MyMapView}" />
</Grid>
UWP/WinUI:
<Grid xmlns:esri="using:Esri.ArcGISRuntime.UI.Controls"
xmlns:toolkit="using:Esri.ArcGISRuntime.Toolkit.UI.Controls">
<esri:MapView x:Name="MyMapView" />
<toolkit:FloorFilter GeoView="{Binding ElementName=MyMapView}" />
</Grid>
WPF:
<Grid xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<esri:MapView x:Name="MyMapView" />
<esri:FloorFilter GeoView="{Binding ElementName=MyMapView}" />
</Grid>