Thanks Andreas !!!!<br>I changed to WMS with success... <br>But now I got that error when trying to generate the legend :<br><br>Error: Ext.form.Label is not a constructor<br>Arquivo-fonte: <a href="http://localhost/Openlayer/Arquivos/geoextx/lib/GeoExt/widgets/LegendPanel.js">http://localhost/Openlayer/Arquivos/geoextx/lib/GeoExt/widgets/LegendPanel.js</a><br>
Linha: 293<br><br>Am I suppossed to change anything?<br><br>Thanks<br><br>Stella<br><br><div class="gmail_quote">2010/1/5 Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></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>
On 2010-01-04 19:36, stela anders wrote:<br>
> Is it possible?<br>
<br>
You have at least two choices:<br>
<br>
(1) Use Layer.WMS instead of Layer.MapServer. With minor modifications<br>
to your mapfile, it is easy to use MapServer as WMS (see<br>
<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>
option, because it will build the legend automatically from<br>
GetLegendGraphic requests.<br>
<br>
(2) Use a LayerStore with a legendURL field. For each layer, you have to<br>
provide a URL that points to a legend image. This option may only work<br>
with the current trunk version of GeoExt, not with v0.6.<br>
<br>
Regards,<br>
Andreas.<br>
<div><div></div><div class="h5"><br>
><br>
> I tried to create that :<br>
> var legendPanel = new GeoExt.LegendPanel({<br>
> title: 'Legend',<br>
> dynamic: true<br>
> });<br>
><br>
> And added to Viewport, but nothing is created...<br>
><br>
> Help me please!<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
> <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
><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>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>