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
    Petar Mladenov avatar
    2882 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.

    Petar Mladenov

    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. DevCraft R3 2016 release webinar banner
Back to Top