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

Suspend drawing map

This is a discussion on Suspend drawing map within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, Is it possible to suspend the drawing of a map? My application is the following. I have a map ...

  1. #1
    chupax is offline Junior Member White Belt
    Join Date
    Dec 2006
    Posts
    4

    Suspend drawing map

    Hello,

    Is it possible to suspend the drawing of a map?
    My application is the following. I have a map with all my vehicles on it (pushpins). Now it should also be possible to show only the vehicles of specific departments. When I change the department I do the following. I delete all the current pushpins and add all the new ones. The problem with this is that each pushpin is drawn seperatly + the most important and actually the biggest problem, is that there is a zoom to each pushpin. Ofcourse I already checked that I haven't programmed a zoom.
    Many thanks in advance.

  2. #2
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Re: Suspend drawing map

    1) What method are you using to add the pushpins? You are probably calling a geocode method (FindResults/FindAddressResults/GetLocation) over an iteration by looping or For..Next. You'll gain a lot of speed by first writing the new vehicle locations to a temporary file, and then using a bulk import (i.e. DataSets.ImportData) method to add them to the map. After the import you can iterate through the returned dataset to set pushpin properties such as BalloonState, etc.

    2) You can minimize the mappoint windowstate during the pushpin drawing to avoid successive wm_paints.

    3) Adding a pushpin does NOT actualy force/generate a ZoomTo, Union or GoTo. It must be somewhere in your code. However, using the DataSets.Import will make this point moot anyway.

    HTH
    Paul

  3. #3
    chupax is offline Junior Member White Belt
    Join Date
    Dec 2006
    Posts
    4

    Re: Suspend drawing map

    I think I found the problem. In my code I do a findnearby of each pushpin to get the address. Is there another way to get the address of the pushpin without zooming?

  4. #4
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Re: Suspend drawing map

    Unfortunately, all the methods I've found for reverse-geocoding in MapPoint do require a zoom/goto call. You could offload this portion to a second instance of mappoint (non-visible) and then pass the results back to your own instance.

  5. #5
    chupax is offline Junior Member White Belt
    Join Date
    Dec 2006
    Posts
    4

    Re: Suspend drawing map

    OK that might work.
    I'll try it tomorrow.
    THX

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Drawing route as I go.
    By z_darius in forum MapPoint Desktop Discussion
    Replies: 6
    Last Post: 02-10-2006, 09:57 AM
  2. Drawing / Zoom
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-04-2005, 07:59 AM
  3. Drawing Tools
    By uspickle in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-13-2004, 09:51 AM
  4. Free Drawing on the Map
    By Fisherman´s Friend in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-02-2003, 10:10 AM
  5. Anyway to suspend redraws?
    By Dean in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-03-2002, 01:13 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