Capturing zoom

May 1, 2009 at 9:01 AM
Hey guys,

I'm currently building an application with this wonderfull control.
But I just can't figure out how I can capture if the user is zooming in or out.
Why do you want that? You might ask, well I want to display an "home icon" on the map when the zoom is reaching a certain altitude.
So the user wont get lost.

Could anyone help me with this issue?



May 1, 2009 at 2:58 PM
The VEMap.Altitude property is what you are looking for.  It is the altitude in feet.

Tell us more about your application.
May 2, 2009 at 7:14 PM
Edited May 2, 2009 at 7:15 PM
Hi Josh,

Currently I'm making a interactive map for a fortress in the Netherlands, on the MS Surface.
It lets the user acces all kinds of historical information about the buildings and such.
I'm familiar with the VEMap.Altitude property, but how can I check if the VEMap.Altitude is changed, and if it passed a certain value, during a zoom action.

May 3, 2009 at 2:46 AM
I don't have any events for when the position is changed.  I'll add that to the wish list.

For now, just periodically check the Altitude property and store the last value so you can see if it changed.  Try a DispatcherTimer.
May 3, 2009 at 2:47 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.