FUIEditingGeometryObject
public class FUIEditingGeometryObject<GeometryType, RepresentationType, MapContextType> : FUIManageRepresentation where GeometryType : FUIGeometry
FUIEditingGeometryObject
a generic object that specifies the accepted FUIGeometryType
, Representation Type, and Map Type.
Variables Available in FUIEditingGeometryObject:
geometry
: The geometry associated with the editing objectcachedGeometry
: The cached instance of the geometrycachedIndex
: The cached index for polylines and polygons for their selected index
Methods Available in FUIEditingGeometryObject:
addRepresentation(to context: MapContextType)
: A method to add the geometry to the map.removeRepresentation(from context: MapContextType)
: A method to remove the geometry from the map.
-
The geometry associated with the object
Declaration
Swift
public var geometry: GeometryType? { get }
-
The cached geometry
Declaration
Swift
public var cachedGeometry: GeometryType?
-
A cached variable for polylines and polygons for their selected index.
Declaration
Swift
public var cachedIndex: Int
-
A method to update geometry on the map.
Declaration
Swift
public 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
-
A method to add the geometry to the map.
Declaration
Swift
public func addRepresentation(to context: MapContextType)
-
A method to remove the geometry from the map.
Declaration
Swift
public func removeRepresentation(from context: MapContextType)