Opened 12 years ago

Closed 12 years ago

#160 closed defect (fixed)

WMS & AGS Services - legend="false" Not Working (document problem)

Reported by: andersd Owned by: EliL
Priority: major Milestone: 2.6.1
Component: Docs Version: 2.6
Keywords: Cc: theduckylittle, bfischer, bfraser, blammo, jimk

Description

When the legend is turned off (legend="false") in the trunk demo for the "ags/NatGeo_World_Map" layer, the legend still appears. There was some discussion in the past about the AGS NatGeo legend being too large. (That is different from this ticket.) I want WMS and AGS layers turned off by setting legend="false".

Hope this makes sense and really is a defect.

This is also true for a WMS test for displaying wetlands I just completed. The wetlands code is as follows:

MapSource


<map-source name="wetland" type="wms" queryable="true">

<url>http://107.20.228.18/ArcGIS/services/FWS_Wetlands_WMS/mapserver/wmsserver?</url>

<layer name="17" queryable="TRUE" />
<param name="TRANSPARENT" value="TRUE"/>
<param name="FORMAT" value="image/gif"/>

</map-source>

catalog reference


layer title="FWS-Wetlands" src="wetland/17" status="off" legend="false" fade="false" unfade="false"/>

Change History (4)

comment:1 by EliL, 12 years ago

I tried adding show-legend="false" in the catalog and that seemed to work. I'm not entirely clear on the functionality and connections between legend=, show-legend=, and layer_controls.legend.on

Here is some relevant documentation that could probably use improving as well:
http://geomoose.org/trunk/howto/layer.html?highlight=legend#step-2-adding-the-layer-to-the-catalog
http://geomoose.org/trunk/docs/mapbook.html?highlight=legend#catalog
http://geomoose.org/trunk/docs/configuration.html?highlight=legend#layer-controls-legend-on

comment:2 by andersd , 12 years ago

Component: GeoMOOSE/PHPDocs
Owner: set to EliL
Summary: WMS & AGS Services - legend="false" Not WorkingWMS & AGS Services - legend="false" Not Working (document problem)

Thanks Eli - This is a documentation issue. Here is a little matrix on when legends and legend controls show or not...

show-legend="false" legend="false" --> Nothing shows at all and will not

show-legend="true" legend="false" --> Legend shows and you have no control (option to collapse it or not "+")

show-legend="false" legend="true" --> Legend does not show untill you hit legend control ("+")

show-legend="true" legend="true" --> Legend shows by default and you have control (option to expand or contract with "+")

comment:3 by EliL, 12 years ago

Cc: theduckylittle bfischer bfraser blammo jimk added
Milestone: 2.62.6.1
Status: newtesting

Updated in trunk with r911.

I think that this is now clear:
show-legend is for displaying the legend
legend is for displaying the legend control and
layer_controls.legend.on can impact the default value of legend for the legend control.

All the cc people, please carefully review this since much of the documentation was seemingly backwards and I'd like careful review to ensure this is correct.

comment:4 by andersd, 12 years ago

Resolution: fixed
Status: testingclosed
Note: See TracTickets for help on using tickets.