Zoom to highlighted shapes

3 posts, 1 answers
  1. Luke
    Luke avatar
    9 posts
    Member since:
    Jan 2015

    Posted 13 Apr 2015 Link to this post

    Hello - I run a simple system that looks at Sales orders, then with their associated country, changes the colour of that country on a map - pretty simple stuff.

     

    Having that list of countries (shapes), is there a way to zoom so that they act as the zoom limits ie if only UK orders, only UK would be shown via zoom, or if UK and Australia, the map would center somewhere between the two, and zoom accordingly

     

    Many thanks

  2. Answer
    Todor
    Admin
    Todor avatar
    168 posts

    Posted 16 Apr 2015 Link to this post

    Hello Luke,

    You need to set the best view of the RadMap by a given LocationRect object. You can see how to achieve that in this help article. The same technique is applicable in Visualization Layer as well. In addition you can check the 'How to set the best view for the information layer' demo in our SDK repository on gitHub.

    For your convenience, I've created a sample project which uses the Visualization Layer and follows the above described approach. You can find the demo attached. 

    I hope this helps.

    Regards,
    Todor
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Luke
    Luke avatar
    9 posts
    Member since:
    Jan 2015

    Posted 16 Apr 2015 in reply to Todor Link to this post

    Just the job - many thanks
Back to Top