FUIManageRepresentation
public protocol FUIManageRepresentation
Provides properties of an object that adds and removes geometries from a map.
-
Generic
Type
of mapDeclaration
Swift
associatedtype MapContextType
-
Generic
Type
of 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, on context: MapContextType, shouldUpdateImmediately: Bool)
Parameters
shouldUpdateImmediately
Determine 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)