Bug 1009

Summary: New WMSLegend widget
Product: Chameleon Reporter: Bart van den Eijnden <bartvde@osgis.nl>
Component: WidgetAssignee: Bart van den Eijnden <bartvde@osgis.nl>
Status: REOPENED    
Severity: normal CC: chameleon-dev@lists.maptools.org
Priority: P2    
Version: 2.2   
Target Milestone: 2.2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description From 2005-04-15 16:55:49
Hi Paul,

there is another general widget you might be interested in. It is a widget which
performs a GetLegendGraphic request (without a Rule in order to retrieve a full
legend image per layer) for all WMS layers in the application.

Let me know if you are interested and what name you would like for the widget.

Bart
------- Comment #1 From 2005-05-26 15:16:44 -------
Bart, we are interested in this new widget. Do you think you will be able to
commit it in CVS before monday?

If not, please set the target milestone to FUTURE.

Thanks!

PS: Don't forget to set the MaturityLevel to ALPHA.
PPS: The name...hum...WMSLegend maybe.
------- Comment #2 From 2005-05-26 18:15:37 -------
Hi Julien,

I will try to. I have to track it down from one of my DVD's since I re-formatted
my pc recently.

I am unfamiliar with adding new directories to CVS so I will probably attach it
to this bug report.

Bart
------- Comment #3 From 2005-05-27 16:58:14 -------
I've added the WMSLegend widget to the CVS head. ALPHA maturity level.

I tested it with the OGC sample, only problem is the DM Solutions Mapserver is
apparently not new enough (Mapserver 4.3!) so it does not support the changes
made to GetLegendGraphic in 4.4 to get back a full legend if no Rule is
specified. Eg:

http://www2.dmsolutions.ca/cgi-bin/mswms_world?&request=getlegendgraphic&scale=226787247.36&width=18&height=12&version=1.1.1&layer=WorldRoads&format=image/png&sld_body=%3CStyledLayerDescriptor+version%3D%221.0.0%22+xmlns%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld%22+xmlns%3Agml%3D%22http%3A%2F%2Fwww.opengis.net%2Fgml%22+xmlns%3Aogc%3D%22http%3A%2F%2Fwww.opengis.net%2Fogc%22+xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.opengis.net%2Fsld+http%3A%2F%2Fschemas.opengeospatial.net%2Fsld%2F1.0.0%2FStyledLayerDescriptor.xsd%22%3E%0A%3C%2FStyledLayerDescriptor%3E%0A

Example usage:

      <!-- WMSLEGEND -->
      <td><cwc2 type="WMSLegend" image="icons/icon_legend.png" label="WMS
Legend" visible="true" styleresource="TextButtons"
popupstyleresource="TextButtons" imagetip="show WMS legend" popupwidth="640"
popupheight="620">
                    <image state="normal"/>
                    <image state="selected"/>
                    <image state="hover"/>
              </cwc2>
      </td>

Marking as fixed.
------- Comment #4 From 2006-03-09 07:53:20 -------
This was never correctly added to CVS unfortunately. I have to dig this up
before the 2.4 release.