Hi,

   I'm not sure if this is the right place to raise this, nor if there's 
a clean solution for it, not if someone already noticed that... but here 
goes.

   Since a few weeks ago, the OpenLayers.Control.DrawFeature control has 
a Point feature following the mouse around while drawing.  Looking at 
the vector layer the handler uses, I noticed that while moving the mouse 
around without drawing anything with Path or Polygon handler, you have 2 
features in it : a Point and a broken LineString or Polygon (containing 
only one Point component).

   When using the GeoExt print widgets, that temp vector layer of the 
Handler is also taken for print and results in MapFish print server 
complaining about the invalid geometry.  A simple a quick workaround 
would be to check at the name of the vector layer and simply skip any 
"OpenLayers.Handler...".  But, as usual, I wonder if there's something 
better I could do...  Like maybe the GeoExt.data.PrintProvider could 
validate that the features have valid geometries before returning a 
Vector layer spec...

   Thoughts ?

-- 
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to