Set Map Center With MapPolyLine new points

2 posts, 1 answers
  1. Erhan
    Erhan avatar
    15 posts
    Member since:
    Dec 2014

    Posted 18 Feb 2015 Link to this post

    Hello All,

             İn RadMap when ı click an object on HeatMap my map drawing ne lines . But ı couldnt set zoom and center for lines . How can ı do this?
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 23 Feb 2015 Link to this post

    Hi Erhan,

    Both in InformationLayer and in VisualizationLayer, you can use the GetBestView() method for a list of map items / objects. This returns LocationRect object. You can use the center and zoomlevel of the locationrect and pass them to the RadMap.

    Regards,
    Petar Mladenov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top