Bug 166 - [cwc2 1.0.4] Legend widget: metadata issue
: [cwc2 1.0.4] Legend widget: metadata issue
Status: CLOSED FIXED
: Chameleon
Widget
: 1.0
: PC Windows 2000
: P2 normal
: 1.99 beta 3
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-12-17 15:31 by
Modified: 2004-10-28 11:57 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-12-17 15:31:13
When you click on a legend label in a legend widget you get a pop-up window 
with some metadata. 

Even if a layer is queryable it will say:
Queryable? No 

To see the problem go to: http://www.mapsherpa.com/ioos/ and click on 'SEACOOS 
Wind Observations' in the legend. It says queryable? no, but it is definitely 
queryable.
------- Comment #1 From 2003-12-17 21:29:25 -------
I just checked the context document and you have set queryable="1" for this
layer so it should be showing up as queryable in the metadata for the layer.  To
be investigated.
------- Comment #2 From 2004-07-08 10:48:07 -------
This is still a problem. Changed target to 1.99 Beta 3.
------- Comment #3 From 2004-10-05 21:28:01 -------
added some code to layerinfo_body.phtml to make this test more robust but I
can't test it right now
------- Comment #4 From 2004-10-06 15:12:04 -------
the code in mapserver has changed so that now the metadata wms_queriable is no
longer set ... it relies on the mapserver 'queryable' test of having a value in
TEMPLATE ... this now works when the context has queryable layers.
------- Comment #5 From 2004-10-25 09:15:53 -------
besides using the legendtemplate widget in a sample app, how can I further
verifiey this?

If queryable="1" works in a context how is it translated to the mapfile?
Do I need to verifiy this with a mapfile?

------- Comment #6 From 2004-10-25 12:24:36 -------
I had to reread what paul route. I verified that the query widget works by using
sample application. I also check to make sure the mapfile layers that were
queryable contained the   TEMPLATE "<a string>". 

Query worked for:
http://localhost/chameleon/samples/sample_enhanced.phtml
(which uses local shapefiles.)

Query that did not work:
http://localhost/chameleon/samples/sample_ogc.phtml
(which uses local mapfile to request wms layers).

eventhough the get capability of the WorldPOI was set to queryiable="1" and the
TEMPLATE "ttt" was set in the mapfile. The layer was not queryable.

------- Comment #7 From 2004-10-25 13:49:34 -------
the issue reported in this bug is fixed, AFAIK.  Steps to verify:

1. load sample_ogc.phtml
2. click on Tools
3. click on Open Context
4. click Browse and locate chameleon/cwc2/contexts/gmap_context.xml
5. click OK
6. after the context is loaded, click Legend
7. click Cities hyperlink
8. layer information dialog will open and Queryable is set to yes.

The gmap_context.xml file has only one queryable layer by default, the Cities layer.

The issue with the world map file not being queryable should be filed as a
separate bug ... once you've tried changing the tolerance to a number other than
0 :)
------- Comment #8 From 2004-10-25 14:38:49 -------
verified on windows ie.6 using pauls instructions.
------- Comment #9 From 2004-10-28 11:57:42 -------
Verified on Fedora Core 2.