Map does not work correctly with large fonts

4 posts, 0 answers
  1. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 27 Mar 2013 Link to this post

    I submitted a 'suggestion' but I don't see it today. I tried to submit a ticket, but it won't let me because our maintentance program lapsed. Regardless of whether or not I am a currently subscribing customer, I should still be allowed to submit a bug report. I am using version 2012_2_0912.

    When using Windows 7 with one of the larger font sizes, the map has two issues. The first is minor, but very noticeable. The image tiles are very fuzzy. It looks like they are being scaled/enlarged.

    More importantly, Telerik.Windows.Controls.Map.Location.GetCoordinates is giving bad coordinates. I click on the map and use this function to get the geo coordinates. When I do this, the resulting coordinates are shifted a bit down and quite a bit to the right.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 28 Mar 2013 Link to this post

    Hi Jason,

    1. You are the first to report problems with font size. I would appreciate if you provide the steps to reproduce the problem with font size.

    2. The Telerik.Windows.Controls.Map.Location.GetCoordinates should work as expected. You just have to pass right screen coordinates there. It shouldn't be a position relative to the RadMap control, but position relative to the inner component. I would recommend that you use MapMouseClickEvent on RadMap control instead. It passes valid geographical coordinates as event parameters.

    All the best,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 28 Mar 2013 Link to this post

    1. I've attached two images with the two different font settings. "Small" is the normal settings. You can see it looks much sharper than the "Large" version. However, now that I see them side by side, I'm not sure there is anything to be done? It looks like Windows itself is blowing up the window?

    2. It turns out WPF is not reliable when working with screen coordinates. See this link:
    http://tech.pro/tutorial/893/wpf-snippet-reliably-getting-the-mouse-position

    Roughly, If I put my mouse near the edge of the screen, WinForms tell me (correctly) that my X coordinate is 1900. If I use WPF, it tells me I'm at 1500. Because my map is hosted in WinForms, I was passing the WinForms location, but the map wants the WPF version.

    Wrong (what I was doing):
    In WinForms, call the Map Host's PointToClient with MousePosition.

    Correct:
    In WinForms, pass MousePosition to the Map Host, which will the Map's PointFromScreen.
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Apr 2013 Link to this post

    Hello Jason,

    Thank you for the information. It looks like blurring of the tiles on different system font settings is out of our control. Windows itself control this behavior.

    All the best,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top