Class Drawable
Base class for all drawables like polyline, polygon and circle
Assembly: Mapsui.UI.Forms.dll
Syntax
public class Drawable : IFeatureProvider, INotifyPropertyChanged
Properties
|
Edit this page
View Source
Feature
Mapsui Feature belonging to this drawable
Declaration
public GeometryFeature? Feature { get; set; }
Property Value
|
Edit this page
View Source
IsClickable
Is this drawable clickable
Declaration
public bool IsClickable { get; set; }
Property Value
|
Edit this page
View Source
Label
Declaration
public string? Label { get; set; }
Property Value
|
Edit this page
View Source
MaxVisible
MaxVisible for drawable in resolution of Mapsui (smaller values are higher zoom levels)
Declaration
public double MaxVisible { get; set; }
Property Value
|
Edit this page
View Source
MinVisible
MinVisible for drawable in resolution of Mapsui (smaller values are higher zoom levels)
Declaration
public double MinVisible { get; set; }
Property Value
|
Edit this page
View Source
StrokeColor
Declaration
public Color StrokeColor { get; set; }
Property Value
|
Edit this page
View Source
StrokeWidth
StrokeWidth of drawable in pixel
Declaration
public float StrokeWidth { get; set; }
Property Value
|
Edit this page
View Source
Tag
Declaration
public object? Tag { get; set; }
Property Value
|
Edit this page
View Source
ZIndex
Declaration
public int ZIndex { get; set; }
Property Value
Methods
|
Edit this page
View Source
OnPropertyChanged(string?)
Declaration
protected virtual void OnPropertyChanged(string? propertyName = null)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
|
Edit this page
View Source
SetField<T>(ref T, T, string?)
Declaration
protected bool SetField<T>(ref T field, T value, string? propertyName = null)
Parameters
Type |
Name |
Description |
T |
field |
|
T |
value |
|
string |
propertyName |
|
Returns
Type Parameters
Events
|
Edit this page
View Source
Clicked
Event called, if this drawable is clicked an IsClickable is true
Declaration
public event EventHandler<DrawableClickedEventArgs>? Clicked
Event Type
|
Edit this page
View Source
PropertyChanged
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Implements