Class Pin
Inherited Members
Namespace: Mapsui.UI.Maui
Assembly: Mapsui.UI.Maui.dll
Syntax
public class Pin : IFeatureProvider, IDisposable, INotifyPropertyChanged
Constructors
| Edit this page View SourcePin()
Initializes a new instance of the Pin class
Declaration
public Pin()
Pin(MapView)
Initializes a new instance of the Pin class
Declaration
public Pin(MapView mapView)
Parameters
Type | Name | Description |
---|---|---|
MapView | mapView | MapView to which this pin belongs |
Properties
| Edit this page View SourceAddress
Adress (like street) of pin
Declaration
public string? Address { get; set; }
Property Value
Type | Description |
---|---|
string |
Anchor
Anchor of bitmap in pixel
Declaration
public Point Anchor { get; set; }
Property Value
Type | Description |
---|---|
Point |
Callout
Gets the callout
Declaration
public Callout Callout { get; }
Property Value
Type | Description |
---|---|
Callout | Callout for this pin |
Color
Color of pin
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Feature
Mapsui feature for this pin
Declaration
public GeometryFeature? Feature { get; }
Property Value
Type | Description |
---|---|
GeometryFeature | Mapsui feature |
Height
Height of the bitmap after scaling, if there is one, if not, than -1
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
double |
Icon
Byte[] holding the bitmap informations
Declaration
public byte[]? Icon { get; set; }
Property Value
Type | Description |
---|---|
byte[] |
IsVisible
Determins, if the pin is drawn on map
Declaration
public bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
bool |
Label
Label of pin
Declaration
public string? Label { get; set; }
Property Value
Type | Description |
---|---|
string |
MaxVisible
MaxVisible for pin in resolution of Mapsui (smaller values are higher zoom levels)
Declaration
public double MaxVisible { get; set; }
Property Value
Type | Description |
---|---|
double |
MinVisible
MinVisible for pin in resolution of Mapsui (smaller values are higher zoom levels)
Declaration
public double MinVisible { get; set; }
Property Value
Type | Description |
---|---|
double |
Position
Position of pin, place where anchor is
Declaration
public Position Position { get; set; }
Property Value
Type | Description |
---|---|
Position |
RotateWithMap
When true a symbol will rotate along with the rotation of the map. The default is false.
Declaration
public bool RotateWithMap { get; set; }
Property Value
Type | Description |
---|---|
bool |
Rotation
Rotation in degrees around the anchor point
Declaration
public float Rotation { get; set; }
Property Value
Type | Description |
---|---|
float |
Scale
Scaling of pin
Declaration
public float Scale { get; set; }
Property Value
Type | Description |
---|---|
float |
Svg
String holding the Svg image informations
Declaration
public string? Svg { get; set; }
Property Value
Type | Description |
---|---|
string |
Tag
Tag holding free data
Declaration
public object? Tag { get; set; }
Property Value
Type | Description |
---|---|
object |
Transparency
Transparency of pin
Declaration
public float Transparency { get; set; }
Property Value
Type | Description |
---|---|
float |
Type
Type of pin. There are some predefined pins.
Declaration
public PinType Type { get; set; }
Property Value
Type | Description |
---|---|
PinType |
Width
Width of the bitmap after scaling, if there is one, if not, than -1
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public virtual void Dispose()
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj |
Returns
Type | Description |
---|---|
bool |
|
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
| Edit this page View SourceHideCallout()
Hide corresponding callout
Declaration
public void HideCallout()
IsCalloutVisible()
Check visibility for corresponding callout
Declaration
public bool IsCalloutVisible()
Returns
Type | Description |
---|---|
bool | True, if callout is visible on map |
OnPropertyChanged(string?)
Declaration
protected virtual void OnPropertyChanged(string? propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName |
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 | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
T |
ShowCallout()
Show corresponding callout
Declaration
public void ShowCallout()
Events
| Edit this page View SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |
Operators
| Edit this page View Sourceoperator ==(Pin?, Pin?)
Declaration
public static bool operator ==(Pin? left, Pin? right)
Parameters
Type | Name | Description |
---|---|---|
Pin | left | |
Pin | right |
Returns
Type | Description |
---|---|
bool |
operator !=(Pin?, Pin?)
Declaration
public static bool operator !=(Pin? left, Pin? right)
Parameters
Type | Name | Description |
---|---|---|
Pin | left | |
Pin | right |
Returns
Type | Description |
---|---|
bool |