Map and Map titles

4 posts, 0 answers
  1. Nikola
    Nikola avatar
    6 posts
    Member since:
    Jun 2017

    Posted 01 Jun 2018 Link to this post

    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?
  2. Silviya
    Admin
    Silviya avatar
    293 posts

    Posted 06 Jun 2018 Link to this post

    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
  3. Nikola
    Nikola avatar
    6 posts
    Member since:
    Jun 2017

    Posted 06 Jun 2018 Link to this post

    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?
  4. Silviya
    Admin
    Silviya avatar
    293 posts

    Posted 08 Jun 2018 Link to this post

    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
Back to Top