Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 2 of 2

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

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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.

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copying from MP2002 to Word 2002
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-27-2005, 04:35 PM
  2. problems copying map legends
    By jjn27 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-03-2005, 12:02 AM
  3. Copying the legend to paint or MS PowerPoint
    By jdfreese in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-20-2004, 05:39 PM
  4. Copying Worksheet with Combo Box
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-20-2004, 05:13 PM
  5. Copying multiple shapes
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 04-22-2004, 04:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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