Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
712
zooming
posted

Hi,

I display the world map on the xamMap. Upon clicking a particular country, the map element of the country will be zoom in. I change the value of  WindowZoomMaximum property. The thing is that whether I chose small or big country the zoom level is the same.

I wanna find out the zoom level based on the country size or area and also wanna make sure the element is shown at the center of screen.

How could i calculate the zoom level based on country size?

 

Thanks.

NNT

Parents
  • 3255
    posted

    Hi NNT

    XamMap's WindowZoomMaximum gets or sets the maximum possible zoom for the map. I assume that you want to use WindowZoom or WindowScale instead.

    To show element at the center of the screen you can use XamMap's WindowFit method.

    Please let me know if you have more questions.

    Regards,

    Ivan Kotev

Reply Children