Xamarin.Forms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ShapeFileLayer

    Show / Hide Table of Contents

    Class ShapeFileLayer

    Represents ShapeFileLayer. To render this, create an instance of the ShapeFileLayer class and set required properties.

    Inheritance
    System.Object
    MapLayer
    ShapeFileLayer
    Inherited Members
    MapLayer.MarkersProperty
    MapLayer.MarkerItemsSourceProperty
    MapLayer.MarkerSettingsProperty
    MapLayer.MarkerTemplateProperty
    MapLayer.SublayersProperty
    MapLayer.ResetOldSelectedViewProperty
    MapLayer.OnMapMarkerSelected(MapMarker)
    MapLayer.GetLatLonFromPoint(Point)
    MapLayer.GeopointToViewPoint(Double, Double)
    MapLayer.OnMarkerSelected(MapMarker)
    MapLayer.Markers
    MapLayer.MarkerItemsSource
    MapLayer.MarkerSettings
    MapLayer.MarkerTemplate
    MapLayer.Sublayers
    MapLayer.ResetOldSelectedView
    MapLayer.MarkerSelected
    Namespace: Syncfusion.SfMaps.XForms
    Assembly: Syncfusion.SfMaps.XForms.dll
    Syntax
    public class ShapeFileLayer : MapLayer, IThemeElement

    Constructors

    ShapeFileLayer()

    Initializes a new instance of the ShapeFileLayer class to render the shape file layer of the maps.

    Declaration
    public ShapeFileLayer()

    Fields

    BubbleMarkerSettingsProperty

    Gets or sets the value for bubble marker settings property.

    Declaration
    public static readonly BindableProperty BubbleMarkerSettingsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    DataLabelSettingsProperty

    Gets or sets the value for data label settings property.

    Declaration
    public static readonly BindableProperty DataLabelSettingsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    EnableSelectionProperty

    Gets or sets a value to the enable selection property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty EnableSelectionProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    GeometryTypeProperty

    Gets or sets the value for geometry type property.

    Declaration
    public static readonly BindableProperty GeometryTypeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ItemsSourceProperty

    Gets or sets a value to the item source property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty ItemsSourceProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    LegendSettingsProperty

    Gets or sets the value for legend settings property.

    Declaration
    public static readonly BindableProperty LegendSettingsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MapPointHorizontalAlignmentProperty

    Bindable property ofHorizontalAlignment property.

    Declaration
    public static readonly BindableProperty MapPointHorizontalAlignmentProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MapPointIconProperty

    Gets or sets a value to the map pointer icon property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty MapPointIconProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MapPointIconSizeProperty

    Bindable property ofMapPointIconSize property.

    Declaration
    public static readonly BindableProperty MapPointIconSizeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MapPointTemplateProperty

    Gets or sets a value to the map pointer template property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty MapPointTemplateProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    MapPointVerticalAlignmentProperty

    Bindable property ofVerticalAlignment property.

    Declaration
    public static readonly BindableProperty MapPointVerticalAlignmentProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    PointsProperty

    The BindableProperty for Points property.

    Declaration
    public static readonly BindableProperty PointsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    SelectionModeProperty

    Gets or sets the value for selection mode property.

    Declaration
    public static readonly BindableProperty SelectionModeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShapeIDPathProperty

    Gets or sets a value to the shape id path property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShapeIDPathProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShapeIDTableFieldProperty

    Gets or sets a value to the shape id table field property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShapeIDTableFieldProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShapeSettingsProperty

    Gets or sets a value to the shape settings property of the shape file layer in maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty ShapeSettingsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShapeTypeProperty

    The BindableProperty for ShapeType property.

    Declaration
    public static readonly BindableProperty ShapeTypeProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    ShowMapItemsProperty

    Gets or sets the value for show map items property.

    Declaration
    public static readonly BindableProperty ShowMapItemsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    TooltipSettingsProperty

    Gets or sets the tooltipsettings value of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty TooltipSettingsProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    UriProperty

    Gets or sets a value to the uri property of the shape file layer in the maps. This is a bindable property.

    Declaration
    public static readonly BindableProperty UriProperty
    Field Value
    Type Description
    Xamarin.Forms.BindableProperty

    Properties

    BubbleMarkerSettings

    Gets or sets the bubbleMarkerSetting value to maps.

    Declaration
    public BubbleMarkerSetting BubbleMarkerSettings { get; set; }
    Property Value
    Type Description
    BubbleMarkerSetting

    DataLabelSettings

    Gets or sets the DataLabelSettings Value to the maps.

    Declaration
    public DataLabelSetting DataLabelSettings { get; set; }
    Property Value
    Type Description
    DataLabelSetting

    EnableSelection

    Gets or sets a value indicating whether to enable the selection or not. The default value is false.

    Declaration
    public bool EnableSelection { get; set; }
    Property Value
    Type Description
    System.Boolean

    GeometryType

    Gets or sets the geometry type for maps.

    Declaration
    public GeometryType GeometryType { get; set; }
    Property Value
    Type Description
    GeometryType

    ItemsSource

    Gets or sets the item source value to the shape file layer of the maps. It represents a value to be displayed on the maps.

    Declaration
    public IEnumerable ItemsSource { get; set; }
    Property Value
    Type Description
    System.Collections.IEnumerable

    LegendSettings

    Gets or sets the LegendSettings Value to the maps.

    Declaration
    public MapLegendSetting LegendSettings { get; set; }
    Property Value
    Type Description
    MapLegendSetting

    MapPointHorizontalAlignment

    Gets or sets the value for horizontal algnment of map point icon.

    Declaration
    public MarkerAlignment MapPointHorizontalAlignment { get; set; }
    Property Value
    Type Description
    MarkerAlignment

    MapPointIcon

    Gets or sets the marker icon value of the shape file layer. The default value of the map point icon is circle.

    Declaration
    public MapPointIcon MapPointIcon { get; set; }
    Property Value
    Type Description
    MapPointIcon

    MapPointIconSize

    Gets or sets the value for map point icon size.

    Declaration
    public double MapPointIconSize { get; set; }
    Property Value
    Type Description
    System.Double

    MapPointTemplate

    Gets or sets a map point template of the shape file layer in the maps. It represents a view that can be displayed on the shape file layer.

    Declaration
    public DataTemplate MapPointTemplate { get; set; }
    Property Value
    Type Description
    Xamarin.Forms.DataTemplate

    MapPointVerticalAlignment

    Gets or sets the value for vertical alignment of map point icon.

    Declaration
    public MarkerAlignment MapPointVerticalAlignment { get; set; }
    Property Value
    Type Description
    MarkerAlignment

    Points

    Gets or sets the collection of points. It is used to draw multi line over the map by using the points.

    Declaration
    public ObservableCollection<Point> Points { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<Xamarin.Forms.Point>

    SelectedItems

    Gets or sets to create instance of shape file layer collection,.

    Declaration
    public ObservableCollection<object> SelectedItems { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<System.Object>

    SelectionMode

    Gets or sets the selection mode for the Shapefile layer.

    Declaration
    public SelectionMode SelectionMode { get; set; }
    Property Value
    Type Description
    SelectionMode

    ShapeIDPath

    Gets or sets the ID of a shape from the ItemsSource of the shape file layer of the maps. It represents the data in item source.

    Declaration
    public string ShapeIDPath { get; set; }
    Property Value
    Type Description
    System.String

    ShapeIDTableField

    Gets or sets the string type property that refers to the column name in the dbf file to identify the shape in the maps.

    Declaration
    public string ShapeIDTableField { get; set; }
    Property Value
    Type Description
    System.String

    ShapeSettings

    Gets or sets the shapeSettings value to the shape file layer of the maps. It customizes the color and stroke of the shape.

    Declaration
    public ShapeSetting ShapeSettings { get; set; }
    Property Value
    Type Description
    ShapeSetting

    ShapeType

    Gets or sets a shape type like either a polygon or a polyline or a point icon on the map.

    Declaration
    public ShapeType ShapeType { get; set; }
    Property Value
    Type Description
    ShapeType

    ShowMapItems

    Gets or sets a value indicating whether to show map items or not.

    Declaration
    public bool ShowMapItems { get; set; }
    Property Value
    Type Description
    System.Boolean

    TooltipSettings

    Gets or sets the tooltipsettings value of the shape file layer. It shows the value of the shape in tooltips.

    Declaration
    public TooltipSetting TooltipSettings { get; set; }
    Property Value
    Type Description
    TooltipSetting

    Uri

    Gets or sets the uri property for the shapefile. It represents a layer used to add in the shapes of the shape file layer.

    Declaration
    public string Uri { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    add_ShapeSelected(ShapeFileLayer.ShapeSelectionEventHandler)

    Declaration
    public void add_ShapeSelected(ShapeFileLayer.ShapeSelectionEventHandler value)
    Parameters
    Type Name Description
    ShapeFileLayer.ShapeSelectionEventHandler value

    OnBindingContextChanged()

    Override method.

    Declaration
    protected override void OnBindingContextChanged()

    OnMapShapeSelected(Object)

    Map shape is tapped.

    Declaration
    public void OnMapShapeSelected(object data)
    Parameters
    Type Name Description
    System.Object data

    data.

    ReadAsJsonStream(Stream)

    To render the stream with json data.

    Declaration
    public void ReadAsJsonStream(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    stream contains json data.

    ReadAsStream(Stream)

    To read the stream contains shape file data.

    Declaration
    public void ReadAsStream(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    stream contains shape file data.

    ReadAsStream(Stream, Stream)

    To read the stream contains shape file data and db file data.

    Declaration
    public void ReadAsStream(Stream shapeStream, Stream dbStream)
    Parameters
    Type Name Description
    System.IO.Stream shapeStream

    stream contains shape file data.

    System.IO.Stream dbStream

    db file data.

    remove_ShapeSelected(ShapeFileLayer.ShapeSelectionEventHandler)

    Declaration
    public void remove_ShapeSelected(ShapeFileLayer.ShapeSelectionEventHandler value)
    Parameters
    Type Name Description
    ShapeFileLayer.ShapeSelectionEventHandler value

    Events

    ShapeSelected

    Occurs when on Shape is tapped.

    Declaration
    public event ShapeFileLayer.ShapeSelectionEventHandler ShapeSelected
    Event Type
    Type Description
    ShapeFileLayer.ShapeSelectionEventHandler

    ShapeSelectionChanged

    Occur when shape selection changed.

    Declaration
    public event EventHandler<ShapeSelectedEventArgs> ShapeSelectionChanged
    Event Type
    Type Description
    System.EventHandler<ShapeSelectedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved