Hi lottie,

For random colours, I suggest to compute this in advance and store as an 
attribute with the object. This also ensures colours are consistentent across 
zoom levels.

To prevent overlapping symbols, use the 'spaceAround' vendor option together 
with the 'Priority' vendor option. The first option will make sure there'll 
always be a specified void between symbols. The second option will allow you to 
influence the decision which symbol to  retain or dismiss based on their 
relative priority. Not too familiar with the css styling, so someone else has 
to confirm these vendor options are available in the css styling or only in the 
default SLD styling.

Regards,

Edward 

Date: Wed, 19 Jun 2013 16:39:19 +1000
From: lotta.atzenb...@gmail.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] css styling questions

1. Is it possible with css to add random colors, which don't change while 
zooming, based on different labels, but I don't know how many different colors 
I would need?
2. Is it possible to add a space around a point or symbol so that in a zoom out 
not all of the points/symbols are shown?

Cheers

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users                    
                  
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to