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 4 of 4

Problem with locations

This is a discussion on Problem with locations within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi all I have the following problem: I wrote a VB application that has two map objects that are placed ...

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

    Problem with locations

    Hi all

    I have the following problem:

    I wrote a VB application that has two map objects that are placed on top of each other, each map has the same pushpins with different symbols.

    I need that each time the user flips between them he will see the same zoom level and the same status (to the user eyes it will be as if there is only one map whos pushpins changed symbols)

    how can i pass the zoom level and place between the maps

    Thanks in advance

    Kobi

  2. #2
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44
    its been a while since i've had anything open programming but i think something along the lines of

    Code:
    objmap1.location = objmap2.location
    objmap1.height= objmap2.height
    should set things the same and then just switch the view to the other map

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

    Tried - not working

    10x for your fast reply Matrices, but this solution does not work

    I get an error message saying "Method '_Location' of object '_Map' falied"

    does anyone knows how to do it?

    10x in advance

    Kobi

  4. #4
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Hi Kobe,

    Check the help file, I think to set the zoom level the property you will want to use is Altitude.

    Here's the sample for the Location property (Map):

    Sub ZoomToLocation()

    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map

    'Set up the application
    Set objMap = objApp.ActiveMap
    objApp.Visible = True
    objApp.UserControl = True

    'Zoom in on map by setting map location
    Set objMap.Location = objMap.FindResults("Seattle, WA")(1)

    End Sub

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Retail locations data
    By cableghost in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-02-2006, 03:16 PM
  2. finding locations
    By SimonPearse in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-23-2004, 09:56 AM
  3. Incorrect locations?
    By harris00 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-25-2004, 11:40 PM
  4. array of locations
    By Bart Vervenne in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-14-2003, 05:03 AM
  5. Import locations
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-10-2002, 05:20 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