FUIEditingPanel
open class FUIEditingPanel<GeometryType> where GeometryType : FUIGeometry
An object that manages editing data in the detailPanel
. The developer specifies the items a user can create and which geometries he can use. A controller is presented when saving a geometry to add additional changes to the workorder. When the geometry is saved, it is up to the developer to update their model with editing geometry.
Variables Available in FUIEditingPanel:
createGeometryItems
: An array ofFUIMapLegendItem
that displays the types of workorders that can be created. The items are presented in a table and when selected presents the editing panel. The panel takes the title of the item and sets it as the headline. The icon and title text has a white background and a tint color ofUIColor.preferredFioriColor(forStyle: .tintColorDark)
basemapTypes
: An array ofMKMapType
a user can pick from during editing. MapType is returned to the original state after editing is completed. By default, the user can pick from.standard
,.hybrid
,.mutedStandard
, and.satellite
.isCreatePointEnabled
: ABool
that enables the creation of a point geometry. By default, point geometry creation is enabled. Select the point symbol on the segmented control within the editing panel to begin editing.isCreatePolylineEnabled
: ABool
that enables the creation of a polyline geometry. By default, polyline geometry creation is enabled. Select the polyline symbol on the segmented control within the editing panel to begin editing.isCreatePolygonEnabled
: ABool
that enables the creation of a polygon geometry. By default, polygon geometry creation is enabled. Select the polygon symbol on the segmented control within the editing panel to begin editing.createGeometryResultsController
: A view controller that is presented when an editing geomtry is saved. Used to make additional changes to the workorder before a save is committed. The controller is presented modally over the map. The saved geometry is handled by the developer in thedidSaveGeometry
method where the map model should be updated.didSaveResults
: A closure that provides the committed saved geometry. It is up to the developer to implement this closure and update his own model with the saved geometry.
-
An array of
FUIMapLegendItem
that displays the types of workorders that can be created. The items are presented in a table and when selected presents the editing panel. The panel takes the title of the item and sets it as the headline. The icon and title text has a white background and a tint color ofUIColor.preferredFioriColor(forStyle: .tintColorDark)
Declaration
Swift
public var createGeometryItems: [FUIMapLegendItem]
-
An array of
MKMapType
a user can pick from during editing. MapType is returned to the original state after editing is completed. By default, the user can pick from.standard
,.hybrid
,.mutedStandard
, and.satellite
.Declaration
Swift
public var basemapTypes: [MKMapType] { get set }
-
A
Bool
that enables the creation of a point geometry. By default, point geometry creation is enabled. Select the point symbol on the segmented control within the editing panel to begin editing.Declaration
Swift
public var isCreatePointEnabled: Bool { get set }
-
A
Bool
that enables the creation of a polyline geometry. By default, polyline geometry creation is enabled. Select the polyline symbol on the segmented control within the editing panel to begin editing.Declaration
Swift
public var isCreatePolylineEnabled: Bool { get set }
-
A
Bool
that enables the creation of a polygon geometry. By default, polygon geometry creation is enabled. Select the polygon symbol on the segmented control within the editing panel to begin editing.Declaration
Swift
public var isCreatePolygonEnabled: Bool { get set }
-
A view controller that is presented when an editing geomtry is saved. Used to make additional changes to the workorder before a save is committed. The controller is presented modally over the map. The saved geometry is handled by the developer in the
didSaveGeometry
method where the map model should be updated.Declaration
Swift
public var createGeometryResultsController: UIViewController { get set }
-
A closure that provides the committed saved geometry. It is up to the developer to implement this closure and update his own model with the saved geometry.
Declaration
Swift
public var didSaveResults: ((GeometryType, FUIMapLegendItem) -> Void)?
-
The default editing mode when the
FUIEditingPanel
appears. By default, the editing mode is.point
.Declaration
Swift
public var defaultEditingMode: FUIGeospatialType { get set }