This is a migrated thread and some comments may be shown as answers.

Map and Map titles

3 Answers 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nikola
Top achievements
Rank 1
Nikola asked on 01 Jun 2018, 12:50 PM
I am using the Telerik.Reporting.Map control to build some functionality in the map. What I'd like to achieve is some labels on the left top, left center and left bottom. Whenever I do that, the titles do not sit in 1 line. 

How can I align them so they are on 1 line?

3 Answers, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 06 Jun 2018, 10:54 AM
Hello Nikola,

This is by design and let me explain why.

In general, when adding new Telerik.Reporting.MapTitle, for example at LeftTop position, it will take the whole left bound of space of the map. The next added title will take next bound of space etc. 
The main idea is to prevent overlapping the long titles, so we order them stacked one after another.

As a workaround, you might set negative padding for the rest of the titles.

Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Nikola
Top achievements
Rank 1
answered on 06 Jun 2018, 01:53 PM
Hi Silviya,

Thank you for the reply.

I can definitelly understand how this would be by design so they do not clash on each other. That brings 2 more clarification questions to my mind:

1) I cannot seem to figure what is the rule that you use to figure out which will be the first. I guess it's based on the GraphItemPosition enum ordinal, can you confirm that?

2) Taking look at the attached file (map_titles_order.png) can you let me know what is the space with the question marks used for? Obviously LeftBottom runs just above BottomLeft. In this case I expect BottomLeft to start after LeftBottom OR BottomLeft to start from the utmost left point. Can you explain to me what is the logic behind?
0
Silviya
Telerik team
answered on 08 Jun 2018, 08:21 AM
Hi Nikola,

In general, the order of rendering depends on the order in the Titles collection.
As for the second question and attached screen shot, my assumption is that the Titles collection order is:
1. LeftTop
2. LeftCenter
3. BottomLeft
4. LeftBottom 

So, if you switch the third and forth positions, the BottomLeft title would start after LeftBottom.

Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Nikola
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Nikola
Top achievements
Rank 1
Share this question
or