MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Shapes and rendering speed!

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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;

}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-02-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
rendering, shapes, speed


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 01:50 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Flights from Aberdeen
Get great value flights from Aberdeen online at Holiday Hypermarket. Find out all the key Aberdeen Airport information in just a few clicks at Holiday Hypermarket.

Turkey Weather
Check out Turkey Weather - Travel Counsellors details information on Turkey including, weather, flights and accommodation.

Thailand Holidays
Thailand Holidays can suit your budget when you book with dealchecker.co.uk. If you are strapped for cash, visit online to find the deal for you.

Jamaica Holidays
Jamaica holidays give you the chance to enjoy the vibrant cultural heritage and wonderful laid back atmosphere of the Caribbean. Book here!

Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.

Cheap package holidays
Use Travel.co.uk to find the best cheap package holidays available. Have fun and save money at the same time

Cheap Lanzarote Holidays
The Canary Islands beckons you to come! View information on cheap Lanzarote holidays at On The Beach!


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