[OSM-talk-be] JOSM CSS questions

A.Pirard.Papou A.Pirard.Papou at gmail.com
Tue Dec 18 10:09:12 UTC 2012


On 2012-12-18 09:02, Jo wrote :
> 2012/12/18 A.Pirard.Papou <A.Pirard.Papou at gmail.com 
> <mailto:A.Pirard.Papou at gmail.com>>
>
>     Hi,
>
>     A question about CSS, maybe for JOSM Jo?
>
>     The following CSS, adapt to your taste, are very useful because
>     they make nodes very clear when you tag at high zoom and discreet
>     when you navigate at low zoom.
>     node|z1-17  { symbol-shape: square; symbol-fill-opacity: 0;
>     symbol-size: 1; z-index:-1}
>     node|z18-  { symbol-shape: square; symbol-stroke-color: navy;
>     symbol-fill-color: rosybrown; symbol-size:8; z-index:1}
>     (Windows>Map paint styles and Edit>Preferences>Grid icon>Map paint
>     styles)
>
>     Questions: is there a way to:
>
>       * make the hair-cross (aka virtual node) in the middle of a way
>         more visible
>       * prevent the cursor turning to a hand that's hiding the dot
>         it's dragging
>
>
>
> I don't think those virtual nodes or the change of appearance of the 
> mouse pointer can be controlled by mapcss. Those are features of JOSM 
> and to change their behaviour or appearance would involve changing the 
> JAVA source code of JOSM.
> It's open source software, so this is not impossible to do, but it's a 
> lot less trivial than creating a mapcss style sheet.
>
> Jo
>
Thanks. OK Jo. I got this from a case and I replied what applies to your 
reply too.

On 2012-12-18 08:53, JOSM wrote :
> #7887: unobtrusive node squares
>
> Comment (by stoecker):
>
>   > make the cross in the middle of a way more visible
>
>   There should be a hidden setting to define its size. I suggest to search
>   for "virtual" in expert settings.
Right, thanks Dirk, mappaint.node.virtual-size=8.
But in fact, the problem is more the color than the size.
On black, the yellow cross is visible all-right.
But on a white background, it's almost invisible whatever its size.
As it's a general issue with that background, the best idea is to change it.
Getting it transparent is not a solution, its black lines wouldn't show 
on black.
Only thing to do is to invert all the background colors.
This would solve all the color problems sort of by definition.
I found this:

  * invert colors

*::* {
     color: eval(rgb(1 - red(prop(color)), 1 - green(prop(color)), 1 - 
blue(prop(color))));
     fill-color: eval(rgb(1 - red(prop(fill-color)), 1 - 
green(prop(fill-color)), 1 - blue(prop(fill-color))));
}

But it inverts the foreground OSM layer.
Anything similar for the background?

Cheers,

André.










-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-be/attachments/20121218/07cb2796/attachment.htm>


More information about the Talk-be mailing list