Ejemplo n.º 1
0
        protected internal override void ConfigureMapItem(SCMap map, DevExpress.XtraMap.MapItem item)
        {
            base.ConfigureMapItem(map, item);

            var mapItem = item as MapDot ?? throw new Exception("Map item must be MapDot.");

            if (Size.HasValue)
            {
                mapItem.Size = Size.Value;
            }
            if (ShapeKind.HasValue)
            {
                mapItem.ShapeKind = (DevExpress.XtraMap.MapDotShapeKind)ShapeKind.Value;
            }
        }
Ejemplo n.º 2
0
        protected internal override void ConfigureMapItem(SCMap map, DevExpress.XtraMap.MapItem item)
        {
            base.ConfigureMapItem(map, item);

            var mapItem = item as MapBubble ?? throw new Exception("Map item must be MapBubble.");

            mapItem.Argument = Argument;
            if (Value.HasValue)
            {
                mapItem.Value = Value.Value;
            }
            if (Group.HasValue)
            {
                mapItem.Group = Group.Value;
            }
            if (MarkerType.HasValue)
            {
                mapItem.MarkerType = (DevExpress.XtraMap.MarkerType)MarkerType.Value;
            }
        }