[Users] How to create legend panel using OpenLayers.Layer.MapServer layer...

stela anders stelaanders at gmail.com
Wed Jan 6 16:24:23 CET 2010


Thanks Andreas !!!!
I changed to WMS with success...
But now I got that error when trying to generate the legend :

Error: Ext.form.Label is not a constructor
Arquivo-fonte:
http://localhost/Openlayer/Arquivos/geoextx/lib/GeoExt/widgets/LegendPanel.js
Linha: 293

Am I suppossed to change anything?

Thanks

Stella

2010/1/5 Andreas Hocevar <ahocevar at opengeo.org>

> Hi,
>
> On 2010-01-04 19:36, stela anders wrote:
> > Is it possible?
>
> You have at least two choices:
>
> (1) Use Layer.WMS instead of Layer.MapServer. With minor modifications
> to your mapfile, it is easy to use MapServer as WMS (see
> http://mapserver.org/ogc/wms_server.html). I think this is the best
> option, because it will build the legend automatically from
> GetLegendGraphic requests.
>
> (2) Use a LayerStore with a legendURL field. For each layer, you have to
> provide a URL that points to a legend image. This option may only work
> with the current trunk version of GeoExt, not with v0.6.
>
> Regards,
> Andreas.
>
> >
> > I tried to create that :
> >   var legendPanel = new GeoExt.LegendPanel({
> >             title: 'Legend',
> >             dynamic: true
> >      });
> >
> > And added to Viewport, but nothing is created...
> >
> > Help me please!
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at geoext.org
> > http://www.geoext.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100106/caca0130/attachment.htm 


More information about the Users mailing list