Yeah! Thats it Andreas!<br><br>That LegendPanel works with sublayers? I´m a little bit confused right now!<br><br>Thanks !<br><br><br><br><div class="gmail_quote">2010/1/6 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
make sure that your Ext JS build contains Ext.form.Label, or use a full<br>
build. The build that most of the GeoExt exmaples use<br>
(<a href="http://extjs.cachefly.net/builds/ext-cdn-771.js" target="_blank">http://extjs.cachefly.net/builds/ext-cdn-771.js</a>) does not contain it.<br>
Look e.g. at<br>
<a href="http://dev.geoext.org/trunk/geoext/examples/legendpanel.html" target="_blank">http://dev.geoext.org/trunk/geoext/examples/legendpanel.html</a>, it uses a<br>
full build.<br>
<br>
Regards,<br>
Andreas.<br>
<div class="im"><br>
On 2010-01-06 16:24, stela anders wrote:<br>
&gt; Thanks Andreas !!!!<br>
&gt; I changed to WMS with success...<br>
&gt; But now I got that error when trying to generate the legend :<br>
&gt;<br>
&gt; Error: Ext.form.Label is not a constructor<br>
&gt; Arquivo-fonte:<br>
&gt; <a href="http://localhost/Openlayer/Arquivos/geoextx/lib/GeoExt/widgets/LegendPanel.js" target="_blank">http://localhost/Openlayer/Arquivos/geoextx/lib/GeoExt/widgets/LegendPanel.js</a><br>
&gt; Linha: 293<br>
&gt;<br>
&gt; Am I suppossed to change anything?<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Stella<br>
&gt;<br>
&gt; 2010/1/5 Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a><br>
</div>&gt; &lt;mailto:<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;&gt;<br>
<div class="im">&gt;<br>
&gt;     Hi,<br>
&gt;<br>
&gt;     On 2010-01-04 19:36, stela anders wrote:<br>
&gt;     &gt; Is it possible?<br>
&gt;<br>
&gt;     You have at least two choices:<br>
&gt;<br>
&gt;     (1) Use Layer.WMS instead of Layer.MapServer. With minor modifications<br>
&gt;     to your mapfile, it is easy to use MapServer as WMS (see<br>
&gt;     <a href="http://mapserver.org/ogc/wms_server.html" target="_blank">http://mapserver.org/ogc/wms_server.html</a>). I think this is the best<br>
&gt;     option, because it will build the legend automatically from<br>
&gt;     GetLegendGraphic requests.<br>
&gt;<br>
&gt;     (2) Use a LayerStore with a legendURL field. For each layer, you<br>
&gt;     have to<br>
&gt;     provide a URL that points to a legend image. This option may only work<br>
&gt;     with the current trunk version of GeoExt, not with v0.6.<br>
&gt;<br>
&gt;     Regards,<br>
&gt;     Andreas.<br>
&gt;<br>
&gt;     &gt;<br>
&gt;     &gt; I tried to create that :<br>
&gt;     &gt;   var legendPanel = new GeoExt.LegendPanel({<br>
&gt;     &gt;             title: &#39;Legend&#39;,<br>
&gt;     &gt;             dynamic: true<br>
&gt;     &gt;      });<br>
&gt;     &gt;<br>
&gt;     &gt; And added to Viewport, but nothing is created...<br>
&gt;     &gt;<br>
&gt;     &gt; Help me please!<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br>
</div>&gt;     &gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a> &lt;mailto:<a href="mailto:Users@geoext.org">Users@geoext.org</a>&gt;<br>
<div class="im">&gt;     &gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Andreas Hocevar<br>
&gt;     OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
&gt;     Expert service straight from the developers.<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Users mailing list<br>
</div>&gt;     <a href="mailto:Users@geoext.org">Users@geoext.org</a> &lt;mailto:<a href="mailto:Users@geoext.org">Users@geoext.org</a>&gt;<br>
<div><div></div><div class="h5">&gt;     <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</div></div></blockquote></div><br>