[mapserver-users] Persistent Selection
Richard Greenwood
rich at GreenwoodMap.com
Wed May 29 21:46:04 PDT 2002
I'm coming into this thread a little late, but here's what I do: I have two
layers to represent the same data, in my case property ownership polygons.
The first one (see below) displays everything in the shape file with black
outlines, and defines a template for attribute queries. The second layer is
used to highlight the outline of the polygon in yellow graphically.
Rich
QUERYMAP
STATUS ON
STYLE SELECTED
END
LAYER
NAME "join_region"
TYPE Polygon
DATA "join_region"
HEADER "attribute_header.html"
FOOTER "attribute_footer.html"
CLASS
Name "Lot and Parcel Lines"
TEMPLATE "attribute_display.html" # Use to display
attribute data
SYMBOL "Solid"
OUTLINECOLOR 0 0 0
SIZE 2
END # CLASS
END # layer "join_region"
Layer
NAME "join_region_spatial"
DATA join_region TYPE polygon
STATUS default
FILTERITEM Pidn
Filter "%pidn%"
CLASS
TEMPLATE tc.html # Use to display map
OUTLINECOLOR 255 255 0
SYMBOL 'solid'
SIZE 6
END # CLASS
END # LAYER "join_region_spatial"
At 01:43 PM 5/29/2002 -0700, you wrote:
>Hi,
>
>I have the following in my map file:
>
> QUERYMAP
> STATUS ON
> STYLE HILITE
> COLOR 255 0 0
> END
>
>I used style = hilite because I want to show all lots (polygons) normally
>but the selected lot(s) in some different color. But the selected lots are
>always filled and I want to see the image behind them so I'd like to make
>the selected lots outlined, not filled.
>
>Should I add an additional layer when I query and set the querymap style =
>selected?
>
>I'm sorry to beat this to a dead horse but I'm rather confused.
>
>Thanks for any help,
>
>Adam
>
>
>-----Original Message-----
>From: Puneet Kishor [mailto:pkishor at GeoAnalytics.com]
>Sent: Wednesday, May 29, 2002 10:55 AM
>To: 'Ryan, Adam'
>Cc: mapserver-users at lists.gis.umn.edu
>Subject: RE: [mapserver-users] Persistent Selection
>
>
>Hi Adam,
>
>I am not sure why you having a problem. Just turn the FILLED off or use a
>COLOR -1 -1 -1 (I think... look at the mapfile reference)... make the
>OUTLINECOLOR somethingbright, increase the line thickness, etc.
>
> > -----Original Message-----
> > From: Ryan, Adam [mailto:ARyan at co.linn.or.us]
> > Sent: Wednesday, May 29, 2002 12:18 PM
> > To: Stephen Woodbridge
> > Cc: mapserver-users at lists.gis.umn.edu
> > Subject: RE: [mapserver-users] Persistent Selection
> >
> >
> >
> > Thanks, I got it.
> >
> > I'm still unable to make a selection outlined rather than filled.
> >
> > Any hints?
> >
> > Adam
> >
> > -----Original Message-----
> > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> > Sent: Tuesday, May 28, 2002 6:01 PM
> > To: Ryan, Adam
> > Cc: mapserver-users at lists.gis.umn.edu
> > Subject: Re: [mapserver-users] Persistent Selection
> >
> >
> > You need to look at the CGI Reference. There are two cgi variables:
> > savequery and queryfile that let you do this. Sorry, I can be more
> > specific, I use mapscript :)
> >
> > -Steve
> >
> > "Ryan, Adam" wrote:
> > >
> > > I understand that. But how do you then tell map server to
> > simultaneously
> > > pan (mode = "browse") and also keep querying (mode =
> > "query") for the
> > > [feature_value]?
> > >
> > > AR
> > >
> > > -----Original Message-----
> > > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
> > > Sent: Tuesday, May 28, 2002 5:24 PM
> > > To: Ryan, Adam
> > > Cc: mapserver-users at lists.gis.umn.edu
> > > Subject: Re: [mapserver-users] Persistent Selection
> > >
> > > The basic theory is to add the selected item to a hidden
> > form field to
> > > your template, like:
> > >
> > > <input type="hidden" name="feature_name" value="[feature_value]">
> > >
> > > in your template. Where feature_name and [feature_value] are the
> > > appropriate mapserver/template names.
> > >
> > > -Steve
> > >
> > > "Ryan, Adam" wrote:
> > > >
> > > >
> > > > Help me list...you're my only hope.
> > > >
> > > > I remember reading somewhere and seeing an example of a mapserver
> > > interface
> > > > that allowed the selected feature to persist as the user
> > panned and
> > > zoomed.
> > > > And, the selection was outlined and not filled.
> > > >
> > > > How can I do either of these things (without using mapscript)?
> > > >
> > > > Thanks for any help on this,
> > > >
> > > > Adam Ryan
> > > > Linn County GIS
> > > >
> > > > PS Kudos to y'all. I couldn't do squat were it not for
> > this list.
> >
More information about the MapServer-users
mailing list