Re: [josm-dev] Combining mappaint styles

2008-08-28 Thread Dirk Stöcker
Hello,

as there have been no comments, I did what I want.

So it is now implemented as follows:

a) in style files there is a new type linemod
b) this types parameters are equal to line. Only one additional type is
mode. It may be over or under. Width also supports -x, +x and
x% for specifications relative to main way.
c) The colour field now also supports an alpha channel (using a forth set
of hex values).
d) All types also support parameter priority, which are used when multiple
styles exists. For lines, nodes and areas the style with highest
priority is used.
e) Overlays are not limited. Multiple styles may get used here.

I added one style for bridges and an highway/tram overlay style.
The ones of you with more graphical determination, please fix the design, 
so it looks better :-)

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Combining mappaint styles

2008-08-27 Thread Dirk Stöcker
On Wed, 27 Aug 2008, Ulf Lamping wrote:

 I was thinking about the representation, and the best idea I got aware
 of was to display the part of the way being a bridge (or tunnel) simply
 a little bit (1/2px?) wider than the normally used width.

Don't think that is visible enough.

 My first thought was to use something like a specially dashed (dotted,
 ...) way, but that would be hard to distinguish from other dashed stuff
 (like tracks) and also probably hard to visually get for very short
 bridges (tunnels).

What about alpha shaded lines? E.g. if you overlap a street with a 20% 
black line for tunnel or 20% green for bridge or something like that.

 Obviously, I haven't tried this out, so the best would be to have a
 prototype and have a look at it :-)

Well, the design of the XML and the implementation depends a lot on the 
fact how to display it later.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Combining mappaint styles

2008-08-27 Thread Petr Nejedly
Dirk Stöcker napsal(a):
 On Wed, 27 Aug 2008, Ulf Lamping wrote:
 My first thought was to use something like a specially dashed (dotted,
 ...) way, but that would be hard to distinguish from other dashed stuff
 (like tracks) and also probably hard to visually get for very short
 bridges (tunnels).
 
 What about alpha shaded lines? E.g. if you overlap a street with a 20% 
 black line for tunnel or 20% green for bridge or something like that.
 
 Obviously, I haven't tried this out, so the best would be to have a
 prototype and have a look at it :-)
 
 Well, the design of the XML and the implementation depends a lot on the 
 fact how to display it later.

In josm-ng, I'm experimenting with multistyle, where each tag can add
a (list of) stroke(s) (painting primitives) to apply, and all the tags
are processed for given primitive (not ony the first one that matches).

This is what would you get for a way with highway=seconday and railway=tram:
http://shell.sh.cvut.cz/~nenik/josmng-multistyle2.png

Still, one tag can't (easily) influence a stroke based on another tag
(like the alpha/dashed painting for tunnels) in my scheme.

-- 
Petr Nenik Nejedly, NetBeans/Sun Microsystems, http://www.netbeans.org
355/113 -- Not the famous irrational number PI, but an incredible simulation!

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Combining mappaint styles

2008-08-27 Thread Matthias Julius
Dirk Stöcker [EMAIL PROTECTED] writes:

 My first thought was to use something like a specially dashed (dotted,
 ...) way, but that would be hard to distinguish from other dashed stuff
 (like tracks) and also probably hard to visually get for very short
 bridges (tunnels).

 What about alpha shaded lines? E.g. if you overlap a street with a 20% 
 black line for tunnel or 20% green for bridge or something like that.

You could also draw a wider line of different color _under_ the way.

Matthias

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Combining mappaint styles

2008-08-27 Thread Ulf Lamping
Dirk Stöcker schrieb:
 On Wed, 27 Aug 2008, Ulf Lamping wrote:
 
 I was thinking about the representation, and the best idea I got aware
 of was to display the part of the way being a bridge (or tunnel) simply
 a little bit (1/2px?) wider than the normally used width.
 
 Don't think that is visible enough.

Ooops, I've meant 1 or 2 pixel, not 1/2px!

 
 My first thought was to use something like a specially dashed (dotted,
 ...) way, but that would be hard to distinguish from other dashed stuff
 (like tracks) and also probably hard to visually get for very short
 bridges (tunnels).
 
 What about alpha shaded lines? E.g. if you overlap a street with a 20% 
 black line for tunnel or 20% green for bridge or something like that.

At least on my laptop screen I guess I wouldn't see a big difference, as 
20% alpha shade won't be really well visually distinguishable!

 
 Obviously, I haven't tried this out, so the best would be to have a
 prototype and have a look at it :-)
 
 Well, the design of the XML and the implementation depends a lot on the 
 fact how to display it later.
 

This prototype won't need any XML and no big implementation changes.

Why not just draw some of the possible solutions directly on the screen 
with the JAVA methods in question and have a look at the visual 
results to get a feeling what might work best.

Regards, ULFL

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


[josm-dev] Combining mappaint styles

2008-08-26 Thread Dirk Stöcker
Hello,

I introduced the possibility to combine an area and an line style in 
current josm (thus reenabling the roundabout display).

To combine two line styles (e.g. bridge, tunnel and street) someone needs 
to present an idea, how the displaying could be done for this.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Combining mappaint styles

2008-08-26 Thread Ulf Lamping
Dirk Stöcker schrieb:
 Hello,
 
 I introduced the possibility to combine an area and an line style in 
 current josm (thus reenabling the roundabout display).

Nice!

 
 To combine two line styles (e.g. bridge, tunnel and street) someone needs 
 to present an idea, how the displaying could be done for this.
 

You mean a bridge OR tunnel together with a street I guess?

I was thinking about the representation, and the best idea I got aware 
of was to display the part of the way being a bridge (or tunnel) simply 
a little bit (1/2px?) wider than the normally used width.

My first thought was to use something like a specially dashed (dotted, 
...) way, but that would be hard to distinguish from other dashed stuff 
(like tracks) and also probably hard to visually get for very short 
bridges (tunnels).


Obviously, I haven't tried this out, so the best would be to have a 
prototype and have a look at it :-)

Regards, ULFL

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev