DoMapZoom only zooms in?

Jun 10, 2011 at 8:07 PM

A quick question!

I got a button which I want to zoom out with. I used this line of code, which is also used in the samples:

   private void zoomout(object sender, System.Windows.RoutedEventArgs e)

It should zoomout 50 feet, but instead it zooms really far in somewhere in South Dakota. Any ideas? My altitude is still 10000000.

- Niels

Jun 13, 2011 at 5:41 PM

No one any ideas? It seems weird that I even when I use a negative value it still zooms in like crazy.

- Niels

Jun 13, 2011 at 5:55 PM

It should work fine. Run WPFVEMapSample and click the Zoom In and Zoom Out buttons. Do those work as expected? If so, then compare what the sample is doing with the rest of your code to find the difference.

Jun 13, 2011 at 6:43 PM

Hmm, I tried that but with no luck. Then I created a new project, and now it works. Really strange, but I'm happy!

Thanks so much for your gelp!

- Niels