-
Undocumented
Declaration
Swift
public private(set) var mapboxMap: MapboxMap! { get set }
-
The map’s current camera
Declaration
Swift
public var cameraState: CameraState { get }
-
The map’s current anchor, calculated after applying padding (if it exists)
Declaration
Swift
public var anchor: CGPoint { get }
-
Undocumented
Declaration
Swift
public init(frame: CGRect, mapInitOptions: MapInitOptions)
-
Undocumented
Declaration
Swift
open override func awakeFromNib()
-
Undocumented
Declaration
Swift
public func on(_ eventType: MapEvents.EventKind, handler: @escaping (MapboxCoreMaps.Event) -> Void)
-
Undocumented
Declaration
Swift
public override func layoutSubviews()
-
Undocumented
Declaration
Swift
open override func willMove(toWindow newWindow: UIWindow?)
-
Undocumented
Declaration
Swift
open override func didMoveToWindow()
-
Undocumented
Declaration
Swift
open override func didMoveToSuperview()
-
Undocumented
Declaration
Swift
required public init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
public var observable: Observable? { get }
-
Undocumented
See moreDeclaration
Swift
public enum QueryRenderedFeaturesError : Error
-
Asynchronous query for a list of rendered map features that intersect with the given rect.
Declaration
Swift
public func visibleFeatures(in rect: CGRect, styleLayers: Set<String>? = nil, filter: Expression? = nil, completion: @escaping (Result<[QueriedFeature], QueryRenderedFeaturesError>) -> Void)
Parameters
rect
The rect at which we should query for features
styleLayers
An optional set of style layer identifiers to query for. If not specified, the query will search for features in all layers belonging to the map’s style.
filter
An optional expression to use in order to filter features from the result.
completion
A closure that receives and operates on
Result<[Feature], QueryRenderedFeaturesError>
-
Asynchronous query for a list of rendered map features that intersect with the given point.
Declaration
Swift
public func visibleFeatures(at point: CGPoint, styleLayers: Set<String>? = nil, filter: Expression? = nil, completion: @escaping (Result<[QueriedFeature], QueryRenderedFeaturesError>) -> Void)
Parameters
point
The point at which we should query for features
styleLayers
An optional set of style layer identifiers to query for. If not specified, the query will search for features in all layers belonging to the map’s style.
filter
An optional expression to use in order to filter features from the result.
completion
A closure that receives and operates on
Result<[Feature], QueryRenderedFeaturesError>