RouteEditorSource | iOS SDK | 2GIS Documentation

RouteEditorSource

Interface of the class that controls the display of routes on the map.

Extends: Source
public convenience init(
    context: Context,
    routeEditor: RouteEditor,
    activeDisplayFlags: RouteMapObjectDisplayFlagOptionSet? = nil,
    inactiveDisplayFlags: RouteMapObjectDisplayFlagOptionSet? = nil,
    activeCalloutLabelFlags: RouteMapObjectCalloutLabelFlagOptionSet? = nil,
    inactiveCalloutLabelFlags: RouteMapObjectCalloutLabelFlagOptionSet? = nil,
    calloutLabelDisplayMode: RouteMapObjectCalloutLabelDisplayMode = RouteMapObjectCalloutLabelDisplayMode.absoluteValues,
    activePermanentDisplayFlags: RouteMapObjectPermanentDisplayFlagOptionSet? = nil,
    inactivePermanentDisplayFlags: RouteMapObjectPermanentDisplayFlagOptionSet? = nil
)

IRouteEditorSource creation function.

Parameters
Methods
Properties

Objects of the route on the map.

Settings for displaying maneuvers on the route.

Active route display flags. See IRouteMapObject::display_flags.t::display_flags.

Inactive route display flags. See IRouteMapObject::display_flags.t::display_flags.

Flags to enable displaying content in the active route's callouts. See IRouteMapObject::callout_label_flags.t::callout_label_flags.

Flags to include displaying content in inactive route's callouts. See IRouteMapObject::callout_label_flags.t::callout_label_flags.

Mode for displaying values in route callouts. See IRouteMapObject::callout_label_display_mode.t::callout_label_display_mode.

Flags to prevent components of an active route from being hidden from the map. See IRouteMapObject::permanent_display_flags.t::permanent_display_flags.

Flags that exclude inactive route components from hiding from the map. See IRouteMapObject::permanent_display_flags.t::permanent_display_flags.