Hi Geoffrey,<div><br></div><div>Indeed i have a viewport with a left panel and a map panel (in center region). My left panel is a tabpanel which has a treepanel and legend panel. The thing is even if i don't collapse the left panel i get this error just by doing a zoom in the map. Even when changing the layout i get the same error. At the moment i have no idea where to start to debug this...</div>
<div>How did you solved it? Any more suggestions?</div><div><br></div><div>Thanks in advance,</div><div>Hugo<br><br><div class="gmail_quote">On Thu, Oct 13, 2011 at 12:07 PM, gbrun <span dir="ltr"><<a href="mailto:gbrun@myopera.com" target="_blank">gbrun@myopera.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Hugo,<br>
<br>
My question would probably be surprising for you! Do your LegendPanel use a "border" layout shared with an other panel (a MapPanel precisely? I got a similar bug: this one appeared when I collapsed/expanded the LegendPanel after removing a layer.<br>
<br>
I'm not sure your problem is related to this one, but perhaps?<br>
<br>
Geoffrey<br>
<br>
<br>
<br>
Le Thu, 13 Oct 2011 12:44:27 +0200, Hugo <<a href="mailto:hfpmartins@gmail.com" target="_blank">hfpmartins@gmail.com</a>> a écrit:<div><div></div><div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
<br>
I'm facing a small but annoying problem with vector legends. I'm using JSTS<br>
(which i think it is an awesome contribution for geoprocessing operations on<br>
the client side) to compute buffers. So the user defines the parameters to<br>
compute a buffer and a new vector layer is added with the result. Untill now<br>
everything is fine, and GeoExt.LegendPanel shows the legend for this layer.<br>
In the app, the user has also the possibility to select several layers and<br>
completely remove them from the map. It is exactly here that the problem<br>
arises. After removing a vector layer from the map i start to get an error<br>
related with vectorlegend.js. From that point onwards, everytime i make a<br>
zoom in the map i get the following error:<br>
<br>
this.layer is null (on line 256 of vectorlegend.js:<br>
this.layer.map.getScale())<br>
<br>
This only happens after removing vector layers from the map. So i thought i<br>
had to manually remove the layer from the legendpanel but, as expected, the<br>
layerstore of the legendpanel is synchronized with the mapPanel layerstore<br>
and, therefore, the layer is no longer present at both stores.<br>
<br>
So, what might be the issue happening here?<br>
<br>
Regards,<br>
Hugo<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br></div></div><font color="#888888">
-- <br>
Geoffrey BRUN<br>
<br>
Étudiant en master SIGMA<br>
Stagiaire au PNR du Haut-Languedoc<br>
<br>
Hameau de Brassac<br>
Saint-Pons de Thomières<br>
<a href="tel:%2B33%20%280%29%206%2077%2074%2044%2016" value="+33677744416" target="_blank">+33 (0) 6 77 74 44 16</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>
</div>