setLayersDrawingOrder problem

Ryan, Adam ARyan at CO.LINN.OR.US
Tue Apr 5 14:18:22 EDT 2005


> -----Original Message-----
> From: Stéphane RIFF [mailto:stephane.riff at CERENE.FR] 
> Sent: Tuesday, April 05, 2005 8:56 AM
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] setLayersDrawingOrder problem
> 
> 
> Hi
> 
> I have a mapfile with one layer inside.
> In my application i add some dynamic layer by mapscript.
> I want that the static layer alwayes drawn last so i used 
> setLayersDrawingOrder but i can't get it works.
> 
> I did $map->save(<filename>) (just after setLayersDrawingOrder and
> map->draw) and look at it :
> 
> My dynamic layer is the last in the mapfile .
> 
> Does someone success with that
> Thanks
> 

Stéphane,

Try using ... $map -> moveLayerUp($layerIndexNumber) ... instead of
setLayersDrawingOrder.

Adam



More information about the mapserver-users mailing list