[Users] Ext 3, printExtent, vector-layers with attributes and too much recursion

Marc Jansen jansen at terrestris.de
Mon Aug 9 12:36:30 CEST 2010


Hi list,

I get a too much recursion exception when I try to print a vectorlayer 
that has features with attributes that reference GeoExt-objects. I am 
pretty sure that the issue I have is related to this ticket:
https://www.geoext.org/ticket/133

You can test the behaviour with the online print-example: 
http://dev.geoext.org/trunk/geoext/examples/print-extent.html

Just add a new layer to the mappanel with firebug and give it afeature 
that has one of its attributes pointing towards the mappanel object:


var v = new OpenLayers.Layer.Vector('testmj');
mapPanel.map.addLayer(v);

v.addFeatures([
   new OpenLayers.Feature.Vector(
    OpenLayers.Geometry.fromWKT(
     "POLYGON(146.1 -41, 146.2 -41, 146.2 -41.1, 146.1 -41.1)"
    ), {test:mapPanel}  // this is causing the infinite recursion
)]);


If you hit "print" afterwards, the error occurs.

Attached to the ticket #133 (current status "Needs more work") there is 
a patch, which is not in trunk yet. Is there any chance this ticket gets 
closed soon? Or can anybody provide a suitable workaround?

Regards and thanks in advance,
Marc



More information about the Users mailing list