[Mapserver-users] Transparency on Querymap hilite

Steve Lime steve.lime at dnr.state.mn.us
Wed Mar 19 14:45:18 EST 2003


Query maps can be mimiced using regular old layers. Using your example
you could add a second class with an expression that you set only once a
query has been done. In regular modes the expression wouldn't match and
would be skipped. This works nicely when only a few features are
selected and it's easy to write an expression to isolate them. In your
case it might look like:

   CLASS
     # selected features are drawn with this 
      EXPRESSION "%myexpr%"
      COLOR 255 0 0
      OUTLINECOLOR 143 143 143
    END

It goes before the other class and is only active when you pass
mapserver a variable called myexpr. Just a thought anyway. Otherwise the
request for transparency in a querymap should be filed in bugzilla...

Steve


>>> "Bernd Deckert" <bernd.deckert at wanadoo.fr> 03/14/03 06:49AM >>>
Dear Listmembers,

The final client of my cartographic intranet solution whishes
transparency on the queried geographic objects to "see behind the
objects".

Is there a way to apply a TRANSPARENCY on "HILITE" of QUERYMAP in
mapfile. 
Probably not...
Is there an other way to obtain a sort of "transparency effect"
(without changing the layer properties) .
Thanks a lot 
                Bernd

++++++++++++++++++++++++++++++++++++++++++++++++
  QUERYMAP
    COLOR 255 0 0
    STYLE HILITE
  END


The layers is something like this

LAYER
 TRANSPARENCY 50
 NAME "Rn"
 GROUP "Nature"
  METADATA
      "LYRNAME" "R&eacute;serve naturelle nationale"
      "CHAMPSSIG" "ID;Intitule_decret;SURFACE_SIG_km2"
      "IDSIGIDBD" "ID"
  END
    STATUS ON
    CONNECTIONTYPE OGR
    CONNECTION "../../data/Rn_lr.TAB"
    TOLERANCE 5
    TYPE POLYGON
    CLASS
      NAME "Rn1"
      COLOR 49 193 34
      OUTLINECOLOR 143 143 143
      TEMPLATE "ttt_query.html"
    END
  END
++++++++++++++++++++++++++++++++++++++++++++++++







More information about the mapserver-users mailing list