can't get the current location on map Renderer and on the portable

Hi, Im trying to add the current location on my portable class but it shows my unidentify position .
public ReportProblem()
{

        InitializeComponent();
        Locator();
        geoCoder = new Geocoder();


        //MainListView.ItemsSource = _names;
        var pin = new CustomPin

        {
            Pin = new Pin
            {
                Type = PinType.Place,
                Position = new Position(37, -122), ( Im not able to implement this on the hardcore position .)position.Latitude, position.Longitude)
                Label = "",
                Address = ""
            },
            Id = "city",
            Url = "http://city.com/about/"
        };

        myMap.CustomPins = new List<CustomPin> { pin };
        myMap.Pins.Add(pin.Pin);
        myMap.MoveToRegion(MapSpan.FromCenterAndRadius(
        new Position(37, -122), Distance.FromMiles(1.0)));

    }//ends report problem 

    internal async void Locator()
    {
        var locator = CrossGeolocator.Current;
        locator.DesiredAccuracy = 50;
        var position = await locator.GetPositionAsync(TimeSpan.FromMilliseconds(10000));

        var pin = new CustomPin();

        //var pin = GetPin(position);
        pin.Pin = new Pin
        {
            Type = PinType.Place,
            Position = new Position(position.Latitude, position.Longitude),
            Label = "",
            Address = ""
        };

        myMap.Pins.Add(pin.Pin);
        myMap.MoveToRegion(MapSpan.FromCenterAndRadius(new Position(position.Latitude, position.Longitude),
                                                            Distance.FromMiles(1)));




    }//
Sign In or Register to comment.