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
1735
XamMap resize behavior
posted

Hi,

when resizing its parent container it seems to me that the default behavior of the XamMap control is to rescale itself to try to keep the original viewport within the new container bounds. This means that the XamMap content usually changes its zoom level.

I would rather like to keep the original zoom level when resizing the parent container, keeping the map data at  the top-left corner fixed and just extending/truncating the map data in the horizontal- and vertical direction. What is the easiest way to achieve this ? Is there maybe a property that affects XamMap resizing behavior ?

Regards,
Leif

 

 

 

Parents
  • 22015
    posted

    Hello Leif,

     Thank you for your post. I have been looking into your issue and have created a small sample for you. In the sample when you resize the parent window the map is fixed in the upper left corner of the window. You can change the zoom level using the MapNavigationPane(down left corner) to navigate left or right.

    Please find the attached sample and feel free to let me know if you have any further questions on the matter or I have misunderstood your requirements.

    xamMapResizing.zip
Reply Children