Opened 16 years ago

Closed 16 years ago

#325 closed defect (fixed)

Layer style without name: cannot display legend icon

Reported by: mschulz Owned by: mschulz
Priority: minor Milestone: 2.5.1 release
Component: wms Version: 2.5
Keywords: Cc:

Description

When a wms with a layer style without name is uploaded (yes, this is possible ;-)), then the legend icon of this layer cannot be displayed.

First because mod_legend.php uses getCurrentStyleByLayerName(), with results in layerStyle to be false. Second because mod_legend uses getLegendUrlByGuiLayerStyle("default") to retrieve the legendurl if layerStyle is false, but since the name is empty it won't return the legendurl.

This problem is related to #304. Maybe it would make sense to change the behaviour of the wms parser to set an empty style name to "default" instead of "".

Change History (2)

comment:1 by christoph, 16 years ago

Owner: changed from mapbender_dev@… to mschulz

2.5 branch

http://trac.osgeo.org/mapbender/changeset/3243

trunk

http://trac.osgeo.org/mapbender/changeset/3244

Michael, please check if it works now, and close the ticket if it does. Otherwise, please return the ticket to me.

comment:2 by mschulz, 16 years ago

Resolution: fixed
Status: newclosed

Checked with 2.5 branch: works. Still have to check with a trunk version, but since milestone is 2.5.1, closing the ticket for the release.

Note: See TracTickets for help on using tickets.