Zoom map to MapPolygon extent

2 posts, 0 answers
  1. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 29 Sep 2010 Link to this post

    Hi all,

    How can I set the map extent to a MapPolygon GeographicalBounds ?
    I need to make my MapPolygon fit as perfectly as possible the screen.

    When I use:

    i can see the map centered on the MapPolygon But zoom level is still to low because I see all MapPolygons around.

    Any ideas?

    Thank you,
    Nuno Senica


  2. Andrey
    Andrey avatar
    1681 posts

    Posted 01 Oct 2010 Link to this post

    Hi Nuno,

    We have checked the functionality of the RadMap.SetView method. It works correctly. The zoom levels, however, are discrete, so one cannot perform a perfect "zoom to fit". One possible approach here would be to zoom the map in by one level after using SetView. In this case, some edge of polygon should be out of view.
    If this does not seem to help could you, please, create sample solution which demonstrates the problem and send it to us?

    Sincerely yours,
    Andrey Murzov
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
Back to Top