MapKit Mobile SDK

MMKLayer

class MMKLayer : NSObject

Interface for working with the layer.

Summary

Instance methods

func remove()
Removes the layer from the map

func dataSourceLayer() -> MMKDataSourceLayer
Undocumented

Properties

var isValid: Bool { get }
Tells if this object is valid or no

Instance methods

remove()

func remove()

Removes the layer from the map. The object becomes invalid after that.


dataSourceLayer()

func dataSourceLayer() -> MMKDataSourceLayer

Undocumented


Properties

isValid

var isValid: Bool { get }

Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.