Class MapInfoWidget
Implements
Inherited Members
Namespace: Mapsui.Widgets.InfoWidgets
Assembly: Mapsui.dll
Syntax
public class MapInfoWidget : TextBoxWidget, IWidget
Constructors
| Edit this page View SourceMapInfoWidget(Map, IEnumerable<ILayer>)
Widget displaying information about the feature at the current mouse position
Declaration
public MapInfoWidget(Map map, IEnumerable<ILayer> layers)
Parameters
| Type | Name | Description |
|---|---|---|
| Map | map | The map that is queried. |
| IEnumerable<ILayer> | layers | The list of layers to filter. |
MapInfoWidget(Map, Func<ILayer, bool>)
Widget displaying information about the feature at the current mouse position
Declaration
public MapInfoWidget(Map map, Func<ILayer, bool> layersFilter)
Parameters
| Type | Name | Description |
|---|---|---|
| Map | map | The map that is queried. |
| Func<ILayer, bool> | layersFilter | The filter to select the layers to query. The advantage of a filter is that it can handle changes to the layer list later on. |
MapInfoWidget(Map, Func<IEnumerable<ILayer>>)
Widget displaying information about the feature at the current mouse position
Declaration
public MapInfoWidget(Map map, Func<IEnumerable<ILayer>> getMapInfoLayers)
Parameters
| Type | Name | Description |
|---|---|---|
| Map | map | The map that is queried. |
| Func<IEnumerable<ILayer>> | getMapInfoLayers | The method to retrieve the layers to query. |
Properties
| Edit this page View SourceFeatureToText
Declaration
public Func<IFeature?, string> FeatureToText { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<IFeature, string> |