RequestCompletedEventArgs CreateEventArgs()
        {
            MapItem item = new MapCallout()
            {
                Location = address.Location, Text = address.Address.FormattedAddress
            };

            return(new RequestCompletedEventArgs(new MapItem[] { item }, null, false, null));
        }
Exemplo n.º 2
0
        public SCMap AddCallout(double[] location, string text, CalloutOptions options = null)
        {
            options ??= new CalloutOptions();
            var mapItem = new MapCallout();

            options.ConfigurePointerItem(this, mapItem, location, text);

            return(this);
        }
Exemplo n.º 3
0
        DevExpress.XtraMap.MapItem CreateHomeOfficeItem(string city, GeoPoint location)
        {
            var home = new MapCallout();

            home.Location      = location;
            home.Text          = city;
            home.AllowHtmlText = true;
            home.TextAlignment = TextAlignment.TopCenter;
            home.Font          = new System.Drawing.Font("Segoe UI", 13);
            home.TextColor     = Color.FromArgb(145, 145, 145);
            return(home);
        }
Exemplo n.º 4
0
 RequestCompletedEventArgs CreateEventArgs()
 {
     MapItem[] items = new MapItem[addresses.Count];
     for (int i = 0; i < items.Length; i++)
     {
         items[i] = new MapCallout()
         {
             Location = addresses[i].Location, Text = addresses[i].Address.FormattedAddress
         }
     }
     ;
     return(new RequestCompletedEventArgs(items, null, false, null));
 }
Exemplo n.º 5
0
        RequestCompletedEventArgs CreateEventArgs()
        {
            MapItem[] items = new MapItem[3];
            items[1] = new MapCallout()
            {
                Location = route[0], Text = route[0].ToString()
            };
            items[2] = new MapCallout()
            {
                Location = route[route.Count - 1], Text = route[route.Count - 1].ToString()
            };
            MapPolyline polyline = new MapPolyline()
            {
                IsGeodesic = true, Stroke = System.Drawing.Color.Red, StrokeWidth = 4
            };

            for (int i = 0; i < route.Count; i++)
            {
                polyline.Points.Add(route[i]);
            }
            items[0] = polyline;
            return(new RequestCompletedEventArgs(items, null, false, null));
        }