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

Location.Goto functionality, for freeform shapes?

This is a discussion on Location.Goto functionality, for freeform shapes? within the MapPoint Desktop Discussion forums, part of the Map Forums category; FreeForm shapes error when using location.goto() to show the best view. Is there a way to dynamically draw a freeform ...

  1. #1
    Geomancer is offline Junior Member White Belt
    Join Date
    May 2003
    Posts
    1

    Location.Goto functionality, for freeform shapes?

    FreeForm shapes error when using location.goto() to show the best view. Is there a way to dynamically draw a freeform shape (ie; drivetimezone) and then zoom the map to show the freeform shape filling the view? This would be a programmatic setting of the selectedArea just surrounding the freeform shape.

    I am using the ActiveX Mappoint control in a windows form.

    Some small gotchas being experienced, otherwise having fun!

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    Give this sample a try.

    Code:
    Dim objmap As MapPoint.Map
    Set objmap = GetObject(, "MapPoint.Application").ActiveMap
    
    Dim objShapes As MapPoint.Shapes
    Dim objshape As MapPoint.Shape
    Set objShapes = objmap.Shapes
    
    
    Dim objloc1 As MapPoint.Location
    Dim aDriveTimeZone As MapPoint.Shape
    Set objloc1 = objmap.FindResults("Tampa, FL").Item(1)
    
    Set aDriveTimeZone = objmap.Shapes.AddDrivetimeZone(objloc1, 60 * geoOneMinute)
    aDriveTimeZone.Text = "Sample DriveTimeZone of 60 Min"
    
    objmap.Union(aDriveTimeZone.Vertices).GoTo

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting the coordinates from a freeform shape
    By pst in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 07-14-2005, 08:19 AM
  2. How to place shapes at a screen location?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-29-2005, 02:57 PM
  3. Loss of Functionality?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-22-2004, 12:50 PM
  4. freeform & 5-digit zips
    By msensel in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-12-2003, 01:41 PM
  5. memory leak with objloc.goto?
    By mzupan in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-02-2003, 01:14 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