Duplicated
Last Updated: 07 Jul 2021 10:58 by ADMIN
Ketan
Created on: 03 Jul 2021 12:49
Category: Map
Type: Bug Report
0
RadMap: MapCallout.Text is wrapped unexpectedly

Hi,

Please refer. below code...

        void ShowInfoUI()
        {
            var padding = new Padding(0);
            var font = new Font(Font.FontFamily, 8.0f);

            if (T.InfoLayer.IsVisible = cbShowInfo.Checked)
            {
                var overlays = T.PinsLayer.Overlays;

                for (int i = 0; i < overlays.Count; i++)
                {
                    var callout = new MapCallout(overlays[i]) { Font = font, Padding = padding, Text = "1234567", Distance = 5 };

                    T.InfoLayer.Add(callout);
                }
            }
        }

There are 2 layers, InfoLayer (MapCallout) and PinsLayer (MapPins). cbShowInfo controls if MapCallout tobe shown.

If the 'Text' length is less than 8 wrapping happens, and not otherwise. Usually, If Text length is more then wrapping should happen.

Thanks

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
2 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 05 Jul 2021 10:53

Hi, Ketan,

Following the provided information, I was able to observe the unexpected text wrapping:

I have logged it in our feedback portal by making this item a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to adjust the font size: 

  var font = new Font(Font.FontFamily, 9.0f);

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Ketan
Posted on: 04 Jul 2021 03:39

Hi,

Please refer. attached file for the above issue mention.

Attached Files: