Exemple #1
0
        public void AddPin(double latitude, double longitude)
        {
            segment.Locations.Add(new SegmentLocationDto {
                Order     = count++,
                Latitude  = latitude,
                Longitude = longitude
            });

            ILatLng thisLatLng = new LatLng(latitude, longitude);

            if (lastLatLng != null)
            {
                MapViewModel.AddPolyLine(new[] { lastLatLng, thisLatLng }, Color.Red);
            }
            else
            {
                DisplayText = "Now tap to set the next point";
            }

            lastLatLng = thisLatLng;
        }