Class Pin
Assembly: Mapsui.UI.Forms.dll
public class Pin : IFeatureProvider, IDisposable, INotifyPropertyChanged
Constructors
|
Edit this page
View Source
Initializes a new instance of the Pin class
Declaration
|
Edit this page
View Source
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 Source
Adress (like street) of pin
Declaration
public string? Address { get; set; }
Property Value
|
Edit this page
View Source
Anchor of bitmap in pixel
Declaration
public Point Anchor { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public Callout Callout { get; }
Property Value
Type |
Description |
Callout |
Callout for this pin
|
|
Edit this page
View Source
Declaration
public Color Color { get; set; }
Property Value
|
Edit this page
View Source
Mapsui feature for this pin
Declaration
public GeometryFeature? Feature { get; }
Property Value
|
Edit this page
View Source
Height of the bitmap after scaling, if there is one, if not, than -1
Declaration
public double Height { get; set; }
Property Value
|
Edit this page
View Source
Byte[] holding the bitmap informations
Declaration
public byte[]? Icon { get; set; }
Property Value
|
Edit this page
View Source
Determins, if the pin is drawn on map
Declaration
public bool IsVisible { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string? Label { get; set; }
Property Value
|
Edit this page
View Source
MaxVisible for pin in resolution of Mapsui (smaller values are higher zoom levels)
Declaration
public double MaxVisible { get; set; }
Property Value
|
Edit this page
View Source
MinVisible for pin in resolution of Mapsui (smaller values are higher zoom levels)
Declaration
public double MinVisible { get; set; }
Property Value
|
Edit this page
View Source
Position of pin, place where anchor is
Declaration
public Position Position { get; set; }
Property Value
|
Edit this page
View Source
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
|
Edit this page
View Source
Rotation in degrees around the anchor point
Declaration
public float Rotation { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public float Scale { get; set; }
Property Value
|
Edit this page
View Source
String holding the Svg image informations
Declaration
public string? Svg { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public object? Tag { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public float Transparency { get; set; }
Property Value
|
Edit this page
View Source
Type of pin. There are some predefined pins.
Declaration
public PinType Type { get; set; }
Property Value
|
Edit this page
View Source
Width of the bitmap after scaling, if there is one, if not, than -1
Declaration
public double Width { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public virtual void Dispose()
|
Edit this page
View Source
Determines whether the specified object is equal to the current Pin.
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current Pin.
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current
Pin; otherwise, false .
|
Overrides
|
Edit this page
View Source
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
Hide corresponding callout
Declaration
public void HideCallout()
|
Edit this page
View Source
Check visibility for corresponding callout
Declaration
public bool IsCalloutVisible()
Returns
Type |
Description |
bool |
True, if callout is visible on map
|
|
Edit this page
View Source
Declaration
protected virtual void OnPropertyChanged(string? propertyName = null)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
|
Edit this page
View Source
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
|
Edit this page
View Source
Show corresponding callout
Declaration
public void ShowCallout()
Events
|
Edit this page
View Source
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Operators
|
Edit this page
View Source
Declaration
public static bool operator ==(Pin? left, Pin? right)
Parameters
Type |
Name |
Description |
Pin |
left |
|
Pin |
right |
|
Returns
|
Edit this page
View Source
Declaration
public static bool operator !=(Pin? left, Pin? right)
Parameters
Type |
Name |
Description |
Pin |
left |
|
Pin |
right |
|
Returns
Implements