Skip to main content

BubbleLayer Class

Definition​

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

A bubble layer that renders sized circles at geographic coordinates.

public class BubbleLayer

Inheritance: object -> AvaloniaObject -> MapLayer -> BubbleLayer

Constructors​

NameDescription
BubbleLayerNo summary available.

BubbleLayer Constructor​

public BubbleLayer()

Methods​

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetLayerBoundsGets the geographic bounds (in 0-200, 0-100 viewport units) of the content in this layer. Used for auto-scaling the map to fit content.
GetPointDataGets the data item at the specified screen point.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
OnPointerExitedHandles pointer exited events. Override this method to handle interactions (e.g. clearing hover effects).
OnPointerMovedHandles pointer moved events. Override this method to handle interactions (e.g. hover effects).
OnPointerPressedHandles pointer pressed events. Override this method to handle interactions (e.g. selection). Inherited from MapLayer.
RenderRenders this layer to the drawing context.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

GetLayerBounds Method​

Gets the geographic bounds (in 0-200, 0-100 viewport units) of the content in this layer. Used for auto-scaling the map to fit content.

public Nullable<Avalonia.Rect> GetLayerBounds()

Returns​

Nullable<Avalonia.Rect>

GetPointData Method​

Gets the data item at the specified screen point.

public object GetPointData(Avalonia.Point point, Avalonia.Rect chartArea)

Parameters​

point Avalonia.Point

The screen point to test.

chartArea Avalonia.Rect

The chart area rectangle.

Returns​

object

The data item if hit; otherwise, null.

OnPointerExited Method​

Handles pointer exited events. Override this method to handle interactions (e.g. clearing hover effects).

public void OnPointerExited()

OnPointerMoved Method​

Handles pointer moved events. Override this method to handle interactions (e.g. hover effects).

public bool OnPointerMoved(Avalonia.Point point, Avalonia.Rect chartArea)

Parameters​

point Avalonia.Point

chartArea Avalonia.Rect

Returns​

bool

True if handled.

Render Method​

Renders this layer to the drawing context.

public void Render(Avalonia.Media.DrawingContext context, Avalonia.Rect chartArea, double animationProgress)

Parameters​

context Avalonia.Media.DrawingContext

The drawing context.

chartArea Avalonia.Rect

The chart area rectangle.

animationProgress double

Animation progress from 0 to 1.

Properties​

NameDescription
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
FillGets or sets the fill brush for bubbles.
IsVisibleGets or sets whether this layer is visible. Inherited from MapLayer.
ItemInherited from AvaloniaObject.
ItemsSourceGets or sets the data source.
LabelPathGets or sets the property path for labels.
LatitudePathGets or sets the property path for latitude.
LongitudePathGets or sets the property path for longitude.
MaxBubbleSizeGets or sets the maximum bubble radius.
MinBubbleSizeGets or sets the minimum bubble radius.
OpacityGets or sets the opacity of this layer. Inherited from MapLayer.
PointBrushPathGets or sets the property path for bubble color.
ShowLabelsGets or sets whether to show labels.
SizePathGets or sets the property path for bubble size.
StrokeGets or sets the stroke brush for bubbles.
TooltipTemplateGets or sets the data template used for tooltips. Inherited from MapLayer.

Fill Property​

Gets or sets the fill brush for bubbles.

public Avalonia.Media.IBrush Fill { get; set; }

ItemsSource Property​

Gets or sets the data source.

public System.Collections.IEnumerable ItemsSource { get; set; }

LabelPath Property​

Gets or sets the property path for labels.

public string LabelPath { get; set; }

LatitudePath Property​

Gets or sets the property path for latitude.

public string LatitudePath { get; set; }

LongitudePath Property​

Gets or sets the property path for longitude.

public string LongitudePath { get; set; }

MaxBubbleSize Property​

Gets or sets the maximum bubble radius.

public double MaxBubbleSize { get; set; }

MinBubbleSize Property​

Gets or sets the minimum bubble radius.

public double MinBubbleSize { get; set; }

PointBrushPath Property​

Gets or sets the property path for bubble color.

public string PointBrushPath { get; set; }

ShowLabels Property​

Gets or sets whether to show labels.

public bool ShowLabels { get; set; }

SizePath Property​

Gets or sets the property path for bubble size.

public string SizePath { get; set; }

Stroke Property​

Gets or sets the stroke brush for bubbles.

public Avalonia.Media.IBrush Stroke { get; set; }

Fields​

FillProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.Fill Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.IBrush> FillProperty

ItemsSourceProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.ItemsSource Avalonia property.

public Avalonia.StyledProperty<System.Collections.IEnumerable> ItemsSourceProperty

LabelPathProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.LabelPath Avalonia property.

public Avalonia.StyledProperty<string> LabelPathProperty

LatitudePathProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.LatitudePath Avalonia property.

public Avalonia.StyledProperty<string> LatitudePathProperty

LongitudePathProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.LongitudePath Avalonia property.

public Avalonia.StyledProperty<string> LongitudePathProperty

MaxBubbleSizeProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.MaxBubbleSize Avalonia property.

public Avalonia.StyledProperty<double> MaxBubbleSizeProperty

MinBubbleSizeProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.MinBubbleSize Avalonia property.

public Avalonia.StyledProperty<double> MinBubbleSizeProperty

PointBrushPathProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.PointBrushPath Avalonia property.

public Avalonia.StyledProperty<string> PointBrushPathProperty

ShowLabelsProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.ShowLabels Avalonia property.

public Avalonia.StyledProperty<bool> ShowLabelsProperty

SizePathProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.SizePath Avalonia property.

public Avalonia.StyledProperty<string> SizePathProperty

StrokeProperty Field​

Identifies the Avalonia.Controls.Charts.BubbleLayer.Stroke Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.IBrush> StrokeProperty

Events​

NameDescription
InvalidatedEvent raised when the layer needs to be redrawn. Inherited from MapLayer.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.