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

How to restrict map area in ActiveX?

This is a discussion on How to restrict map area in ActiveX? within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm making an application for displaying locations and routes within one city and woul'd like to prevent the user from ...

  1. #1
    ErikS is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    1

    How to restrict map area in ActiveX?

    I'm making an application for displaying locations and routes within one city and woul'd like to prevent the user from panning away or zooming out to far, while still being able to zoom in on parts of the city.

    I know that it is possible to disable zoom and pan completely, I just want to restrict the area.

    Thanks for any tips,
    /Erik

  2. #2
    Daniel is offline Junior Member White Belt
    Join Date
    Jul 2004
    Posts
    8
    I'm planning on doing something very similar. For the zoom functionality I've done this...

    Code:
    Dim MaxAltitude As Interger
    Private Sub Form_Load()
        MaxAltitude = objMap.Altitude
    End Sub
    
    Private Sub mpc_AfterViewChange()
        If objMap.Altitude > MaxAltitude Then objMap.Altitude = MaxAltitude
    End Sub
    If you have a mousewheel and spin it too fast you can get outside or your MaxAltitude although as soon as the view changes again it will reset. I'm working on the panning at the moment, will post as soon as I have something.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to restrict user from changing pushpin information...
    By Learner in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-24-2006, 02:23 AM
  2. Surface Area
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 01-05-2006, 05:13 AM
  3. is an address within an area?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-23-2005, 02:51 PM
  4. How to get the 4 map area coordinates ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-22-2004, 02:44 PM
  5. Avoided Area?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-25-2003, 01:46 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