Mark's point is a good one - a blob in the middle of a PointSymbolizer mark (aka icon) does not do anyone any good.

So I am going to propose something different, not using SLD.

Hear me out, we should draw the image using the existing SLD style as defined for that layer. And then take the entire resulting image and "jitter" it.

Jitter = draw the image 4 times in a at 1 pixel offsets, and as part of this we can use draw image with an entire solid color. The color can be set on preferences on a map by map basis.

Selection color, Map background, and Map palette kind of go together.

What do you think,
Jody
There is a difference between style and selection style though. Are you sure you want be able to have a different selection style for each layer? You haven't convinced me yet but I'm not completely adverse to the idea... I'll think about it a bit for now.

The hardcoded style can be found in SelectionStyleContent.createDefaultStyle(layer);

Jesse

Mark Presling wrote:
I think that each layer should probably have it's own selection style so that you can highlight different feature types in different ways depending on the type and the way they are rendered.

For example, on my layer I am using external graphics for each point feature. Putting a blob on top of the icon isn't really what I need... I'd like to be able to highlight the edge of the icon in some way (which I still have to play with). Whereas another layer might have a circle for points, or another a square which you could simply render another circle/square of a different color over top of the original.

In the meantime, where can I find that hardcoded style that you are referring to so that I can attack it and modify it for my needs in the meantime?


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to