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

Need to add a proper zoom and move feature

This is a discussion on Need to add a proper zoom and move feature within the MapPoint Desktop Discussion forums, part of the Map Forums category; Usig MapPoint 2004, I need to allow the user to zoom in and out, but by smaller increments than MapPoint ...

  1. #1
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    Need to add a proper zoom and move feature

    Usig MapPoint 2004, I need to allow the user to zoom in and out, but by smaller increments than MapPoint uses with calls to ZoomTo() and ZoomOut(). I also need to give four buttons to permit the user to move the map display area, but also by smaller amounts than MapPoint defaults to. And while I think I understand what's involved, I still have some questions.

    I imagine I should write my own ZoomTo() and ZoomOut() function, then feed the new coordinates to MapPoint.

    Can aybody make any suggestions for this? I'd like four buttons, North, South, East and West. I'd also like ZoomIn and ZoomOut. And I'd even like an input edit field that will let them input the percentage change they'd like.

    Can anyone suggest how to do this? Got any code handy?

    Thanks,
    newbieweb

  2. #2
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    Re: Need to add a proper zoom and move feature

    I actually got the postedproblem working but have trouble deleting all the symbols I have added, thusly:

    MapPoint.Pushpin newPushpin = activeMap.AddPushpin( pointOfInterest, name );

    How can I clear the list?

  3. #3
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Need to add a proper zoom and move feature

    Hi Bob,

    For the zoom you can set the Altitude property. For the move of the map you can use the Pan() method. And to clear all pushpins the most fast way is to just delete the dataset where the pushpins are in.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pushpin move on map and new locaiton
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-28-2005, 03:26 PM
  2. Zoom In and Zoom Out event detection
    By victorf in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 10-22-2003, 01:56 AM
  3. not to move shapes
    By Manuel in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-19-2003, 02:46 PM
  4. Help.! How to move a pushpin in the map.
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 03-10-2003, 06:00 PM
  5. Ist it possible to get X, Y from mouse move
    By blackmap in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-16-2002, 04:54 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