MapObjectDescriptor

public class MapObjectDescriptor
extension MapObjectDescriptor: NativeBase
extension MapObjectDescriptor: Hashable

Interface represents descriptor of a pickable map object.

  • Returns the name of the layer where this picked item came from.

    Declaration

    Swift

    public func getLayerName() -> String

    Return Value

    The name of the layer map object belongs to.

  • Returns data attributes of a map object.

    Declaration

    Swift

    public func getDataAttributes() -> DataAttributes

    Return Value

    The data attributes of a map object.

  • Return a geo point of the picked object, closest to the picking location. For polygons and polylines nil is returned.

    Declaration

    Swift

    public func getClosestPoint() -> GeoCoordinates?

    Return Value

    The coordinates of a map object.