Community of VE/MapPoint Users and Developers
This is a discussion on Copying location from one map to another in code. within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi I am finding the location on one map and saving it to global variable. I pass the global variable ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Copying location from one map to another in code. I am finding the location on one map and saving it to global variable. I pass the global variable to another map so I can add a pushpin. This is falling over as it seems that you have to find the location on each map which is making things very slow. Has anyone seen this, or know of a workaround? Thanks. |
| ||||
|
Trying to pass a Location object from one instance of MapPoint to another isn't something I've tried - but I'm not surprised it doesn't work. If the position of the Location is important only but not the associated information (eg. address, point of interest); then you could serialise the Location as a Longitude,Latitude coordinate. If you search the articles section of this website, there's an article showing you how to get the Longitude,Latitude of a Location - its VB but easy to port to C++. Then you can pass the coordinate as two doubles, and recreate it in the second MapPoint instance. This only transfers the physical position, though, and not address information or Point-of-interest information. It is, however, quicker than doing a FindAddress or similar! Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
![]() |
| Tags |
| code, copying, location, map |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copying from MP2002 to Word 2002 | Anonymous | MapPoint 2006/2009 Discussion | 2 | 01-27-2005 04:35 PM |
| problems copying map legends | jjn27 | MapPoint 2006/2009 Discussion | 1 | 01-03-2005 12:02 AM |
| Copying the legend to paint or MS PowerPoint | jdfreese | MapPoint 2006/2009 Discussion | 1 | 10-20-2004 05:39 PM |
| Copying Worksheet with Combo Box | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-20-2004 05:13 PM |
| Copying multiple shapes | Dazzer | MapPoint 2006/2009 Discussion | 4 | 04-22-2004 04:35 AM |