зеркало из https://github.com/telerik/xaml-sdk.git
8e6db6e592 | ||
---|---|---|
.. | ||
Properties | ||
App.xaml | ||
App.xaml.cs | ||
HowToSetTheBestViewForTheInformationLayer.csproj | ||
MainWindow.xaml | ||
MainWindow.xaml.cs | ||
MapItem.cs | ||
Readme.md |
Readme.md
Ste The Best View For The Information Layer
In case you have a set of elements displayed by the InformationLayer, you might want to be able to display all of them in the visible area of the map and to set the optimal zoom for them. This can be done by using the Best View feature of the RadMap. To use it you have to call the GetBestView() method of the InformationLayer and pass its items to it. This method will return a LocationRect object which represents the best view for the items in the InformationLayer. You can use it in order to adjust the RadMap center and zoom level.