Interface IMarker
Gets or sets the properties of marker.
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public interface IMarker
Properties
AnimationDelay
Gets or sets the delay time for the animation in marker.
Declaration
double AnimationDelay { get; set; }
Property Value
Type |
---|
System.Double |
AnimationDuration
Gets or sets the duration time for animating the marker.
Declaration
double AnimationDuration { get; set; }
Property Value
Type |
---|
System.Double |
ColorValuePath
Gets or sets the value path from the marker data source to apply color for the marker.
Declaration
string ColorValuePath { get; set; }
Property Value
Type |
---|
System.String |
DashArray
Gets or sets the dash-array for the marker.
Declaration
string DashArray { get; set; }
Property Value
Type |
---|
System.String |
DataSource
Gets or sets the data source for the marker. The data source for the marker will contain latitude and longitude values to specify the location of the marker. The data source can contain data such as color, shape, and other details that can be bound to the color, shape, and tooltip of the marker.
Declaration
IEnumerable<object> DataSource { get; set; }
Property Value
Type |
---|
System.Collections.Generic.IEnumerable<System.Object> |
EnableDrag
Gets or sets a value indicating whether the user can drag and drop markers on the map at any location.
Declaration
bool EnableDrag { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
You can enable or disable the marker drag and drop functionality through mouse or touch interactions in the Syncfusion.Blazor.Maps component.
Fill
Gets or sets the color for the marker in maps.
Declaration
string Fill { get; set; }
Property Value
Type |
---|
System.String |
Height
Gets or sets the height of the marker in maps.
Declaration
double Height { get; set; }
Property Value
Type |
---|
System.Double |
HeightValuePath
This property specifies the field name from the objects in the marker data source to adjust the height of each marker individually within the group.
Declaration
string HeightValuePath { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts the string value which represents the field name from the objects in the marker data source. |
Remarks
When a numeric or string value is provided in the specified field, that value is used to determine the height of the current marker. If a numeric value is provided, the default value of "0" will be applied. In this case, the marker will not be rendered if the field contains only the default value.To handle this, nullable numeric types should be used and the height will be taken from the
Height
property of MapsMarker
.
ImageUrl
Gets or sets the URL for rendering the marker as image.
Declaration
string ImageUrl { get; set; }
Property Value
Type |
---|
System.String |
ImageUrlValuePath
Gets or sets the value path from the marker data source for the image of the marker.
Declaration
string ImageUrlValuePath { get; set; }
Property Value
Type |
---|
System.String |
LatitudeValuePath
Gets or sets the value path from the marker data source for setting latitude for a set of markers.
Declaration
string LatitudeValuePath { get; set; }
Property Value
Type |
---|
System.String |
LegendText
Gets or sets the text for the legend from the marker data source.
Declaration
string LegendText { get; set; }
Property Value
Type |
---|
System.String |
LongitudeValuePath
Gets or sets the value path from the marker data source for setting longitude for a set of markers.
Declaration
string LongitudeValuePath { get; set; }
Property Value
Type |
---|
System.String |
MarkerTemplate
Gets or sets the content of the UI element.
Declaration
RenderFragment<object> MarkerTemplate { get; set; }
Property Value
Type |
---|
Microsoft.AspNetCore.Components.RenderFragment<System.Object> |
OffsetX
Sets and gets the X position value of the marker in the Maps component. When this property is set, the marker will render a certain distance from the provided longitude value.
Declaration
double OffsetX { get; set; }
Property Value
Type |
---|
System.Double |
OffsetY
Sets and gets the Y position value of the marker in the Maps component. When this property is set, the marker will render a certain distance from the provided longitude value.
Declaration
double OffsetY { get; set; }
Property Value
Type |
---|
System.Double |
Opacity
Gets or sets the opacity for the marker in maps.
Declaration
double Opacity { get; set; }
Property Value
Type |
---|
System.Double |
Query
Gets or sets the query to select particular data from the marker data. This property is applicable only when the data source is created by data manager.
Declaration
Query Query { get; set; }
Property Value
Type |
---|
Query |
Shape
Gets or sets the shape of the marker in maps.
Declaration
MarkerType Shape { get; set; }
Property Value
Type |
---|
MarkerType |
ShapeValuePath
Gets or sets the value path from the marker data source to set the shape of the marker.
Declaration
string ShapeValuePath { get; set; }
Property Value
Type |
---|
System.String |
Visible
Gets or sets a value indicating whether or not the visibility state of the marker based on the marker data source in maps.
Declaration
bool Visible { get; set; }
Property Value
Type |
---|
System.Boolean |
Width
Gets or sets the width of the marker in maps.
Declaration
double Width { get; set; }
Property Value
Type |
---|
System.Double |
WidthValuePath
This property specifies the field name from the objects in the marker data source to adjust the width of each marker individually within the group.
Declaration
string WidthValuePath { get; set; }
Property Value
Type | Description |
---|---|
System.String | Accepts the string value which represents the field name from the objects in the marker data source. |
Remarks
When a numeric or string value is provided in the specified field, that value is used to determine the width of the current marker. If a numeric value is provided, the default value of "0" will be applied. In this case, the marker will not be rendered if the field contains only the default value.To handle this, nullable numeric types should be used and the width will be taken from the
Width
property of MapsMarker
.