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

can you explain MappointCtl

This is a discussion on can you explain MappointCtl within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am new to MapPoint I am using 2002 tring to write code in VB6 using control 9.0 Am missing ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002

    can you explain MappointCtl

    I am new to MapPoint I am using 2002
    tring to write code in VB6 using control 9.0

    Am missing somthing in the understanding of how the controls
    link together

    Problem :

    I place a pushpin by postal code and it gives my a rough location
    I move the pushpin manualy on the map to axact location
    Now I want to find the coordinates I have :


    (this forum is a great wealth of information and I thank all )

    My problem is uderstanding the relation ship between
    Pushpin.location and mappoint.location and mappointctl.getlocation etc....

    The method for moving items from one datastructure to another

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Consider this example. You define 'objloc' as a mappoint location object. You now use the Getlocation method to 'set' a location to objloc. Now that objloc represents a location in mappoint we will add a pushpin to the map and use 'objloc' to tell it what location to put the pushpin.

    To extract the lat/lon here is a link to an article here at MP2KMag
    A More Compact Method for Obtaining Lat/Long

    Dim objmap As MapPoint.Map
    Set objmap = MappointControl1.ActiveMap
    Dim objLoc As MapPointctl.Location
    'Get the location of Los Angeles, CA, using latitude and longitude
    Set objLoc = objmap.GetLocation(34.055, -118.24, 100)
    objmap.AddPushpin objLoc, "MyPushpin"

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Could someone explain how item() works on shapes collection?
    By spideybud in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-15-2003, 02:02 PM
  2. Help file says MapPointCtl, it doesn't exist
    By JPeters in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-02-2002, 02:16 PM

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