Xamarin.iOS

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

    Show / Hide Table of Contents

    Class MapLayer

    Inheritance
    System.Object
    MapLayer
    ImageryLayer
    SFShapeFileLayer
    Namespace: Syncfusion.SfMaps.iOS
    Assembly: Syncfusion.SfMaps.iOS.dll
    Syntax
    public abstract class MapLayer : NSObject

    Constructors

    MapLayer()

    Declaration
    protected MapLayer()

    Properties

    Markers

    Gets or sets the markers.

    Declaration
    public ObservableCollection<SFMapMarker> Markers { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<SFMapMarker>

    The markers.

    MarkerSettings

    Gets or sets the marker settings.

    Declaration
    public SFMapMarkerSetting MarkerSettings { get; set; }
    Property Value
    Type Description
    SFMapMarkerSetting

    The marker settings.

    ResetOldSelectedView

    Gets or sets a value indicating whether need to remove previous selected view

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

    Sublayers

    Gets or sets the sub layer collection for shape file layer.

    Declaration
    public ObservableCollection<SFShapeFileLayer> Sublayers { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<SFShapeFileLayer>

    Methods

    GeopointToViewPoint(Double, Double)

    Convert latitude and longitude values to view's x and y points.

    Declaration
    public CGPoint GeopointToViewPoint(double latitude, double longitude)
    Parameters
    Type Name Description
    System.Double latitude

    To get latitude

    System.Double longitude

    To get longitude

    Returns
    Type Description
    CoreGraphics.CGPoint

    returns the point x and y from latitude and longitude

    GetLatLonFromPoint(CGPoint)

    Convert point X and point Y to longitude and latitude values

    Declaration
    public CGPoint GetLatLonFromPoint(CGPoint point)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point

    to get point

    Returns
    Type Description
    CoreGraphics.CGPoint

    returns the longitude and latitude values.

    RefreshMarkerSetting()

    Declaration
    protected virtual void RefreshMarkerSetting()
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved