[mapserver-users] Persistent Selection

Puneet Kishor pkishor at GeoAnalytics.com
Wed May 29 17:08:40 EDT 2002


Hi Adam,

I don't use QUERYMAP because I am using Mapscript, however, look at the
docs... it says the if you use STYLE, the querymap will be highlighted using
the COLOR attribs... if you don't want it to be colored (filled), turn the
color off by using -1 -1 -1, and use a bright OUTLINECOLOR instead with a
thick line symbol. Remember, you don't want the COLOR to be white or
black... instead, you want it to be nothing. 

hth.

pk/

> -----Original Message-----
> From: Ryan, Adam [mailto:ARyan at co.linn.or.us]
> Sent: Wednesday, May 29, 2002 3:44 PM
> To: Puneet Kishor
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: RE: [mapserver-users] Persistent Selection
> 
> 
> 
> 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