Ejemplo n.º 1
0
        public VisualPushpin(int width, int height, string value, LatLonAlt position, object tag, string id)
        {
            style = PushpinInfo.Default;

            double num = 0;

            try
            {
                num         = Double.Parse(value);
                style.Label = num.ToString("0.##");
            }
            catch
            {
                style.Label = value;
            }
            style.HitDetect   = HitDetectMode.None;
            style.ImageWidth  = width;
            style.ImageHeight = height;
            style.BackColor   = Color.FromArgb(0, Color.Blue);

            pushpin = new PushpinGeometry(
                Guid.NewGuid().ToString(),
                id,
                position,
                style);
        }
Ejemplo n.º 2
0
        public VisualPushpin(int width, int height, string value, LatLonAlt position, object tag, string id)
        {
            style = PushpinInfo.Default;

            double num = 0;
            try
            {
                num = Double.Parse(value);
                style.Label = num.ToString("0.##");
            }
            catch
            {
                style.Label = value;
            }
            style.HitDetect = HitDetectMode.None;
            style.ImageWidth = width;
            style.ImageHeight = height;
            style.BackColor = Color.FromArgb(0, Color.Blue);

            pushpin = new PushpinGeometry(
                Guid.NewGuid().ToString(),
                id,
                position,
                style);

        }