MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Copying location from one map to another in code.

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-09-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Copying location from one map to another in code.

Hi

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-09-2004
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 893
Blog Entries: 10
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
code, copying, location, map


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 07:33 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54