[Chameleon] MAPTIPS, HEADER and Query Reuslt

listserver server chameleon.listserver at gmail.com
Thu Jun 8 15:35:38 EDT 2006


I'm using MS4W 2.0 and Chameleon 2.4
i've a problem when i use header in mapfile maptips widtget doesn't work.

If i remove Header fields in mapfile all is fine! But i've in query
result SHAPE_INDEX, TILE_INDEX and LAYER INDEX that i don't want in
query result!

Is it normal? i've also tryed to change position of Header in mapfile but
problem persists.


the configuration of maptips is:
*<cwc2 type="MapTips" defaulttext="&nbsp;" tolerance="2"
** maptipsdiv="MapTipsLayer" label="Map Tips" layer="scuole"
** attributes="comune" styleresource="TextButtons"
** popupstyleresource="TextButton
** s" popupwidth="550" popupheight="475"
** image="images/icon_maptips.png" toolbar="false" status="false"
**menubar="false" onmouseover="myMaptipsOver" onmouseout="myMaptipsOut">
**
**       <image state="normal"/>
**        <image state="selected"/>
**       <image state="hover"/>
**      </cwc2>*

This is the layer in my mapfile
LAYER
NAME "scuole"
METADATA
    wms_title "scuole"
    wfs_title "scuole"
     "DESCRIPTION"   "comune"
    "RESULT_FIELDS" "comune"
    "LAYER" "scuole"
     gml_include_items "all"
    END
  STATUS ON
  DUMP TRUE
  TYPE POLYGON
  CONNECTIONTYPE POSTGIS
CONNECTION "user=*** password=*** dbname=*** host=localhost
port=5432"
DATA "the_geom FROM (select comune, I02_97 as Elementari_Classi, I03_97 as
Medie_Classi, I04_98 as Superiori_classi, the_geom, gid from scuole) AS
scuole1 USING UNIQUE gid USING SRID=-1"
HEADER
"comune^|Elementari_Classi^|Medie_Classi^|Superiori_classi^"
Classitem "comune"
PROJECTION "init=epsg:26591"
  END
LABELITEM comune
LABELMAXSCALE 105000
CLASS
    NAME "scuole"
   TEMPLATE "ttt_query.html"
   OUTLINECOLOR 0 0 0
    LABEL
      TYPE truetype
      FONT sans
      SIZE 7
      COLOR 0 0 200
      POSITION auto
    END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060608/cd7117fb/attachment.html


More information about the Chameleon mailing list