Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Performance with many pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using MapPoint 2006 in VS2008/C#. I want to plot many points on the map, typically many thousands, to get ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Performance with many pushpins I want to plot many points on the map, typically many thousands, to get a density type graph. I'm using something like this, for (int loopCounter = 0; loopCounter < 1000; loopCounter++) { theLocation = axMappointControl1.ActiveMap.GetLocation(lat, longitude, 0); axMappointControl1.ActiveMap.AddPushpin(theLocatio n, ""); lat += 0.0005; longitude += 0.0005; } to test the concept. My test code works, but seems very slow, typically 30-60s to plot 1000 points. I also tried using AddShape, but that seemed even slower. Am I doing something wrong? or is this typical sort of performance we are likley to see? TIA Paul |
| |||
| Re: Performance with many pushpins
If your data is geocoded, i.e. you know lat/long for all points, as you suggest from your code sample, and have them in a database, then plot them by doing a data import/link, the only method I know fast enough for such volumes. I need less than 10 seconds to plot 1000 pushpins such way. |
| |||
| Re: Performance with many pushpins
Thanks Renatoa, obj.DataImport is much quicker, < 3s to plot 5000 points, from an excel file. When we do this for real datasets will already be in memory, so should be even faster! Do you know if there are any hard limits on the number of pushpins that can be displayed? Thanks Again Paul |
![]() |
| Tags |
| performance, pushpins |
| ||||
| Posted By | For | Type | Date | |
| Pushpin Tool Add-in - MP2K Magazine | This thread | Refback | 01-06-2009 06:44 PM | |
| MapPoint Help - MP2K Magazine | This thread | Refback | 01-05-2009 09:46 AM | |
| MapPoint For Dummies - MP2K Magazine | This thread | Refback | 01-03-2009 02:28 PM | |
| MapPoint For Dummies - MP2K Magazine | This thread | Refback | 01-03-2009 02:28 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimize performance | andrea | Development | 13 | 09-23-2008 04:38 PM |
| Virtual Earth API: Bulk Adding Pushpins to a Layer to Improve Performance | Keith Kinnan's Weblog | Virtual Earth Blogs | 0 | 01-04-2008 09:27 AM |
| Improving the performance of generating pushpins Programmati | kavehmb2000 | MapPoint 2006/2009 Discussion | 2 | 05-21-2006 05:48 AM |
| Performance | Eric Frost | MapPoint 2006/2009 Discussion | 2 | 03-24-2006 06:27 AM |
| Performance within a vb.net app.. | douglas | MapPoint 2006/2009 Discussion | 1 | 06-04-2003 09:22 AM |
Hurghada Holiday
Enjoy sunny Egypt when you book a Hurghada holiday through UlookUbook at a good price!