Community of VE/MapPoint Users and Developers
This is a discussion on save / restore map settings within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I want to save current map view settings when terminating the program, and restore it back after reopen. But ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| save / restore map settings I want to save current map view settings when terminating the program, and restore it back after reopen. But I dont wants to save the map, only these settings. But it seems something is wrong and I cannot figure it out at the moment. When Iexecute this peace of code in 1 block nothing should happen, but the altitude becomes bigger and the map move to south and west. Someone has an idea wy ? Code: double Lat;
double Lon;
double Alt = MP.ActiveMap.Altitude;
Int32 x = MP.Height / 2;
Int32 y = MP.Width / 2;
Location Loc = MP.ActiveMap.XYToLocation(x, y);
pos.CalcPos(Loc, out Lat, out Lon);
MP.ActiveMap.GoToLatLong(Lat, Lon, Alt);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Hi, Found it Code: Int32 x = MP.Width / 2;
Int32 y = MP.Height / 2;
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| map, restore, save, settings |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Registry settings not copied properly...What? | Anonymous | MapPoint 2006/2009 Discussion | 5 | 09-02-2008 05:56 AM |
| Mappoint Settings | Anonymous | MapPoint 2006/2009 Discussion | 0 | 04-01-2005 04:24 PM |
| Disable save | Dazzer | MapPoint 2006/2009 Discussion | 1 | 10-28-2003 05:30 AM |
| save changes to map? No! | Jade | MapPoint 2006/2009 Discussion | 2 | 05-12-2003 07:13 AM |
| Can I save a map as a .pdf file?.... | Anonymous | MapPoint 2006/2009 Discussion | 3 | 04-26-2002 02:06 PM |