large amount of pushpin creation optimization

bleduic
12-03-2007, 10:11 AM
Hi everybody !

I'm building an application in wich I'm loading a large amount of objects from a CVS file to a generic list through a for loop that iterates items from this list. Then I generate pushpins on a map. However, because of the large amount of pushpin to create, it takes a lot of time. Is there a way to optimize my code ?

thanks for your replies

Bruno

Wilfried
12-04-2007, 06:07 AM
Hi,

If you have so mutch data then the fastes way is to use ImportData method.

Winwaed
12-04-2007, 07:49 AM
I agree, but this might not be appropriate. There's a limit on the number of pushpins that can be imported at once. Also you can't modify the imported pins & their data.

Richard

Wilfried
12-07-2007, 08:54 AM
Hi Richard,

you are right. but what about the LinkData method ?
possible the limit is the same but data can be updated. however I never tryed it.

 
Web mp2kmag.com
mapforums.com