Re: [josm-dev] Disabling parts of internal style

2012-11-18 Thread Paul Hartmann

On 11/17/2012 02:22 PM, Jiri Klement wrote:

Hi,

is there a way to do small custom modifications to internal element style?
I know I can copy elemstyles.xml and do my modifications but I would prefer
to have my own little style file that contains only changes I don't like in
elemstyles.xml.

To be specific, I don't like piste:difficulty rendering. It's wide solid
line that hides path/track bellow. I would like to have it completely
disabled.


Not only do pistes spoil the landscape in the summer, but now you cannot 
even get rid of them when editing the map. :)


[5591] should solve the problem. You can hide pistes with the following 
style:


way["piste:difficulty"][!is_prop_set("width", "under_1")] {
width: 0;
}
way["piste:difficulty"]::under_1 { width: 0; }

Paul


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


Re: [josm-dev] Disabling parts of internal style

2012-11-18 Thread Jiri Klement
Hi,

I can disable rendering via higher priority style but original rendering is
already lost. In other words I can hide piste:difficulty but I can't
recover original rendering like path/track/road unless I also copy all
highways rules to my style.

It works fine with MapCSS because it has named layers - if I define
piste:difficulty as new layer and then in my style override this layer and
set width = 0 then piste is hidden and other renderings stay.

But I guess converting internal style to MapCSS is a bit overkill.

--
Jiri


On Sat, Nov 17, 2012 at 3:36 PM, Dirk Stöcker wrote:

> On Sat, 17 Nov 2012, Jiri Klement wrote:
>
>  is there a way to do small custom modifications to internal element style?
>> I know I can copy elemstyles.xml and do my modifications but I would
>> prefer
>> to have my own little style file that contains only changes I don't like
>> in
>> elemstyles.xml.
>>
>> To be specific, I don't like piste:difficulty rendering. It's wide solid
>> line that hides path/track bellow. I would like to have it completely
>> disabled.
>>
>
> An additional style with higher priority for a specific feature should
> help. Thought I doubt you can disable rendering of this type. I don't think
> we have something like a NULL-style required for that. Probably 100%
> transparency can be the solution to this.
>
> Ciao
> --
> http://www.dstoecker.eu/ (PGP key available)
>
>
> __**_
> josm-dev mailing list
> josm-dev@openstreetmap.org
> http://lists.openstreetmap.**org/listinfo/josm-dev
>
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Disabling parts of internal style

2012-11-17 Thread Dirk Stöcker

On Sat, 17 Nov 2012, Jiri Klement wrote:


is there a way to do small custom modifications to internal element style?
I know I can copy elemstyles.xml and do my modifications but I would prefer
to have my own little style file that contains only changes I don't like in
elemstyles.xml.

To be specific, I don't like piste:difficulty rendering. It's wide solid
line that hides path/track bellow. I would like to have it completely
disabled.


An additional style with higher priority for a specific feature should 
help. Thought I doubt you can disable rendering of this type. I don't 
think we have something like a NULL-style required for that. Probably 100% 
transparency can be the solution to this.


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


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