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?