Changing legend order with php mapscript

percy percyd at PDX.EDU
Tue May 29 15:54:51 PDT 2007


Ben, I would just turn off the Country Boundaries in the legend, do this 
by removing the class name from that layer's Class definition...
http://ms.gis.umn.edu/docs/reference/mapfile/class
Percy

Ben Madin wrote:
> G'day all,
> 
> I have an application where the country layer (+/- admin boundaries) are 
> drawn in last (so they overlay population density data). This means it 
> is at the top of the legend.
> 
> The population densities are one layer (in a five step range 
> (descending), ending with 0 (ie no animals) or no data (no record in the 
> db)) , so "Country borders" (in one of three languages) intrudes some 
> way across the map picture, about the middle of the map when the 
> initial thumbnail for the users to click on to move to an interactive 
> interface is presented.
> 
> (see picture, say "yuk"!, offer solution!)
> 
> 
> I would like the Country boundaries legend item to be at the bottom of 
> the legend... I note there is a movestyledown function, but I am not 
> clear on where this might be used.
> 
> Does anyone : 
> 
> a) know if this function will do what I am looking for, or will it move 
> the entire style down, obscuring the data behind the filled polygon?
> 
> b) have any code examples of how this might be (or where it has been) used?
> 
> cheers
> 
> Ben
> 
> 
>  
> -- 
> 
> Ben Madin
> REMOTE INFORMATION
> 
> t : +61 8 9192 5455
> f : +61 8 9192 5535
> m : 0448 887 220
> Broome   WA   6725
> 
> ben at remoteinformation.com.au <mailto:ben at remoteinformation.com.au>
> 
> 
> 
> 
> 
> Out here, it pays to know...
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
David Percy
Geospatial Data Manager
Geology Department
Portland State University
http://gisgeek.pdx.edu
503-725-3373



More information about the MapServer-users mailing list