Community of VE/MapPoint Users and Developers
This is a discussion on Saving current view of map within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; My application is used multiple users to view the location of GPS-equipped service trucks. I would like to be able ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Saving current view of map I've tried using XYToLocation to get the location at specific coordinates, but it just doesn't seem to work. I think I'm missing something simple. Can anyone help? Thanks! |
| |||
|
Hi, When application is closing save lat,long,alt using the center of the map as reference: Code: int x = MP.Width / 2;
int y = MP.Height / 2;
Location Loc = MP.ActiveMap.XYToLocation(x, y);
pos.CalcPos(Loc, out Lat, out Lon);
Alt = MP.ActiveMap.Altitude;
Code: if (Lat + Lon + Alt != 0)
MP.ActiveMap.GoToLatLong(Lat, Lon, Alt);
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| current, map, saving, view |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How can I show my current gps location in the ocx control | orto | MapPoint 2006/2009 Discussion | 2 | 07-16-2004 11:54 AM |
| Getting current GPS coordinates in VB6 | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-10-2004 06:09 PM |
| get longitude/latidude of current view programmaticly | Anonymous | MapPoint 2006/2009 Discussion | 0 | 03-10-2004 05:45 PM |
| Is it possible to expand upon the current 255 push.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 04-16-2002 10:32 PM |
| I am the current user of MapPoint2000. I would lik.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-18-2001 08:28 AM |