OpenStreetMapProvider - size

2 posts, 0 answers
  1. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 23 Mar 2011 Link to this post


    I have a question:

    We have control with map component in it. Size of the control is: width = 780, height = 630. By default map center is (0,0), zoomlevel is 1.
    In this case the map looks as square. So we have empty space in out control (see attachment)

    We use OpenStreetMapProvider.

    Can we can fix this problem. If can - how?

    And the second question: how can I get real size in pixel of the map with current zoom?

    Thanks, Anatoly Chekh.
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 25 Mar 2011 Link to this post

    Hello Anatoly Chekh,

    It is expected behavior for the map control. Currently you can only limit the min zoom level value to 2 to enlarge the size of control.
    <telerik:RadMap x:Name="radMap"

    For calculation the width and height of whole map in pixels you can use the following formula:
    2 ^ (ZoomLevel + 8)

    Andrey Murzov
    the Telerik team
Back to Top