menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MapArcLayer - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MapArcLayer

    A sublayer which renders group of MapArc on MapShapeLayer and MapTileLayer

    Inheritance
    System.Object
    MapSublayer
    MapArcLayer
    Namespace: Syncfusion.Maui.Maps
    Assembly: Syncfusion.Maui.Maps.dll
    Syntax
    public class MapArcLayer : MapSublayer
    Examples
    • XAML
    • C#
      <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>
    SfMaps maps = new SfMaps();
    MapShapeLayer layer = new MapShapeLayer();
    layer.ShapesSource = MapSource.FromUri(new Uri("https://cdn.syncfusion.com/maps/map-data/world-map.json"));
    MapArcLayer arcLayer = new MapArcLayer();
    MapArc arc = new MapArc();
    arc.From = new MapLatLng(26.841944, 114.561183);
    arc.To = new MapLatLng(37.316207, 89.494558);
    MapArc mapArc = new MapArc();
    mapArc.From = new MapLatLng(5.562764, 101.470795);
    mapArc.To = new MapLatLng(-19.138292, 44.822302);
    arcLayer.Arcs.Add(arc);
    arcLayer.Arcs.Add(mapArc);
    layer.Sublayers.Add(arcLayer);
    maps.Layer = layer;
    this.Content = maps;

    Constructors

    MapArcLayer()

    Initializes a new instance of the MapArcLayer class.

    Declaration
    public MapArcLayer()
    Examples
    • XAML
    • C#
    <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>
    SfMaps maps = new SfMaps();
    MapShapeLayer layer = new MapShapeLayer();
    layer.ShapesSource = MapSource.FromUri(new Uri("https://cdn.syncfusion.com/maps/map-data/world-map.json"));
    MapArcLayer arcLayer = new MapArcLayer();
    MapArc arc = new MapArc();
    arc.From = new MapLatLng(26.841944, 114.561183);
    arc.To = new MapLatLng(37.316207, 89.494558);
    MapArc mapArc = new MapArc();
    mapArc.From = new MapLatLng(5.562764, 101.470795);
    mapArc.To = new MapLatLng(-19.138292, 44.822302);
    arcLayer.Arcs.Add(arc);
    arcLayer.Arcs.Add(mapArc);
    layer.Sublayers.Add(arcLayer);
    maps.Layer = layer;
    this.Content = maps;

    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
    • XAML
    • C#
      <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>
    SfMaps maps = new SfMaps();
    MapShapeLayer layer = new MapShapeLayer();
    layer.ShapesSource = MapSource.FromUri(new Uri("https://cdn.syncfusion.com/maps/map-data/world-map.json"));
    MapArcLayer arcLayer = new MapArcLayer();
    MapArc arc = new MapArc();
    arc.From = new MapLatLng(26.841944, 114.561183);
    arc.To = new MapLatLng(37.316207, 89.494558);
    MapArc mapArc = new MapArc();
    mapArc.From = new MapLatLng(5.562764,101.470795);
    mapArc.To = new MapLatLng(-19.138292, 44.822302);
    arcLayer.Arcs.Add(arc);
    arcLayer.Arcs.Add(mapArc);
    layer.Sublayers.Add(arcLayer);
    maps.Layer = layer;
    this.Content = maps;

    Methods

    OnBindingContextChanged()

    Invoked whenever the binding context of the View changes.

    Declaration
    protected override void OnBindingContextChanged()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved