コード例 #1
0
        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);
        }
コード例 #2
0
        private void SetMarker(Context context, LocationMarker marker)
        {
            if (context == Context.StartLocation)
            {
                startLocationButton.Set(marker);
                startLocationMarker = marker;
            }
            else
            {
                destinationButton.Set(marker);
                destinationMarker = marker;
            }

            Navigate();
        }