FUIManageRepresentation
public protocol FUIManageRepresentation
Provides properties of an object that adds and removes geometries from a map.
-
Generic
Typeof mapDeclaration
Swift
associatedtype MapContextType -
Generic
Typeof FUIGeometryDeclaration
Swift
associatedtype GeometryType : FUIGeometry -
Geometry added to the map
Declaration
Swift
var geometry: GeometryType? { get } -
Cached instance of the geometry
Declaration
Swift
var cachedGeometry: GeometryType? { get set } -
Cached index of the geometry
Declaration
Swift
var cachedIndex: Int { get set } -
Method to update geometry on map
Declaration
Swift
func updateRepresentation(_ editingCoordinate: CLLocationCoordinate2D?, add newCoordinates: [CLLocationCoordinate2D], with existingCoordinates: [CLLocationCoordinate2D], from existingEditingMode: FUIGeospatialType, to newEditingMode: FUIGeospatialType, in colorScheme: FUIBackgroundColorScheme, on context: MapContextType, shouldUpdateImmediately: Bool)Parameters
shouldUpdateImmediatelyDetermine if the background update will be in effect now
-
Method to add geometry to map
Declaration
Swift
func addRepresentation(to context: MapContextType) -
Method to remove geometry from map
Declaration
Swift
func removeRepresentation(from context: MapContextType) -
Method to re-draw the geometry display in the map
Declaration
Swift
func redrawRepresentation(in context: MapContextType, with existingCoordinates: [CLLocationCoordinate2D], scheme: FUIBackgroundColorScheme, traits: UIUserInterfaceStyle)