Larry

The code is part of a general polygon editing suite used for creating
and editing polygons interactively.

I have stored an extract of the main logic of the editor at
www.wp196.talktalk.net.

When the code starts, it is expecting the first node to be entered
(using a right click) on the mouse.  You should then using a series of
normal "clicks" to define the nodes of the polygon.  The polygon shape
follows the mouse movement to assist in creating the polygon.  To
complete the polygon, use the "right click" to register the last node.

The editor allows one or more "inner" line segments to be drawn for
holes in the polygon shape.

Issues:
     1.  Mouse click events are not always triggered.  i.e. A new node
is not added to the active line segment.
     2.  Occassionally, I have noticed the polygon shadding is lost so
that only the polygon line is drawn.


NOTE:  This functionally was working in June 2010, so I suspect the
problems may be linked to some recently added functionality /
resolution of event processing; OR code that should never have
worked!!

Regards

Dave

On Jan 17, 1:12 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Jan 17, 2:19 am, Dave <davewp...@googlemail.com> wrote:
>
> > I have some code for creating polygon lines which use to work back > in 
> > June 2010, but does not seem to currently work.  The logic is as > follows:
>
> > Right click on map to start drawing a polygon, and use the
> > 'mousemove' event to track movement updating the position of the
> > line segment.  Use the "click" event to mark the end of the line
> > segment and start drawing the next line segment.  The 'rightclick'
> > event is used to complete the polygon
> > segment.
>
> > The problem I'm having is that the "click" event is only
> > occasionally firing, but the mousemove event is working OK.
>
> > I don't have any other event handlers running at the time.
>
> > Environment is IE8.0.
>
> Do you have a link to an example map that shows the 
> problem:http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e
>
>   -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to