[Users] GeoExt.LegendPanel in a separated div...
Paul james
pauljame at gmail.com
Tue Jul 6 16:08:33 CEST 2010
Thanks Bart!
It worked!
Paul
On Tue, Jul 6, 2010 at 10:44 AM, Bart van den Eijnden (OSGIS) <
bartvde at osgis.nl> wrote:
> Do you create your mappanel after you create your legend panel? It should
> be the other way round.
>
> Best regards,
> Bart
>
> > Thanks Bart...
> >
> > But using renderTo, I got that error:
> >
> > Error: 'GeoExt.MapPanel.guess().layers' is null or not an object
> > Method : onRender, GeoExt.LegendPanel
> >
> > Paul
> >
> > On Tue, Jul 6, 2010 at 10:27 AM, Bart van den Eijnden (OSGIS) <
> > bartvde at osgis.nl> wrote:
> >
> >> Use renderTo instead of contentEl.
> >>
> >> Best regards,
> >> Bart
> >>
> >> > Hello guys!
> >> >
> >> > My Legend :
> >> >
> >> > var _legendPanel = new GeoExt.LegendPanel({
> >> > defaults: {
> >> > style: 'padding:5px',
> >> > imageFormat: "image/png"
> >> > },
> >> > title: 'Legenda',
> >> > bodyStyle: 'padding:5px',
> >> > width: 350,
> >> > autoScroll: true
> >> > });
> >> >
> >> > I´m able to add that to my Viewport... But I want to add to a
> >> separated
> >> > Div...
> >> > I tried to add :
> >> > contentEl:"divDialog"
> >> >
> >> > But It does not work... Any idea?
> >> >
> >> > Thanks
> >> > _______________________________________________
> >> > 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/20100706/88325a4e/attachment.htm
More information about the Users
mailing list