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

Shapes and rendering speed!

This is a discussion on Shapes and rendering speed! within the MapPoint Desktop Discussion forums, part of the Map Forums category; I trying to use MapPoint 2004ís activeX control to plot lat/lon based data which includes color information. I have around ...

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

    Shapes and rendering speed!

    I trying to use MapPoint 2004ís activeX control to plot lat/lon based data which includes color information. I have around 5K points that I would like to plot but MapPointís initial rendering is very, very, very slow. Below is the code Iím using to pass data to MapPoint, Iím also using AxMappointControl.BeginInit and EndInit while iím adding the shapes to the map. Can someone please tell me how to improve the rendering speed? Thanks in advance.
    Bryan

    NOTE: Iím using shapes because it appears to be the only way to keep control of the color.
    Rendering For Loop
    for (int i=0; i<num_recs; i++)
    {
    MapPoint.Location loc = oMap.GetLocation(lat_data[i], long_data[i], 0);
    MapPoint.Shape shape = oMap.Shapes.AddShape(MapPoint.GeoAutoShapeType.geo ShapeOval, loc, 6, 6);
    shape.Line.Visible = false;
    shape.Fill.Visible = true;

    Color color = Color.FromArgb(color_data[i]);
    // Convert from arbg to rgb
    byte a = 0x00, r=color.R, b=color.B, g=color.G;
    int rgb_color = ((((a)&0xff)<<24)|(((b)&0xff)<<16)|(((g)&0xff)<<|((r)&0xff));


    shape.Fill.ForeColor = rgb_color;

    }

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Before cycle, do

    GetLocation(0,0,1).Goto (or another location that not have shapes)
    then zoom to that location so you have only water in the current view (it's better that you make the map unvisible).

    do your cycle

    return to your original location
    make the map visible

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Rendering graphics on top of the MapPoint Control
    By Anonymous in forum Development
    Replies: 2
    Last Post: 09-12-2007, 09:39 AM
  2. Optimize Custom Symbol Map Rendering Performance
    By gkirbo in forum MapPoint Desktop Discussion
    Replies: 21
    Last Post: 05-09-2006, 07:21 PM
  3. Dataset rendering
    By Gianmaria in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-09-2005, 03:22 PM
  4. Map Rendering
    By priyands in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-15-2004, 01:05 PM
  5. How to speed up MapPoint
    By Dean in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 08-30-2002, 11:16 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96