Пример #1
0
        /*private void OnInfoWindowClick(object sender, GoogleMap.InfoWindowClickEventArgs e)
         * {
         *  Xamarin.Forms.MessagingCenter.Send<MapOpenPointMessage>(new MapOpenPointMessage() { Latitude = e.Marker.Position.Latitude, Longitude = e.Marker.Position.Longitude }, string.Empty);
         * }*/

        private void drawConnectedLines()
        {
            List <PatternItem> pattern_lines = new List <PatternItem>();

            pattern_lines.Add(new Gap(10));
            pattern_lines.Add(new Dash(15));
            PolylineOptions lineOptions = new PolylineOptions();

            foreach (var point in trackMapContext.RoutePoints)
            {
                lineOptions.Add(new LatLng(point.Latitude, point.Longitude));
            }
            lineOptions.InvokePattern(pattern_lines);
            lineOptions.InvokeWidth(10);
            NativeMap.AddPolyline(lineOptions);
        }