[Mapserver-users] can I use different symbols in thesamedynamiclayer?

Daniel Morissette morissette at dmsolutions.ca
Mon Sep 29 11:52:07 PDT 2003


Vinko Vrsalovic wrote:
>  
> I do that in 4.0, without classitems (i mentioned that because 
> Fresio seemed to not understand well the layer and class model), just 
> creating new classobj's and styleobj's, as i wrote in the modified code 
> example, that is, creating new classes for each point that must be drawn
> differently.
> 
> I never did the dynamic drawing with only one class (in 3.6 i also added
> new classes), maybe with the addition of the styleObj the way the points 
> are drawn changed and they now respect the one class per way of drawing 
> 'rule' :), maybe Daniel or Steve can enlighten us on this issue.
> 

I didn't follow the beginning of this thread and didn't test this 
specifically, but my understanding is that the behavior didn't change 
between 3.6 and 4.0 with respect to this.  i.e. if you have a 3.6 script 
that was setting classes dynamically then it should continue to work 
with 4.0 once you adapt it to work with styles.

BTW, it is ok to reuse and modify the same class multiple times as long 
as you TURN OFF the label cache.  If you leave the label cache enabled 
then you cannot modify a class until the shapes (labels) in the cache 
that use it have been drawn/flushed from the cache.

-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list