[Chameleon] FW: Need help in debugging page

Julien-Samuel Lacroix jlacroix at mapgears.com
Wed Apr 12 11:56:44 EDT 2006


Hi!

Mariette wrote:
> 
> 1)       Query issue 1à I have the site set up so that it only queries 
> the layer with the active radio button, this functions but an error 
> occurs on IE and Firefox. I would like to get rid of the error.

What is the error? I don't get it.

> 2)       Query issue 2à I must hide certain results and with the new 
> query tool you set what columns to hide in the Map file. I have done 
> this according to instruction by inserting the HEADER info in the layer, 
> but instead it prevents all results from appearing. The property layer 
> is set this way.

The normal declaration should be :
HEADER "AREA^|PERIMETER^|POPPLACE_^"
But this not work I've open bug 
http://bugzilla.maptools.org/show_bug.cgi?id=1422 to fix that. In the 
mean time, simply put a title in the header 
"AREA^Area|PERIMETER^Perimeter|POPPLACE_^Population"

> 6)       The copyright text disappears after you navigate; I need it to 
> be there at all time.

How did you define the copyright layer? Normally you should only need to do:
  LAYER
    NAME "copyright"
    TYPE annotation
    STATUS ON
    TRANSFORM OFF
    CLASS
      COLOR 0 0 0
      TEXT "Copyright text"
      LABEL
        FONT "sans"
        TYPE TRUETYPE
        POSITION LR
        OFFSET 0 0
        SIZE 8
        BUFFER 1
        COLOR 0 0 0
        BACKGROUNDCOLOR 255 255 255
        FORCE TRUE
      END
    END
  END

> 8)       In the legend, at the layer level I would like to be able to 
> read the name and replace the underscore with a space, I have done this 
> at the group and class level but could not achieve it at the layer level.

You can create a new metadata in your layer ("legend_title" "ttt") and 
access it in the legend template.
[metadata name=<metadata_field_to_display>]
See:
http://mapserver.gis.umn.edu/docs/howto/html_legend/#layer-block

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list