On 11-03-17 11:54 AM, Eric Lemoine wrote:
> I guess you would have had the same issue with the old drawing code if
> you attempted to print while in the middle of drawing. It is just that
> with the new code makes the situation more likely.

You're right.  I just checked with 2.10, it's the same.


>> Like maybe the GeoExt.data.PrintProvider could
>> validate that the features have valid geometries before returning a
>> Vector layer spec...
> Right now we don't have a way to check that geometries are valid, do we?

Nope, but that could be a nice addition to OpenLayers.  It's too late 
for 2.11, but I guess it's worth a ticket.  Should I open one anyway ?

For the moment being, I guess I'll just use the "beforeprint" event and 
check if there's a DrawFeature control activated and throw a notice to 
turn it off first.

-- 
Alexandre Dubé
Mapgears
www.mapgears.com

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

Reply via email to