Class MapArcLayer
A sublayer which renders group of MapArc on MapShapeLayer and MapTileLayer
Namespace: Syncfusion.Maui.Maps
Assembly: Syncfusion.Maui.Maps.dll
Syntax
public class MapArcLayer : MapSublayer
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapShapeLayer ShapesSource = "https://cdn.syncfusion.com/maps/map-data/world-map.json">
<map:MapShapeLayer.Sublayers>
<map:MapArcLayer>
<map:MapArcLayer.Arcs>
<map:MapArc>
<map:MapArc.From>
<map:MapLatLng Latitude="26.841944"
Longitude="114.561183" />
</map:MapArc.From>
<map:MapArc.To>
<map:MapLatLng Latitude="37.316207"
Longitude="89.494558" />
</map:MapArc.To>
</map:MapArc>
<map:MapArc>
<map:MapArc.From>
<map:MapLatLng Latitude="5.562764"
Longitude="101.470795" />
</map:MapArc.From>
<map:MapArc.To>
<map:MapLatLng Latitude="-19.138292"
Longitude="44.822302" />
</map:MapArc.To>
</map:MapArc>
</map:MapArcLayer.Arcs>
</map:MapArcLayer>
</map:MapShapeLayer.Sublayers>
</map:MapShapeLayer>
</map:SfMaps.Layer>
</map:SfMaps>
Constructors
MapArcLayer()
Initializes a new instance of the MapArcLayer class.
Declaration
public MapArcLayer()
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapShapeLayer ShapesSource="https://cdn.syncfusion.com/maps/map-data/world-map.json">
<map:MapShapeLayer.Sublayers>
<map:MapArcLayer>
<map:MapArcLayer.Arcs>
<map:MapArc>
<map:MapArc.From>
<map:MapLatLng Latitude="26.841944"
Longitude="114.561183" />
</map:MapArc.From>
<map:MapArc.To>
<map:MapLatLng Latitude="37.316207"
Longitude="89.494558" />
</map:MapArc.To>
</map:MapArc>
<map:MapArc>
<map:MapArc.From>
<map:MapLatLng Latitude="5.562764"
Longitude="101.470795" />
</map:MapArc.From>
<map:MapArc.To>
<map:MapLatLng Latitude="-19.138292"
Longitude="44.822302" />
</map:MapArc.To>
</map:MapArc>
</map:MapArcLayer.Arcs>
<map:MapArcLayer>
</map:MapShapeLayer.Sublayers>
</map:MapShapeLayer>
</map:SfMaps.Layer>
</map:SfMaps>
Fields
ArcsProperty
Identifies the Arcs bindable property.
Declaration
public static readonly BindableProperty ArcsProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
Arcs
Gets or sets the collection of arc. Every single MapArc connects two location coordinates through an arc. The HeightFactor and ControlPointFactor can be modified to change the appearance of the arcs.
Declaration
public ObservableCollection<MapArc> Arcs { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<MapArc> | The arc collection. By default, the collection is empty. |
Examples
<map:SfMaps>
<map:SfMaps.Layer>
<map:MapShapeLayer ShapesSource = "https://cdn.syncfusion.com/maps/map-data/world-map.json">
<map:MapShapeLayer.Sublayers>
<map:MapArcLayer>
<map:MapArcLayer.Arcs>
<map:MapArc>
<map:MapArc.From>
<map:MapLatLng Latitude="26.841944"
Longitude="114.561183" />
</map:MapArc.From>
<map:MapArc.To>
<map:MapLatLng Latitude="37.316207"
Longitude="89.494558" />
</map:MapArc.To>
</map:MapArc>
<map:MapArc>
<map:MapArc.From>
<map:MapLatLng Latitude="5.562764"
Longitude="101.470795" />
</map:MapArc.From>
<map:MapArc.To>
<map:MapLatLng Latitude="-19.138292"
Longitude="44.822302" />
</map:MapArc.To>
</map:MapArc>
</map:MapArcLayer.Arcs>
</map:MapArcLayer>
</map:MapShapeLayer.Sublayers>
</map:MapShapeLayer>
</map:SfMaps.Layer>
</map:SfMaps>
Methods
OnBindingContextChanged()
Invoked whenever the binding context of the View changes.
Declaration
protected override void OnBindingContextChanged()