[Chameleon] Enabling JavaScriptAPI changes LegendTemplate widget
output
Rhys Ickeringill
rhysi at omnilink.com.au
Thu May 12 01:17:38 EDT 2005
For the lists information, using the JSAPI actually causes the
LegendTemplate widget to generate a complete DIV and TABLE tags to contain
the legend's table rows generated by MapServer's HTMLLegend function (using
the template provided). The DIV is given id & name of 'legendTemplateDiv'.
What this means is that you cannot place the "UpdateMap" widget *within* the
Legend's table, as is done in the non-JSAPI enhanced sample pages.
Rhys
----- Original Message -----
From: "Paul Spencer" <pspencer at dmsolutions.ca>
To: "Rhys Ickeringill" <rhysi at omnilink.com.au>
Cc: <chameleon at lists.maptools.org>
Sent: Wednesday, May 11, 2005 11:04 PM
Subject: Re: [Chameleon] Enabling JavaScriptAPI changes LegendTemplate
widget output
> Rhys,
>
> its actually a feature, not a bug :) The legend template does this so
> the contents of the template can be changed without submitting the page.
>
> Paul
>
> Rhys Ickeringill wrote:
> > Hello List,
> >
> > Just thought I'd confirm this *is* a bug before submitting it to
Bugzilla.
> >
> > It seems when I include the tag
> >
> > <CWC2 type="SharedResource" name="CWCJSAPI" />
> >
> > in my Chameleon template file, the rendering of the LegendTemplate
widget
> > changes - specifically an extra </TABLE> and </DIV> are added to the
> > LegendTemplate's output rendering. Either that or the UpdateMap widget's
> > position in the output is changed by the addition of the CWCJSAPI shared
> > resource.
> >
> > So, is this a bug or a feature? :)
> >
> > - Rhys
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> >
>
> --
> +-----------------------------------------------------------------+
> |Paul Spencer pspencer at dmsolutions.ca |
> +-----------------------------------------------------------------+
> |Applications & Software Development |
> |DM Solutions Group Inc http://www.dmsolutions.ca/|
> +-----------------------------------------------------------------+
>
>
More information about the Chameleon
mailing list