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
dfd (Trustworthy from experience)  
View profile
 More options Jul 6, 10:50 am
From: "dfd (Trustworthy from experience)" <dfddurstew...@googlemail.com>
Date: Sat, 5 Jul 2008 22:50:00 -0700 (PDT)
Subject: Re: Editing GPolyline (middle points)
If i understand you correctly, you want not to display these "ghost"-
markers which are inserted automagically at all?
Thats easy, just set the maxVertices option while enableEditing. I do
this with a toggle button for show/hide the ghosts.

The relevant lines of code from a greater function:
...
  var showGhost = false; // hide GostMarkers
...
  poly.disableEditing();
...
  poly.enableEditing({maxVertices: ((showGhost) ? 99999 : 1)}); // no
poly should reach 99999 vertices
...

or, if you in no case would not show the ghosts:

poly.enableEditing({maxVertices: 1});

The documentation of this option is misleading, IMHO.

HTH, frank aka dfd

On 5 Jul., 15:54, Paweł <duszc...@gmail.com> wrote:

> I was wonder if the is any possibility to disable middle points
> between Vertex'es? I have code for editing existing polyline's points
> but if i want to add some point it occures error. I dont realy have
> need to add  those point so can i disable them or just make them
> invisible/uneditable?


    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