[Mapserver-users] Drawing labels beneath a certain layer?

Daniel Morissette morissette@dmsolutions.ca
Thu, 05 Dec 2002 09:16:35 -0500


Vinko Vrsalovic wrote:
> 
> I want to draw the labels of a certain layer before another layer (so
> that the labels will be covered by this other layer).
> 
> Is this possible? (Without creating another layer just with texts)
> 

Assuming you are using MapScript, if instead of $map->draw() you use a
for() loop to call $layer->draw() on every layer, then you can call
drawLabelCache() in the middle of the loop to draw the labels.  Only
problem is you will have to clear the label cache and I don't think a
function exists for that yet in the PHP version... duh!  
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=207)

Well, as long as you don't call drawLabelCahce() again you should be
fine.

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette@dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users