void mapsControl1_MapItemDrawing(object sender, MapItemDrawingEventArgs e) { e.Handled = true; BubbleVisualization.Country country = e.Data as BubbleVisualization.Country; PointF point = new PointF((float)e.X, (float)e.Y); Font font = new System.Drawing.Font("Segoe UI Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); if (country != null) { e.Graphics.DrawString(country.PopulationFormat, font, new SolidBrush(Color.Black), point.X - 40, point.Y - 10); } }
void mapsControl1_MapItemDrawing(object sender, MapItemDrawingEventArgs e) { e.Handled = true; MultiLayer.Country country = e.Data as MultiLayer.Country; PointF point = new PointF((float)e.X, (float)e.Y); Font font = new System.Drawing.Font("Segoe UI Light", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); if (country != null) { e.Graphics.DrawString(country.Weather.ToString() + "°C", font, new SolidBrush(Color.Black), point.X - 17, point.Y - 10); } }