Google Groups Home
Help | Sign in
Message from discussion Editing GPolyline (middle points)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
marcelo  
View profile
 More options Jul 6, 5:39 am
From: marcelo <marcelo...@hotmail.com>
Date: Sat, 5 Jul 2008 17:39:34 -0700 (PDT)
Local: Sun, Jul 6 2008 5:39 am
Subject: Re: Editing GPolyline (middle points)
Ok, that was more clear.
What I still do not understand is why you make it editable at all.
If you want to remove the in-between markers because they are notpart
of the route registered by the GPS, then editing at all would have the
same result.

Regardless, I don't think there is a way to disable the in-between
points.
If you don't want them, then you need to implement your own editing
function, without using GPolyline.enableEditing().

You can put your own small square markers on the ends of each segment
of the polyline, make those markers draggable, and handle the marker's
'dragstart', 'drag' and 'dragend' events, and modify the line
according to their movement.
It's a bit more work, but not too much compared to what you already
have done in that page. :-)

--
Marcelo - http://maps.forum.nu
--


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google