Title: Message
Eric,
 
A different approach is to use URL variables to substitute a new _expression_ for the classes in your two layers. 
 

http://myurl/cgi-bin/mapserv.exe?map=%5Cmaps%5Ctestmap%5Ctestlegend.map&mode=map&subjectproperty=6666&comps= 1111,2222,3333,4444 

In you mapfile, in your parcel layer, you have three classes:

 CLASS
       NAME "Subject"
       _expression_ ('[APN]' in '%subjectproperty%')
       OUTLINECOLOR 0 0 0  
       COLOR 255 0 0
    END
    CLASS
       NAME "Comparable"
       _expression_ ('[APN]' in '%comps%')
       OUTLINECOLOR 0 0 0  
       COLOR 0 255 0
    END

    CLASS
       NAME "EverythingElse"
       OUTLINECOLOR 0 0 0  
       COLOR 255 255 255 
    END

 

David.

 

 

-----Original Message-----
From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Eric Brown
Sent: Tuesday, November 08, 2005 11:06 PM
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] Multi-colored hilite results or other options

Good evening,
 
I've been working on several issues and have resolved most of them by trial and error.
 
Here's a rough example of how I can show multiple hilighted parcels
 
<img src=""http://www.kerndata.com/cgi-bin/mapserv.exe?map=kerngis/kerndata_comparable.map&layer=parcels&layer=roads&layer=cities&layer=copyright180&mode=itemnquerymap&slayer=parcels&qlayer=parcels&qitem=APN&qstring=('[APN]'">&layer=layer1&layer=layer2&mode=itemnquerymap&slayer=parcels&qlayer=parcels&qitem=APN&qstring=('[APN]' IN '51417116,51449224,51454111,51449212')&mapext=shapes">
 
as far as how to provide multiple views  at different extents, just add "scale=xxxxxx" where xxxx is the scale - e.g. 10000.
also, the above example requires replacement of [program] and [map] with your program and map name.
 
My question is...
 
As in the example above - I'd like to show a comperable sales map - with the subject displayed in one color, the comparables displayed in another.
 
Any insight would be greatly appreciated.
 
Thank you,
 
- Eric Brown

Reply via email to