background dependant line styles ?

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Oct 18 17:52:52 PDT 2006


Sacha,

Look at the REQUIRES option for LAYER.

You would have to create two separate LAYERs and add

REQUIRES "photo_layer"

to one and set it up to draw the green lines and in the other do 
something like:

REQUIRES (! "photo_layer")

in the other to draw your normal lines. Where your photo layer has

NAME "photo_layer"

You might have to play with this a little to get it to work, I haven't 
tried it, but this would be the concept.

-Steve W

Sacha Black wrote:
> second try. first one bounced.
> 
> sb
> ---------- Forwarded message ----------
> From: *Sacha Black* < sacha.black at gmail.com <mailto:sacha.black at gmail.com>>
> Date: Oct 18, 2006 4:17 PM
> Subject: background dependant line styles ?
> To: MAPSERVER-USERS at lists.umn.edu <mailto:MAPSERVER-USERS at lists.umn.edu>
> 
> 
> is it possible to have two styles for drawing a single line layer, where 
> one style is used most of the time and the alternate style is only used 
> if a background photo layer is turned on?
> 
> so for example most of the time I want my roads to draw in black, but if 
> the photo background is used the roads should draw on top in green.



More information about the MapServer-users mailing list