I'm not sure if it's related to the openlayer module or to the openlayer api itself ...

when I draw a polygon, I can't create a new polygon/line/point overlaping this first polygon if one point is located inside the first polygon. Instead of creating the new point, the first polygon is selected ...

tested with the latest -dev (both geo and openlayers) available

Comments

zzolo’s picture

The main problem is that clicking on a polygon selects it. Also, when a polygon is removed, the polygon, but not the vertices points are removed.

phayes’s picture

Assigned: Unassigned » phayes

We could likely disable the select control while the draw control is active. I'll look into it.

BWPanda’s picture

Or make it so that you can only select a polygon with the polygon draw control, only select a line with the line draw control, etc.?

Though I suppose this'll mean you can't draw a polygon within another polygon...

phayes’s picture

Status: Active » Closed (won't fix)

I was about 80% through a solution on this when I realized this is actually an upstream bug. Nuts.

Filed at: http://trac.openlayers.org/ticket/2253