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

I have read you can zoom the map to any lat/long f....

This is a discussion on I have read you can zoom the map to any lat/long f.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; I have read you can zoom the map to any lat/long from code once done can you display an icon ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I have read you can zoom the map to any lat/long from code once done can you display an icon at that specific point ?

    What is the likely overhead of doing this many times in a small area leaving thse icons on the map

    david

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    To do this, simply add a pushpin. The following code does the trick:

    (MapPoint must be started)



    <pre>
    ' Attach to running instance of MapPoint
    Set oMpApp = GetObject(, "MapPoint.Application")

    ' Retrieve the active map
    Dim oMap As MapPoint.Map
    Set oMap = oMpApp.ActiveMap

    ' Set a pushpin at 49 North, 10 East
    Dim oPin As MapPoint.Pushpin
    Set oPin = oMap.AddPushpin(oMap.GetLocation(49, 10))

    ' Set the symbol property of the pushpin
    oPin.Symbol = 42
    </pre>

    Check out the documentation of the Symbol property of the Pushpin object for available symbols. MapPoint 2002 supports adding your own icons, their symbol codes start at 256.



    The overhead / efficiency largely depends on type of CPU and amount of memory available.



    -gk



Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to read .shp files
    By shaileshganatra in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-10-2008, 07:46 PM
  2. Zoom In and Zoom Out event detection
    By victorf in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-22-2003, 12:56 AM
  3. set note read-only
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-05-2003, 09:50 AM
  4. I have just read B.J. Holtgrewe's v.interesting a....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-06-2001, 05:15 AM
  5. Is There any way to Zoom Specific Lat/Long and be....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-08-2001, 08:49 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