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
115
Error when setting a default location - Cannot create viewport matrix
posted

Greetings,

I am very new to mapping, but I've gotten a pretty good understanding of the basics from the "StartupSolution" sample.  I'm trying to emulate the exact same code used in the SetDefaultLocation() method in the GeometryBinding.xaml.cs file.  However, when I load my page, I get the following error:

"Cannot create viewport matrix"

It's happening at the following line of code:

theMap.WindowRect = theMap.WorldRect = winRect;

 I'm stumped. The only difference between my code and the code in the sample is taht I am using this in my main page, rather than navigating to it frmo another page.

Any ideas?

Thanks in advance.

Parents
No Data
Reply
  • 2505
    Offline posted

    Hi Michael,

    The resolution, that initions suggested, could be used as a workaround here. However, the issue's been reported and it will be addressed in our next release.

    Thank you for pointing this out and sorry for any inconvenience it caused.

    Best regards,
    Milana Zhileva

Children
No Data