Community of VE/MapPoint Users and Developers
This is a discussion on Just hand it to me within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I want to programatically select the pan mode, (the cursor is a hand) rather than a pointer that allows me ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi, You have 2 options to pan programatily: this is the first: Code: double Lat;
double Lon;
Int32 x = MP.Height / 2;
Int32 y = MP.Width / 2;
double Alt = MP.ActiveMap.Altitude;
Location Loc = MP.ActiveMap.XYToLocation(x, y);
pos.CalcPos(Loc, out Lat, out Lon);
Lat += 1;
MP.ActiveMap.GoToLatLong(Lat, Lon, Alt);
Code: MP.ActiveMap.Pan(GeoPanCmd.geoNorth, Amount);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Wilfried, That's not the answer I wanted but it is the answer I needed. What I wanted to do was be able to use the mouse pan mode in my control. I found the two settings: MapCntrl.MousePointer = geoPointerHand MapCntrl.ActiveMap.DragBehavior = geoDragHand But my next question was was going to be on how to hold a perspective (position and altitude/zoom) while (or after) adding new reverse-geocoded pins. I think your code is perfect for that thanks. |
| |||
|
Hi, Quote:
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| hand |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| customized drawing toolbar with circle and free hand only? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-19-2005 04:37 PM |
| I am trying my hand on Mappoint . I am trying to p.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-01-2002 10:18 PM |