GeoMap

Class · Namespace LiveChartsCore.SkiaSharpView.Eto · Assembly LiveChartsCore.SkiaSharpView.Eto · View source

Members

Properties

CoreChart GeoMapChart
Gets the core chart. Shadows IChartView.CoreChart with the more-derived GeoMapChart type.
AutoUpdateEnabled Boolean
Gets or sets a value indicating whether the automatic updates are enabled.
TooltipFormatter Func<GeoTooltipValue, String>
Gets or sets a formatter for the per-series value lines in the default tooltip. When null, each GeoTooltipValue renders as "{Series.Name}: {Value:N2}" (or just "{Value:N2}" if the series has no name). Has no effect when a custom IGeoMapTooltip is set.
ChartTheme Theme
Gets or sets the chart theme.
DrawMargin Margin
Gets or sets the draw margin, if this property is null, the library will calculate a margin, this margin is the distance between the view bounds and the drawable area.
AnimationsSpeed TimeSpan
Gets or sets the animations speed.
EasingFunction Func<Single, Single>
Gets or sets the easing function, the library already provides many easing functions in the LiveCharts.EasingFunction static class.
UpdaterThrottler TimeSpan
Gets or sets the updater throttler, this property controls the interval where the user interface updates.
LegendPosition LegendPosition
Gets or sets the legend position.
LegendTextPaint Paint
Gets or sets the legend default text paint, when null the library will use the default text paint.
LegendBackgroundPaint Paint
Gets or sets the legend background paint, when null the library will use the default background paint.
LegendTextSize Double
Gets or sets the legend text size, when null the library will use the default text size.
Title IChartElement
Gets or sets the chart title.
Legend IChartLegend
Gets or sets the legend.
VisualElements IEnumerable<IChartElement>
Gets or sets the visual elements.
SyncContext Object
Gets or sets the Synchronization Context, use this property to use an external object to handle multi threading synchronization.
ActiveMap DrawnMap
Gets or sets the active map.
MapProjection MapProjection
Gets or sets the projection.
MinLatitude Double
Gets or sets the minimum latitude (in degrees) clipped to the bottom edge of the rendered map. Double.NaN (the default) means the projection picks its own default — Mercator uses MercatorProjector.DefaultMinLatitudeDegrees (-65°), cropping the sub-Antarctic empty band; Default uses ControlCoordinatesProjector.DefaultMinLatitudeDegrees (-90°). Honored by Mercator and Default; MapProjection.Orthographic ignores it (use GeoMapChart.CenterLatitude instead).
MaxLatitude Double
Gets or sets the maximum latitude (in degrees) clipped to the top edge of the rendered map. Double.NaN (the default) means the projection picks its own default — Mercator uses MercatorProjector.DefaultMaxLatitudeDegrees (85°), which already covers Greenland; Default uses ControlCoordinatesProjector.DefaultMaxLatitudeDegrees (90°). To render the classic full-earth Mercator including Antarctica, extend the bottom edge: set IGeoMapView.MinLatitude = -85. Honored by Mercator and Default; MapProjection.Orthographic ignores it.
MinLongitude Double
Gets or sets the minimum longitude (in degrees) clipped to the left edge of the rendered map. Double.NaN (the default) means the projection picks its own default (-180° for both Mercator and Default). Honored by Mercator and Default; MapProjection.Orthographic ignores it (use GeoMapChart.CenterLongitude instead).
MaxLongitude Double
Gets or sets the maximum longitude (in degrees) clipped to the right edge of the rendered map. Double.NaN (the default) means the projection picks its own default (180° for both Mercator and Default). Honored by Mercator and Default; MapProjection.Orthographic ignores it.
InteractionMode MapInteractionMode
Gets or sets which interactions are enabled (pan / zoom / both / none). Defaults to MapInteractionMode.None — geo maps are most often embedded as static dashboard tiles, so the default is no interaction. Set MapInteractionMode.Zoom for wheel-zoom, or MapInteractionMode.Both for wheel-zoom + click-drag pan.
Stroke Paint
Gets or sets the stroke painted around each land.
Fill Paint
Gets or sets the fill painted on lands with no series value.
Series IEnumerable<IGeoSeries>
Gets or sets the series. Shadows IChartView.Series because geo series do not implement the chart-series interface.
Tooltip IGeoMapTooltip
Gets or sets the tooltip. Shadows IChartView.Tooltip because the map uses a land-based tooltip contract instead of IChartTooltip.
TooltipPosition TooltipPosition
Gets or sets the tooltip position.
TooltipTextPaint Paint
Gets or sets the tooltip default text paint, when null the library will use the default text paint.
TooltipBackgroundPaint Paint
Gets or sets the tooltip background paint, when null the library will use the default background paint.
TooltipTextSize Double
Gets or sets the tooltip text size, when null the library will use the default text size.
ZoomingSpeed Double
Gets or sets the zooming speed; a value in [0.1, 0.95].
MinZoomLevel Double
Gets or sets the minimum zoom level. Defaults to 1.
MaxZoomLevel Double
Gets or sets the maximum zoom level. Defaults to 100.
CoreCanvas CoreMotionCanvas
Gets the motion canvas.
ControlSize LvcSize
Gets the size of the control.
DesignerMode Boolean
Gets whether the control is in designer mode.
IsDarkMode Boolean
Gets whether the control is in dark mode.

Methods

ApplyTheme 1 parameter

Applies the given theme's chart-level rules (see Theme.ChartBuilder) to this view. The implementation must honor any property the user set in XAML or code, so a theme never overwrites an explicit user value.

Theme theme The theme to apply.

GetPointsAt 3 parameters

Gets all the ChartPoint that contain the given point.

LvcPointD point The given point.

FindingStrategy strategy The finding strategy, default is FindingStrategy.Automatic.

FindPointFor findPointFor The find point for, default is FindPointFor.HoverEvent.

GetVisualsAt 1 parameter

Gets all the IChartElement that contain the given point.

LvcPointD point The given point.

OnDataPointerDown 2 parameters

Called when the pointer goes down on a data point or points.

IEnumerable<ChartPoint> points The found points.

LvcPoint pointer The pointer location.

OnHoveredPointsChanged 2 parameters

Called when the hovered points change.

IEnumerable<ChartPoint> newItems The new points.

IEnumerable<ChartPoint> oldItems The old points.

OnVisualElementPointerDown 2 parameters

Called when the pointer goes down on a visual element(s).

IEnumerable<IInteractable> visualElements The visual elements.

LvcPoint pointer The pointer location.

Invalidate No parameters

Invalidates the control.

InvokeOnUIThread 1 parameter

Invokes an action in the UI thread.

Action action

Invalidate No parameters

Invalidates the control.

Events

Measuring ChartEventHandler
Occurs before the chart is measured, this is the first step before the chart updates.
UpdateStarted ChartEventHandler
Occurs when the chart started an update, just when the drawing loop started.
UpdateFinished ChartEventHandler
Occurs when a chart update finished, just when the drawing loop finished.
DataPointerDown ChartPointsHandler
Occurs when the pointer goes down over a chart point(s).
HoveredPointsChanged ChartPointHoverHandler
Occurs when the hovered points in the chart change.
ChartPointPointerDown ChartPointHandler
Occurs when the pointer goes down over a chart point, if there are multiple points, the closest one will be selected.
VisualElementsPointerDown VisualElementsHandler
Occurs when the pointer goes down over a visual element.

Constructors

GeoMap No parameters

Initializes a new instance of the SourceGenMapChart class.