spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

Top | Post New Question | Read All | MP2K Asks Microsoft

400 Jack Melgers - September 17, 2001

Is it possible to add a new point to an existing polyline? I´m now using the vertices property to get the array of locations of the polyline, then I add a point to this array and set again the vertices property with this extended array. I wonder if there is a faster or better way to add a point to a polyline. Thanks in advance for any help.

Answer:

Sorry for the delay - it took a while to verify this answer with our source.

You cannot add a new point to an existing polyline. However, if performance is your issue, you should seriously consider creating a DLL to perform the drawing work. The majority of the time needed to draw lines or plot points on the map is taken up by communication between your code and MapPoint. If this is done "in process" using a DLL (COM Add-in), you may find the performance is much faster. We know of one case (plotting many points on a map) where it reduced the time take from 2 minutes to less than 5 seconds. Definitely worth looking into.

Post New Answer / Follow-up


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.