Are you saying that if your polyline has 20 points (points are called vertexes by the v2 API), that you want to draw the polyline from vertex 3 to vertex 17 inclusive? (The first vertex in a polyline is vertex zero).
Look at the GPolyline documentation: http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GPolyline.getVertexCount getVertexCount() tells you how many vertexes make up a polyline. You can them loop through the vertexes from the 4th vertex to the 3rd from last vertex, use getVertex() to get each of those vertexes (in a loop) and build a new polyline from those vertexes. http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GPolyline.getVertex Martin. On 22 Sep, 10:23, Rajarajeswari Santhananthan <msraj...@gmail.com> wrote: > I want to stop the line 3 points before the end point similarly i have to > start the line 3 points after the start point as illustrated in the > attachment. > > On 22 September 2010 14:35, Andrew Leach <andrew.leac...@gmail.com> wrote: > > > On 22 September 2010 09:59, Raji <msraj...@gmail.com> wrote: > > > Hi, > > > > i want the infinite number of points that make up line. > > > You might want it, but... that's a very very large amount of data to > > handle. And > > calculating that data will take a very very long time. I suggest you > > rethink your strategy. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps API V2" group. > > To post to this group, send email to google-maps-...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-maps-api+unsubscr...@googlegroups.com<google-maps-api%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-api?hl=en. > > > > sample.JPG > 14KViewDownload -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to google-maps-...@googlegroups.com. To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.