Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Shapes and rendering speed! within the MapPoint 2006/2009 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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Shapes and rendering speed! 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)<< shape.Fill.ForeColor = rgb_color; } |
| |||
|
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 |
![]() |
| Tags |
| rendering, shapes, speed |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rendering graphics on top of the MapPoint Control | Anonymous | Development | 2 | 09-12-2007 08:39 AM |
| Optimize Custom Symbol Map Rendering Performance | gkirbo | MapPoint 2006/2009 Discussion | 21 | 05-09-2006 06:21 PM |
| Dataset rendering | Gianmaria | MapPoint 2006/2009 Discussion | 3 | 06-09-2005 02:22 PM |
| Map Rendering | priyands | MapPoint 2006/2009 Discussion | 2 | 01-15-2004 12:05 PM |
| How to speed up MapPoint | Dean | MapPoint 2006/2009 Discussion | 0 | 08-30-2002 10:16 AM |
Taba Heights Holiday
Visit Egypt with your Taba Heights holiday. Book through UlookUbook and save!