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 |
![]() |
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 03:37 PM |
| I am trying my hand on Mappoint . I am trying to p.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 08-01-2002 09:18 PM |
Pamporovo Ski
Pamporovo ski holidays are situated high in the Rhodope Mountains. With an average of 270 days of beautiful sunshine and good snow, Pamporovo ski holidays are value for money.
Business Travel Agent
Leading Business Travel Agent. Personal service is at the heart of our business. Talk to one of our travel agents today.
Cuba Holiday
A Cuba Holiday has so much to offer with numerous different cultures affecting the sights, sounds and tastes. Visit this fascinating country with dealchecker.co.uk.
Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!
Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?
Inclusive package holidays
Choose one of the many inclusive package holidays at Travel.co.uk and save a lot of trouble and money too!
Holidays to Florida
Sun and sea! Get info on holidays to Florida, only at On The Beach.