SitePlannerSession

class SitePlannerSession(val nodeNum: Int?, val mapCenter: () -> Position, val moveTo: (Position) -> Unit, val onDismiss: () -> Unit)(source)

A Site Planner session the map is asking its host to run.

Host-supplied for the same reason as the waypoint editor: the planner itself lives in the app, not in this module, and it has no desktop host. A host that supplies nothing gets no Site Planner button at all.

Constructors

Link copied to clipboard
constructor(nodeNum: Int?, mapCenter: () -> Position, moveTo: (Position) -> Unit, onDismiss: () -> Unit)

Properties

Link copied to clipboard
val mapCenter: () -> Position

The current map centre, for the planner's "use map centre" shortcut.

Link copied to clipboard
val moveTo: (Position) -> Unit

Moves the map, so freshly imported coverage can be brought on screen.

Link copied to clipboard
val nodeNum: Int?

The node a deep link asked to plan for, or null for a session started from the toolbar.

Link copied to clipboard
val onDismiss: () -> Unit