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

Set Map Center With MapPolyLine new points

1 Answer 117 Views
Map
This is a migrated thread and some comments may be shown as answers.
Erhan
Top achievements
Rank 1
Erhan asked on 18 Feb 2015, 11:08 AM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 23 Feb 2015, 08:02 AM
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.

 
Tags
Map
Asked by
Erhan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or