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

Map does not work correctly with large fonts

3 Answers 93 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jason D
Top achievements
Rank 1
Veteran
Jason D asked on 27 Mar 2013, 04:31 PM
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.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 28 Mar 2013, 08:31 AM
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.

0
Jason D
Top achievements
Rank 1
Veteran
answered on 28 Mar 2013, 08:28 PM
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.
0
Andrey
Telerik team
answered on 01 Apr 2013, 10:44 AM
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.

Tags
Map
Asked by
Jason D
Top achievements
Rank 1
Veteran
Answers by
Andrey
Telerik team
Jason D
Top achievements
Rank 1
Veteran
Share this question
or