private void SetupMarkerButton(MarkerButton markerButton, Context context) { if (markerButton == null) { return; } Action onClick = () => OpenSearch(context); Action onClear = () => ClearMarker(context); markerButton.AddListener(onClick, onClear); markerButton.Set(null); }
private void SetMarker(Context context, LocationMarker marker) { if (context == Context.StartLocation) { startLocationButton.Set(marker); startLocationMarker = marker; } else { destinationButton.Set(marker); destinationMarker = marker; } Navigate(); }